Let be integers, and let be positive integers with and . For every integer , define
Show that the sequence is eventually constant.
Problem 1833
Official solution
Solution (By Adam Hesterberg). Note that , so is a bounded sequence. Let be the largest integer that occurs infinitely often in the sequence , and let be an integer such that for all , . We now have a lemma.
Lemma 1. Let be a positive integer of the form , with non-negative integers. If and , then .
*Proof.* Suppose we are given with . Then, , implying that
Equality must then hold in each step of the iterated inequality above, hence for each . We begin by setting and apply this reasoning repeatedly, choosing at each step to decrease to . At each step, we change to while maintaining , allowing us to conclude that .
Now, let be an integer such that for all there exist non-negative integers such that . Such an exists because . Because occurs infinitely often in , we may find some for which . By our choice of , each is the non-negative linear combination of the . Further, we have , so by Lemma 1 we conclude for . This shows that consecutive terms of the sequence are equal, so the sequence is constant thereafter.