Maths Olympiad Prep

Library / /53 of 63

, 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
aiaj(modn)ij(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:
nai+kaif(n)knaj+kaj. n \mid a_{i+k} - a_i \Leftrightarrow f(n) \mid k \Leftrightarrow n \mid a_{j+k} - a_j.
Thus one has
ai+kai=aj+kaj |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,i0(mod2),c1,i1(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,nc0c1,2,nc0c1 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 a1a3a_1 \neq a_3, then ai+2aia_{i+2} \neq a_i for all ii, thus (ai+2ai+1)(ai+1ai)(a_{i+2} - a_{i+1}) \neq -(a_{i+1} - a_i), hence (ai+2ai+1)=(ai+1ai)(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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.