Maths Olympiad Prep

Library / /169 of 397

, 2021

Number theory Difficulty 5.6 AIME, harder Prove it Taiwan

Find all integers n=2k+1>1n = 2k+1 > 1 such that there exists a permutation a0,a1,,aka_0, a_1, \dots, a_k of {0,1,,k}\{0, 1, \dots, k\} satisfying
a12a02a22a12ak2ak12(modn). a_1^2 - a_0^2 \equiv a_2^2 - a_1^2 \equiv \cdots \equiv a_k^2 - a_{k-1}^2 \pmod{n}.

Solution

It is straightforward to check that n=3,5n = 3, 5 indeed satisfy the condition.

Below we prove that n5n \le 5. Suppose a0,a1,,aka_0, a_1, \dots, a_k satisfying the condition and from now on, \equiv works in modulo nn. Since ai0=0a_{i_0} = 0 for some i0i_0, so ai2c(ii0)a_i^2 \equiv c(i - i_0) for some constant cc. In particular, 1=12c(i1i0)1 = 1^2 \equiv c(i_1 - i_0) for some i1i_1, and hence (i1i0)(ai2aj2)(i1i0)(ij)cij0(i_1 - i_0)(a_i^2 - a_j^2) \equiv (i_1 - i_0)(i-j)c \equiv i-j \ne 0 unless ij=0i-j = 0. Therefore, nn must be a prime number, for if n=abn = ab for some ab>1a \ge b > 1, then ai=(a+b)/2,aj=(ab)/2a_i = (a+b)/2, a_j = (a-b)/2 for some iji \ne j and ai2aj20a_i^2 - a_j^2 \equiv 0. In particular, {ai2}\{a_i^2\} is the set of quadratic residues.

WLOG assume i0ki_0 \ne k, otherwise, reverse the sequence so that i0=0i_0 = 0. Since c=ai0+12c = a_{i_0+1}^2, cc is a quadratic residue, thus, {ai2},{c1ai2},{i0,i0+1,,ki0}\{a_i^2\}, \{c^{-1}a_i^2\}, \{-i_0, i_0+1, \dots, k-i_0\} are all the sets of quadratic residues and equivalent modulo nn. If i0>0i_0 > 0, then 1-1 is a quadratic residue, then we must have k=2i0k = 2i_0 and since i0<k<ni0i_0 < k < n - i_0, kk cannot be a quadratic residue, thus 2 cannot be a quadratic residue. If i0=0i_0 = 0, then kk is a quadratic residue, and k<2k=n1=2i0k < 2k = n - 1 = 2i_0 is not a quadratic residue, thus 2 cannot be a quadratic residue. Therefore, we must have i01i_0 \le 1, n=2k+12(2i0)+15n = 2k+1 \le 2(2i_0) + 1 \le 5.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from the original; metadata (topic, difficulty) added by this project.