Maths Olympiad Prep

Library / /211 of 397

, 2022

Number theory Difficulty 5.9 AIME, harder Prove it Taiwan

Determine all positive integers dd for which there exists a k3k \ge 3 such that you can put the numbers d,2d,3d,,kdd, 2d, 3d, \dots, kd in a sequence in such a way that the sum of every pair of neighbouring numbers is a square.

Solution

For d=1d = 1, we take k=15k = 15 and the sequence

8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9.

Two neighbouring numbers in this sequence always add up to 9, 16, or 25. For square d>1d > 1, we also take k=15k = 15 and the same sequence as above, except that we multiply all numbers by dd. Two neighbouring numbers in this sequence always add up to 9d9d, 16d16d, or 25d25d, which are all squares.

Now consider a non-square dd. We will show that this will not satisfy the conditions. Suppose that there does exists a kk and a sequence a1d,a2d,,akda_1d, a_2d, \dots, a_kd, such that {a1,a2,,ak}={1,2,,k}\{a_1, a_2, \dots, a_k\} = \{1, 2, \dots, k\}. Write d=cm2d = cm^2, where mm is a positive integer such that cc is not divisible by a square greater than 1. Then for all ii with 1ik11 \le i \le k-1, we have that aid+ai+1da_id + a_{i+1}d is a square and d=cm2aid+ai+1dd = cm^2 \mid a_id + a_{i+1}d, hence cd=c2m2aid+ai+1dcd = c^2m^2 \mid a_id + a_{i+1}d, which yields that cai+ai+1c \mid a_i + a_{i+1}. From this, we obtain that ai+1aimodca_{i+1} \equiv -a_i \mod c and hence ai+2ai+1aimodca_{i+2} \equiv -a_{i+1} \equiv a_i \mod c. Therefore, there are at most two distinct residue classes modulo cc occurring among the aia_i, namely the classes of a1a_1 and a2a_2. However, {a1,a2,,ak}={1,2,,k}\{a_1, a_2, \dots, a_k\} = \{1, 2, \dots, k\} and k3k \ge 3, and therefore we must have c2c \le 2. Because dd is not a square, c=1c = 1 is impossible, hence c=2c = 2. But then we have ai+1aiaimod2a_{i+1} \equiv -a_i \equiv a_i \mod 2, so there is at most one residue class modulo 2 occurring in the sequence, which gives a contradiction.

We conclude that the dd that satisfy the conditions are the squares. \square

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 en; metadata (topic, difficulty) added by this project.