Let be a sequence of positive integers. It is given that , and for , is the smallest positive integer greater than which satisfies the following condition: for any integers , with , . Find .
IMO Hk TST, 1997
Solution
We have .
We claim that
for any integer . The base cases can be verified directly. Indeed, the first 8 terms are
1, 3, 4, 7, 10, 12, 13, 16.
Now, assume the claim holds for . Observe that none of the previous terms is congruent to 2 modulo 3, and all numbers congruent to 1 modulo 3 less than has appeared. Consider the case .
* Since and , we have . If , then , contradiction. Thus, .
* Since , we have . If , then . By the inductive hypothesis, we must have for some integer . Then we have , contradiction. Thus, .
* If , then , contradiction. Thus, .
* Since and , we have . If , then , contradiction. Thus, .
This proves our claim by induction. Therefore,
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.