Maths Olympiad Prep

Library / Team Selection Test for IMO /44 of 55

Team Selection Test for IMO, 2023

Number theory Difficulty 8.8 Shortlist Prove it Turkey

We say that an integer sequence {a1,a2,… }\{a_1, a_2, \dots\} is good if for some function f:Z+→Z+f: \mathbb{Z}^+ \to \mathbb{Z}^+ and all positive integers i,j,ni, j, n
ai≡aj(modn)⇔i≡j(modf(n)) a_i \equiv a_j \pmod{n} \Leftrightarrow i \equiv j \pmod{f(n)}
Find all good sequences.

Solution

Given a good sequence, consider the following for all nn for fixed ii, jj, kk:
n∣ai+k−ai⇔f(n)∣k⇔n∣aj+k−aj. n \mid a_{i+k} - a_i \Leftrightarrow f(n) \mid k \Leftrightarrow n \mid a_{j+k} - a_j.
Thus one has
∣ai+k−ai∣=∣aj+k−aj∣ |a_{i+k} - a_i| = |a_{j+k} - a_j|
for all ii, jj, kk. Now consider two cases separately:

a. If a1=a3a_1 = a_3, then ai+2=aia_{i+2} = a_i for all ii, which means
ai={c0,i≡0(mod2),c1,i≡1(mod2) a_i = \begin{cases} c_0, & i \equiv 0 \pmod 2, \\ c_1, & i \equiv 1 \pmod 2 \end{cases}
for some c0c_0, c1c_1 which are not necessarily distinct. Indeed, then the function
f(n)={1,n∣c0−c1,2,n∤c0−c1 f(n) = \begin{cases} 1, & n \mid c_0 - c_1, \\ 2, & n \nmid c_0 - c_1 \end{cases}
satisfies the condition.

b. If a1≠a3a_1 \neq a_3, then ai+2≠aia_{i+2} \neq a_i for all ii, thus (ai+2−ai+1)≠−(ai+1−ai)(a_{i+2} - a_{i+1}) \neq -(a_{i+1} - a_i), hence (ai+2−ai+1)=(ai+1−ai)(a_{i+2} - a_{i+1}) = (a_{i+1} - a_i), which means
ai=ki+c a_i = ki + c
for some kk and cc. Indeed, then the function
f(n)=ngcd⁡(n,k) f(n) = \frac{n}{\gcd(n, k)}
satisfies the condition.

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