Maths Olympiad Prep

Library / Taiwan IMO Selection Camp /155 of 359

Taiwan IMO Selection Camp, 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
a12−a02≡a22−a12≡⋯≡ak2−ak−12(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 n≤5n \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 ai2≡c(i−i0)a_i^2 \equiv c(i - i_0) for some constant cc. In particular, 1=12≡c(i1−i0)1 = 1^2 \equiv c(i_1 - i_0) for some i1i_1, and hence (i1−i0)(ai2−aj2)≡(i1−i0)(i−j)c≡i−j≠0(i_1 - i_0)(a_i^2 - a_j^2) \equiv (i_1 - i_0)(i-j)c \equiv i-j \ne 0 unless i−j=0i-j = 0. Therefore, nn must be a prime number, for if n=abn = ab for some a≥b>1a \ge b > 1, then ai=(a+b)/2,aj=(a−b)/2a_i = (a+b)/2, a_j = (a-b)/2 for some i≠ji \ne j and ai2−aj2≡0a_i^2 - a_j^2 \equiv 0. In particular, {ai2}\{a_i^2\} is the set of quadratic residues.

WLOG assume i0≠ki_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},{c−1ai2},{−i0,i0+1,…,k−i0}\{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<n−i0i_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=n−1=2i0k < 2k = n - 1 = 2i_0 is not a quadratic residue, thus 2 cannot be a quadratic residue. Therefore, we must have i0≤1i_0 \le 1, n=2k+1≤2(2i0)+1≤5n = 2k+1 \le 2(2i_0) + 1 \le 5.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge 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.