Olympiad Maths Prep

Track / Stage 8 / 133 of 180 #1833 of 2000

Problem 1833

IMO Shortlist mid-range; USAMO P2/P5
Algebra Difficulty 8.5 Prove it Team Selection Test Selection Test · United States

Let x0,x1,,xn01x_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 nn0n \ge n_0, define
xn=xnd1+xnd2++xndkk. 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.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution (By Adam Hesterberg). Note that xnmax{xn1,,xnn0}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, xnXx_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 xnm=Xx_{n-m} = X.

*Proof.* Suppose we are given n>N+n0n' > N + n_0 with xn=Xx_{n'} = X. Then, xndiXx_{n'-d_i} \le X, implying that
X=xnxnd1++xndkkX. 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 xndi=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 nn' to nmn-m. At each step, we change nn' to ndin'-d_i while maintaining xn=Xx_{n'} = X, allowing us to conclude that xnm=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 xnm=Xx_{n-m} = X for M+1mM+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.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.