Olympiad Maths Prep

Track / Stage 8 / 45 of 180 #1745 of 2000

Problem 1745

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.1 Prove it

Let n n be a positive integer, and consider the matrix A\equal(aij)1i,jn A \equal{} (a_{ij})_{1\leq i,j\leq n} where aij\equal1 a_{ij} \equal{} 1 if i\plusj i\plus{}j is prime and aij\equal0 a_{ij} \equal{} 0 otherwise.
Prove that detA\equalk2 |\det A| \equal{} k^2 for some integer k k.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

To prove that detA=k2 |\det A| = k^2 for some integer k k , we will analyze the structure of the matrix A A and use properties of determinants and permutations.

1. Matrix Definition and Structure:
- The matrix A=(aij)1i,jn A = (a_{ij})_{1 \leq i,j \leq n} is defined such that aij=1 a_{ij} = 1 if i+j i + j is prime, and aij=0 a_{ij} = 0 otherwise.
- This means that A A is a symmetric matrix because aij=aji a_{ij} = a_{ji} .

2. Permutation and Sign Function:
- Consider the set B B of bijective maps from {1,3,,2n1} \{1, 3, \ldots, 2n-1\} to {2,4,,2n} \{2, 4, \ldots, 2n\} .
- For f,gB f, g \in B , define the permutation π(f,g)S2n \pi(f, g) \in S_{2n} such that:
π(f,g)(i)={f(i)if i is odd,g1(i)if i is even. \pi(f, g)(i) = \begin{cases} f(i) & \text{if } i \text{ is odd}, \\ g^{-1}(i) & \text{if } i \text{ is even}. \end{cases}
- Define δ(f)=sgn(π(f,h)) \delta(f) = \text{sgn}(\pi(f, h)) for a fixed hB h \in B .

3. Properties of Permutations:
- It can be checked that π(f,g)π(g,f)=Id \pi(f, g) \pi(g, f) = \text{Id} and π(f,g)=π(f,h)π(h,h)π(h,g) \pi(f, g) = \pi(f, h) \pi(h, h) \pi(h, g) .
- Therefore, sgn(π(f,g))=δ(f)δ(g)δ(h) \text{sgn}(\pi(f, g)) = \delta(f) \delta(g) \delta(h) .
- It is also straightforward to check that δ(h)=(1)n \delta(h) = (-1)^n .

4. **Determinant Calculation for Even n n **:
- Let X=(xi,j) X = (x_{i,j}) be a 2n×2n 2n \times 2n matrix with xi,j=0 x_{i,j} = 0 whenever i+j i + j is even and at least 4.
- For σS2n \sigma \in S_{2n} , the product x1,σ(1)x2n,σ(2n) x_{1, \sigma(1)} \ldots x_{2n, \sigma(2n)} vanishes unless {σ(1),σ(3),,σ(2n1)}={2,4,,2n} \{\sigma(1), \sigma(3), \ldots, \sigma(2n-1)\} = \{2, 4, \ldots, 2n\} , i.e., σ=π(f,g) \sigma = \pi(f, g) for some f,gB f, g \in B .
- Hence,
detX=σS2n(sgn(σ))x1,σ(1)x2n,σ(2n)=f,gBsgn(π(f,g))x1,f(1)x3,f(3)x2n1,f(2n1)xg(1),1xg(3),3xg(2n1),2n1. \det X = \sum_{\sigma \in S_{2n}} (\text{sgn}(\sigma)) x_{1, \sigma(1)} \ldots x_{2n, \sigma(2n)} = \sum_{f, g \in B} \text{sgn}(\pi(f, g)) x_{1, f(1)} x_{3, f(3)} \ldots x_{2n-1, f(2n-1)} x_{g(1), 1} x_{g(3), 3} \ldots x_{g(2n-1), 2n-1}.
- This simplifies to:
detX=(1)n(fBδ(f)x1,f(1)x3,f(3)x2n1,f(2n1))(fBδ(f)xf(1),1xf(3),3xf(2n1),2n1). \det X = (-1)^n \left( \sum_{f \in B} \delta(f) x_{1, f(1)} x_{3, f(3)} \ldots x_{2n-1, f(2n-1)} \right) \left( \sum_{f \in B} \delta(f) x_{f(1), 1} x_{f(3), 3} \ldots x_{f(2n-1), 2n-1} \right).

5. **Determinant Calculation for Odd n n **:
- Let X=(xi,j) X = (x_{i,j}) be a 2n+1×2n+1 2n+1 \times 2n+1 matrix with xi,j=0 x_{i,j} = 0 whenever i+j i + j is even and at least 4.
- The product x1,σ(1)x2n+1,σ(2n+1) x_{1, \sigma(1)} \ldots x_{2n+1, \sigma(2n+1)} vanishes unless σ(1)=1 \sigma(1) = 1 and {σ(2),σ(4),,σ(2n)}={3,5,,2n+1} \{\sigma(2), \sigma(4), \ldots, \sigma(2n)\} = \{3, 5, \ldots, 2n+1\} .
- The determinant of X X is x1,1 x_{1,1} times the (1,1) (1,1) -th minor, which is of the form considered in the preceding paragraph.
- For a closed expression, set yi,j=xi1,j1 y_{i,j} = x_{i-1, j-1} to obtain:
detX=(1)nx1,1(fBδ(f)y1,f(1)y3,f(3)y2n1,f(2n1))(fBδ(f)yf(1),1yf(3),3yf(2n1),2n1). \det X = (-1)^n x_{1,1} \left( \sum_{f \in B} \delta(f) y_{1, f(1)} y_{3, f(3)} \ldots y_{2n-1, f(2n-1)} \right) \left( \sum_{f \in B} \delta(f) y_{f(1), 1} y_{f(3), 3} \ldots y_{f(2n-1), 2n-1} \right).

6. Conclusion:
- If X X is symmetric and x1,1=1 x_{1,1} = 1 , we obtain detX=±1×a square \det X = \pm 1 \times \text{a square} .
- Therefore, detA=k2 |\det A| = k^2 for some integer k k .

\blacksquare

The final answer is detA=k2 \boxed{ |\det A| = k^2 } for some integer k k .

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.