Maths Olympiad Prep

Library / Team Selection Test Selection Test /4 of 6

Team Selection Test Selection Test

Algebra Difficulty 8.5 Shortlist Prove it United States

Let x0,x1,…,xn0−1x_0, x_1, \dots, x_{n_0-1} be integers, and let d1,d2,…,dkd_1, d_2, \dots, d_k be positive integers with n0=d1>d2>⋯>dkn_0 = d_1 > d_2 > \dots > d_k and gcd⁡(d1,d2,…,dk)=1\gcd(d_1, d_2, \dots, d_k) = 1. For every integer n≥n0n \ge n_0, define
xn=⌊xn−d1+xn−d2+⋯+xn−dkk⌋. x_n = \left\lfloor \frac{x_{n-d_1} + x_{n-d_2} + \dots + x_{n-d_k}}{k} \right\rfloor.
Show that the sequence {xn}\{x_n\} is eventually constant.

Solution

Solution (By Adam Hesterberg). Note that xn≤max⁡{xn−1,…,xn−n0}x_n \le \max\{x_{n-1}, \dots, x_{n-n_0}\}, so {xn}\{x_n\} is a bounded sequence. Let XX be the largest integer that occurs infinitely often in the sequence {xn}\{x_n\}, and let NN be an integer such that for all n>Nn > N, xn≤Xx_n \le X. We now have a lemma.

Lemma 1. Let mm be a positive integer of the form m=c1d1+⋯+ckdkm = c_1d_1 + \dots + c_kd_k, with cic_i non-negative integers. If n>N+n0+mn > N + n_0 + m and xn=Xx_n = X, then xn−m=Xx_{n-m} = X.

Proof. Suppose we are given n′>N+n0n' > N + n_0 with xn′=Xx_{n'} = X. Then, xn′−di≤Xx_{n'-d_i} \le X, implying that
X=xn′≤xn′−d1+⋯+xn′−dkk≤X. X = x_{n'} \le \frac{x_{n'-d_1} + \dots + x_{n'-d_k}}{k} \le X.
Equality must then hold in each step of the iterated inequality above, hence xn′−di=Xx_{n'-d_i} = X for each ii. We begin by setting n′=nn' = n and apply this reasoning repeatedly, choosing ii at each step to decrease n′n' to n−mn-m. At each step, we change n′n' to n′−din'-d_i while maintaining xn′=Xx_{n'} = X, allowing us to conclude that xn−m=Xx_{n-m} = X. □\square

Now, let MM be an integer such that for all m>Mm > M there exist non-negative integers c1,c2,…,ckc_1, c_2, \dots, c_k such that m=c1d1+c2d2+⋯+ckdkm = c_1d_1 + c_2d_2 + \dots + c_kd_k. Such an MM exists because gcd⁡(d1,…,dk)=1\gcd(d_1, \dots, d_k) = 1. Because XX occurs infinitely often in {xn}\{x_n\}, we may find some n>M+N+2n0n > M + N + 2n_0 for which xn=Xx_n = X. By our choice of MM, each m∈{M+1,M+2,…,M+n0}m \in \{M+1, M+2, \dots, M+n_0\} is the non-negative linear combination of the did_i. Further, we have n>N+n0+mn > N + n_0 + m, so by Lemma 1 we conclude xn−m=Xx_{n-m} = X for M+1≤m≤M+n0M+1 \le m \le M+n_0. This shows that n0n_0 consecutive terms of the sequence are equal, so the sequence is constant thereafter.

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.