DR.WANG Mathematics中文

2024 NZMO Round 2 · Question 2

Solutions (answers with justifications) are required for all problems, including those which ask for an answer.

Consider the sequence a1,a2,a3,…a_1,a_2,a_3,\ldots defined by a1=20242024a_1=2024^{2024} and, for each positive integer nn, an+1=∣an−2∣.a_{n+1}=\left|a_n-\sqrt{2}\right|. Prove that there exists an integer kk such that ak+2=aka_{k+2}=a_k. Here ∣x∣|x| denotes the absolute value of xx.

Show answer and methods 2 methods

Answer

Once a term lies in [0,2][0,\sqrt2], the sequence repeats after two steps.

Method 1 Enter the reflection interval

Write s=2s=\sqrt{2}. Each time the current value is at least ss, the next value is smaller by exactly ss. Hence after q=⌊a1/s⌋q=\lfloor a_1/s\rfloor such steps we reach aq+1=a1−qs∈[0,s)a_{q+1}=a_1-qs\in[0,s).

On [0,s][0,s] the update is x↦s−xx\mapsto s-x, which maps this interval into itself. Applying it twice gives s−(s−x)=xs-(s-x)=x. Consequently aq+3=aq+1a_{q+3}=a_{q+1}, so k=q+1k=q+1 works.

Adapted from the solution by Ross Atkins · Published solution (external)

Method 2 A finite orbit and its diameter

Let s=2s=\sqrt2, M=max⁡(a1,s)M=\max(a_1,s) and f(x)=∣x−s∣f(x)=|x-s|. All iterates lie in [0,M][0,M]. Each lies in one of the sets a1+sZa_1+s\mathbb Z and −a1+sZ-a_1+s\mathbb Z, since subtracting ss preserves these sets and changing the sign interchanges them. Their intersection with a bounded interval contains only finitely many points.

Some value therefore recurs. From its first recurrence onwards the deterministic sequence follows a finite cycle. Write CC for its set of values and pp for its period. The reverse triangle inequality gives ∣f(x)−f(y)∣≤∣x−y∣|f(x)-f(y)|\le |x-y|. As fpf^p returns each pair in CC to its start, none of the pp successive distance inequalities can be strict. Thus ff preserves all distances on CC.

If CC is a singleton we are done. Otherwise let u=min⁡Cu=\min C and v=max⁡Cv=\max C. Only the pair u,vu,v is distance v−uv-u apart, so ff either fixes or swaps the endpoints. Distance to uu now shows that throughout CC, respectively, f(x)=xf(x)=x or f(x)=u+v−xf(x)=u+v-x. In either case f2(x)=xf^2(x)=x.