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 4 of 6: Splitting the target sum by chain
In plain words

Subtracting bb from each term of the sum exactly compensates for adding one overshoot term per chain.

∑j=m+1n(aj−b)=∑chain c[(min⁡{x>n:x∈c}−n)−(min⁡{x>m:x∈c}−m)]\sum_{j=m+1}^{n}(a_j-b)=\sum_{\text{chain }c}\Big[\big(\min\{x>n:x\in c\}-n\big)-\big(\min\{x>m:x\in c\}-m\big)\Big]
Detailed analysis

Summing the previous step's telescoping identity over all bb chains and comparing with ∑j=m+1naj=∑j=m+1n(f(j)−j)\sum_{j=m+1}^n a_j=\sum_{j=m+1}^n\big(f(j)-j\big), one finds that ∑j=m+1n(aj−b)\sum_{j=m+1}^n(a_j-b) equals exactly the sum over the bb chains cc of (min⁡{x>n:x∈c}−n)−(min⁡{x>m:x∈c}−m)\big(\min\{x>n:x\in c\}-n\big)-\big(\min\{x>m:x\in c\}-m\big): each chain contributes one overshoot-past-the-boundary term at nn and one at mm, and there are exactly bb chains, matching the −b-b correction applied to each of the n−mn-m indices.