The sequence a1,a2,…a_1, a_2, \ldots of integers satisfies the following conditions:

(i) 1⩽aj⩽20151 \leqslant a_{j} \leqslant 2015 for all j⩾1j \geqslant 1;

(ii) k+ak≠ℓ+aℓk + a_{k} \neq \ell + a_{\ell} for all 1⩽k<ℓ1 \leqslant k < \ell.

Prove that there exist two positive integers bb and NN such that ∣∑j=m+1n(aj−b)∣⩽10072\left| \sum_{j = m + 1}^{n} (a_{j} - b) \right| \leqslant 1007^{2} for all integers mm and nn satisfying n>m⩾Nn > m \geqslant N.