Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 algebra

Problem

Let be coprime positive integers. Determine all infinite sequences of positive integers such that the following conditions hold for all :
Solution
Answer: The only such sequences are , where is a nonnegative integer.

## Common remarks. - Denote by the subsequence . - Without loss of generality, in each solution we suppose . It can be convenient to treat the case where separately. - The problem can also be posed for sequences of arbitrary integers (rather than positive). Refer to the comment after Solution 1 for a proof.

Solution 1. Let . Note that .

Lemma 1. If and are positive integers such that then .

Proof. By the given condition, if then . So the lemma follows from induction on and the triangle inequality.

Lemma 2. For a fixed , suppose that is minimal over . Then .

Proof. Suppose for contradiction that . Then . Since , it follows from Lemma 1 that , which is a contradiction.

Lemma 3. For a fixed , suppose that is maximal over . Then .

Proof. Suppose is minimal over . Then by Lemma . So and , which implies that .

Lemma 2 also implies that if then . So if , then we have , which contradicts . Hence we must have .

The above inequality also gives , so by Lemma 1 it follows that . Therefore .

Let be the minimal value of for . By Lemma 2, for all . Hence . Let be the maximal value of for . By Lemma 3, for all . Hence for .

So if then . So for we get , and hence .

Next note that . So for all , and iterating this () times gives . But using gives . Since equality occurs, we must have .

So for and . Since and are coprime, for all . The only way for and to be different is if , so we deduce that and there is a constant such that for all .

Finally, suppose for all . Then . So or . Similarly, or . Hence . So, by induction, we have for all positive integers . Since is a nonnegative integer.

It is trivial to check that satisfies the given condition.

---

Alternative solution.

For , let the -width of be . We call a positive integer good if the -width of is less than or equal to for all sufficiently large , and we call very good if the -width of is equal to for sufficiently large .

Lemma 1. If is good and is very good with , then is also good.

Proof. Note that . Let be a sufficiently large positive integer. Then for , we have and since is good, which shows . Similarly we get .

Therefore, for all we have . Thus, the -width of is at most . The lemma follows.

Lemma 2. Let be a good number and a very good number with . For sufficiently large , take such that and . Then and .

Proof. Lemma 2 and Lemma 3 from Solution 1 hold with and replaced by and by similar arguments. We can deduce the statement about from Lemma 2 of Solution 1. We can deduce the statement about from Lemma 3 of Solution 1.

Lemma 3. If is good and is very good with , then there exists a positive integer such that for all sufficiently large , we have .

Proof. Let , and let and be as defined in Lemma 2. Then consider the identity By Lemma 2, we have and , so and . Combining these, we get . This proves that for sufficiently large .

Lemma 4. Suppose . Then there exists a good number such that .

Proof. Let be the smallest good positive integer. Note that is good, so exists and is less than .

Suppose for contradiction that . If , then by Lemma 1, is a good number strictly less than , which contradicts minimality of . If , then . So we can apply Lemma 1 with to get that is a good number that is strictly less than , which again contradicts minimality.

If then the problem is easily solved. Otherwise, Lemmas 3 and 4 combined give us some such that for sufficiently large.

By iterating, we get for all sufficiently large , and hence it follows that . Similarly we get . As and are coprime, we deduce that for sufficiently large . Thus we get for sufficiently large , and we can conclude by the same argument as Solution 1.
Final answer
a_n = n + C for some nonnegative integer C

Techniques

Recurrence relationsLinear and quadratic inequalitiesGreatest common divisors (gcd)