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 3 of 6: Choosing bb and NN
In plain words

Once past every chain start-point, the sum over an interval depends only on where each chain first exits it.

b:=#{chains},N:=max⁡(start-points of the chains)b:=\#\{\text{chains}\},\qquad N:=\max(\text{start-points of the chains})
Detailed analysis

Let bb be the number of chains c1,…,cbc_1,\dots,c_b found above, and let NN be the largest start-point among all chains, so that for any t≥Nt\ge N every chain already contains an element ≤N≤t\le N\le t. For an interval (t1,t2](t_1,t_2] and a chain cc, the sum of the values aj=f(j)−ja_j=f(j)-j over indices j∈c∩(t1,t2]j\in c\cap(t_1,t_2] telescopes along the chain to (min⁡{x>t2:x∈c}−t2)−(min⁡{x>t1:x∈c}−t1)\big(\min\{x>t_2:x\in c\}-t_2\big)-\big(\min\{x>t_1:x\in c\}-t_1\big).