Maths Olympiad Prep

Library / Final Round of the 73rd Czech and Slovak Mathematical Olympiad (March 17–20, ) /2 of 2

Final Round of the 73rd Czech and Slovak Mathematical Olympiad (March 17–20, ), 2024

Algebra Difficulty 6.5 National Olympiad Prove it Czech Republic

For a natural number nn, consider the sequence (ak)k=1∞(a_k)_{k=1}^{\infty} given by a1=1na_1 = \frac{1}{n} and the recurrent relation
ak+1=3ak−⌊2ak⌋−⌊ak⌋, a_{k+1} = 3a_k - \lfloor 2a_k \rfloor - \lfloor a_k \rfloor,
for all k≥1k \ge 1. Determine all the values of nn for which the sequence is eventually constant.

Solutions — 2

Solution 1

Let ff be the function f(x)=3x−⌊2x⌋−⌊x⌋f(x) = 3x - \lfloor 2x \rfloor - \lfloor x \rfloor, then the defining relation can be conveniently written as ak+1=f(ak)a_{k+1} = f(a_k).

Note that since f(0)=f(1)=0f(0) = f(1) = 0 and f(12)=12f(\frac{1}{2}) = \frac{1}{2}, the sequence will be eventually constant whenever 12\frac{1}{2} or 11 occurs in it. We can also observe that f(x)=3xf(x) = 3x for 0<x<120 < x < \frac{1}{2}. Therefore, by a simple inductive argument, we can show that for any non-negative integer α\alpha and n=3αn = 3^{\alpha}, we have aα+1=1a_{\alpha+1} = 1 and, similarly, for n=2⋅3αn = 2 \cdot 3^{\alpha}, we have aα+1=12a_{\alpha+1} = \frac{1}{2}. Therefore, the integers nn 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 nn satisfying the hypothesis of the problem, there must exist some non-negative integer α\alpha such that n∣2⋅3αn \mid 2 \cdot 3^{\alpha}.

So, suppose that the sequence is eventually constant for some value of nn. Then we can define an auxiliary sequence (bk)(b_k) given by bk=nakb_k = n a_k, then this new sequence is given by a recurrence relation b1=1b_1 = 1 and
bk+1=3bk−n⌊2bkn⌋−n⌊bkn⌋. b_{k+1} = 3b_k - n \left\lfloor \frac{2b_k}{n} \right\rfloor - n \left\lfloor \frac{b_k}{n} \right\rfloor.
By a simple induction, we can see that bkb_k is a non-negative integer and moreover that bk≡3k−1(modn)b_k \equiv 3^{k-1} \pmod{n} for all k≥1k \ge 1.

Since the sequence is eventually constant, there exists some α≥0\alpha \ge 0 with bα+2=bα+1b_{\alpha+2} = b_{\alpha+1}, so the congruence that we have derived above gives 3α+1≡3α(modn)3^{\alpha+1} \equiv 3^{\alpha} \pmod{n}, which is clearly equivalent to the desired statement n∣2⋅3αn \mid 2 \cdot 3^{\alpha}, so we are done.

Conclusion. The sequence is eventually constant if and only if nn is of the form 3α3^{\alpha} or 2⋅3α2 \cdot 3^{\alpha} for some non-negative integer α\alpha.

Solution 2

It is possible to find all values a1∈Ra_1 \in \mathbb{R} for which the sequence is eventually constant. As before, let f(x)=3x−⌊2x⌋−⌊x⌋f(x) = 3x - \lfloor 2x \rfloor - \lfloor x \rfloor. If we denote the fractional part of a real number tt as {t}\{t\}, then we have
f(x)=3x−⌊2x⌋−⌊x⌋=(2x−⌊2x⌋)+(x−⌊x⌋)={2x}+{x}. f(x) = 3x - \lfloor 2x \rfloor - \lfloor x \rfloor = (2x - \lfloor 2x \rfloor) + (x - \lfloor x \rfloor) = \{2x\} + \{x\}.
From this expression, it is clear that the function ff is 1-periodic, hence we get:
f(f(x))=f({2x}+{x})=f({2x}+{x}+⌊2x⌋−⌊x⌋)=f(3x). f(f(x)) = f(\{2x\} + \{x\}) = f(\{2x\} + \{x\} + \lfloor 2x \rfloor - \lfloor x \rfloor) = f(3x).
We can also use this expression for ff to prove that the fixed points of ff are precisely 00 and 12\frac{1}{2} (in the first solution, we didn't need the fact that these are all the fixed points). Moreover, we can show that
f(x)=0  ⟺  {x}=0 and f(x)=12  ⟺  {x}=12 or {x}=16. f(x) = 0 \iff \{x\} = 0 \text{ and } f(x) = \frac{1}{2} \iff \{x\} = \frac{1}{2} \text{ or } \{x\} = \frac{1}{6}.
Finally, suppose that the sequence is eventually constant for a given value of a1a_1. Then f(ak+1)=ak+1f(a_{k+1}) = a_{k+1} for some positive integer kk, hence ak+1=0a_{k+1} = 0 or ak+1=12a_{k+1} = \frac{1}{2}. By a simple inductive argument, we see that
ak+1=f(ak)=f(f(ak−1))=f(3ak−1)=⋯=f(3k−1a1), a_{k+1} = f(a_k) = f(f(a_{k-1})) = f(3a_{k-1}) = \dots = f(3^{k-1} a_1),
so by the equivalences that we've stated above, this happens if and only if {3k−1a1}∈{0,16,12}\{3^{k-1} a_1\} \in \{0, \frac{1}{6}, \frac{1}{2}\}.

Therefore, we have shown that the sequence stabilizes after at most k+1k+1 steps if and only if a1a_1 is of the form
a1=m3k−1,a1=6m+12⋅3k or a1=2m+12⋅3k−1, a_1 = \frac{m}{3^{k-1}}, \quad a_1 = \frac{6m+1}{2 \cdot 3^k} \text{ or } a_1 = \frac{2m+1}{2 \cdot 3^{k-1}},
where k≥1k \ge 1 and mm 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 a1=m3ka_1 = \frac{m}{3^k} or a1=6m+12⋅3ka_1 = \frac{6m+1}{2 \cdot 3^k} for some non-negative integer kk and an integer mm.

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.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.