MathLabs

Problem 6

The sequence a1,a2,…a_1,a_2,\dots of integers satisfies the conditions: (i) 1≤aj≤20151\le a_j\le 2015 for all j≥1j\ge1; (ii) k+ak≠ℓ+aℓk+a_k\ne \ell+a_\ell for all 1≤k<ℓ1\le k<\ell. Prove that there exist two positive integers bb and NN for which ∣∑j=m+1n(aj−b)∣≤10072\left|\sum_{j=m+1}^{n}(a_j-b)\right|\le 1007^2 for all integers mm and nn such that n>m≥Nn>m\ge N.
Step 6 of 6: Combining the two boundaries and optimizing over bb
In plain words

The difference of two such overshoot sums, at nn and at mm, is controlled by (b−1)(2015−b)(b-1)(2015-b), which AM-GM caps at 100721007^2.

∣∑j=m+1n(aj−b)∣≤(b−1)(2015−b)≤10072\left|\sum_{j=m+1}^{n}(a_j-b)\right|\le (b-1)(2015-b)\le 1007^2
Detailed analysis

By the previous step, both the overshoot sum at t=nt=n and the one at t=mt=m lie in the interval [b(b+1)/2, b(4031−b)/2]\big[b(b+1)/2,\ b(4031-b)/2\big], so their difference (which by Step 4 equals ∑j=m+1n(aj−b)\sum_{j=m+1}^n(a_j-b)) is bounded in absolute value by the width of that interval, (b−1)(2015−b)(b-1)(2015-b). By AM-GM, (b−1)(2015−b)≤((b−1)+(2015−b)2)2=10072(b-1)(2015-b)\le\left(\frac{(b-1)+(2015-b)}2\right)^2=1007^2, with equality when b=1008b=1008. Whatever the actual number of chains b∈{1,…,2015}b\in\{1,\dots,2015\} turns out to be, this same inequality (b−1)(2015−b)≤10072(b-1)(2015-b)\le1007^2 applies, so ∣∑j=m+1n(aj−b)∣≤10072\left|\sum_{j=m+1}^n(a_j-b)\right|\le1007^2 for all n>m≥Nn>m\ge N, as required.