Browse · MathNet
PrintFinal Round of the 73rd Czech and Slovak Mathematical Olympiad (March 17–20, 2024)
Czech Republic 2024 algebra
Problem
For a natural number , consider the sequence given by and the recurrent relation for all . Determine all the values of for which the sequence is eventually constant.
Solution
Let be the function , then the defining relation can be conveniently written as .
Note that since and , the sequence will be eventually constant whenever or occurs in it. We can also observe that for . Therefore, by a simple inductive argument, we can show that for any non-negative integer and , we have and, similarly, for , we have . Therefore, the integers of this form are solutions.
Now, we will show that there are no other solutions. In order to do that, it suffices to prove that for any satisfying the hypothesis of the problem, there must exist some non-negative integer such that .
So, suppose that the sequence is eventually constant for some value of . Then we can define an auxiliary sequence given by , then this new sequence is given by a recurrence relation and By a simple induction, we can see that is a non-negative integer and moreover that for all .
Since the sequence is eventually constant, there exists some with , so the congruence that we have derived above gives , which is clearly equivalent to the desired statement , so we are done.
Conclusion. The sequence is eventually constant if and only if is of the form or for some non-negative integer .
---
Alternative solution.
It is possible to find all values for which the sequence is eventually constant. As before, let . If we denote the fractional part of a real number as , then we have From this expression, it is clear that the function is 1-periodic, hence we get: We can also use this expression for to prove that the fixed points of are precisely and (in the first solution, we didn't need the fact that these are all the fixed points). Moreover, we can show that Finally, suppose that the sequence is eventually constant for a given value of . Then for some positive integer , hence or . By a simple inductive argument, we see that so by the equivalences that we've stated above, this happens if and only if .
Therefore, we have shown that the sequence stabilizes after at most steps if and only if is of the form where and is an integer. One can also simplify the answer by noting that the third case is contained inside the second one.
Conclusion. The sequence is eventually constant if and only if or for some non-negative integer and an integer .
Note that since and , the sequence will be eventually constant whenever or occurs in it. We can also observe that for . Therefore, by a simple inductive argument, we can show that for any non-negative integer and , we have and, similarly, for , we have . Therefore, the integers of this form are solutions.
Now, we will show that there are no other solutions. In order to do that, it suffices to prove that for any satisfying the hypothesis of the problem, there must exist some non-negative integer such that .
So, suppose that the sequence is eventually constant for some value of . Then we can define an auxiliary sequence given by , then this new sequence is given by a recurrence relation and By a simple induction, we can see that is a non-negative integer and moreover that for all .
Since the sequence is eventually constant, there exists some with , so the congruence that we have derived above gives , which is clearly equivalent to the desired statement , so we are done.
Conclusion. The sequence is eventually constant if and only if is of the form or for some non-negative integer .
---
Alternative solution.
It is possible to find all values for which the sequence is eventually constant. As before, let . If we denote the fractional part of a real number as , then we have From this expression, it is clear that the function is 1-periodic, hence we get: We can also use this expression for to prove that the fixed points of are precisely and (in the first solution, we didn't need the fact that these are all the fixed points). Moreover, we can show that Finally, suppose that the sequence is eventually constant for a given value of . Then for some positive integer , hence or . By a simple inductive argument, we see that so by the equivalences that we've stated above, this happens if and only if .
Therefore, we have shown that the sequence stabilizes after at most steps if and only if is of the form where and is an integer. One can also simplify the answer by noting that the third case is contained inside the second one.
Conclusion. The sequence is eventually constant if and only if or for some non-negative integer and an integer .
Final answer
n = 3^\alpha or n = 2 \cdot 3^\alpha for some non-negative integer \alpha
Techniques
Recurrence relationsModular Arithmetic