MathLabs

Problem 2

Let a1,a2,…a_1, a_2, \dots be a sequence of integers with infinitely many positive and negative terms. Suppose that for every positive integer nn the numbers a1,a2,…,ana_1, a_2, \dots, a_n leave nn different remainders upon division by nn. Prove that every integer occurs exactly once in the sequence.
Step 2 of 5: Consecutive-index terms stay close
In plain words

If two early terms were far apart, that very distance would be small enough to serve as an nn in which they collide.

i<j ⟹ ∣ai−aj∣<ji<j\ \Longrightarrow\ |a_i-a_j|<j
Detailed analysis

Suppose ∣ai−aj∣≥j|a_i-a_j|\ge j for some i<ji<j, and set n=∣ai−aj∣≠0n=|a_i-a_j|\ne0 (nonzero by the previous step). Then i<j≤ni<j\le n, so both indices lie in [1,n][1,n], and ai≡aj(modn)a_i\equiv a_j\pmod n by construction of nn — contradicting that a1,…,ana_1,\dots,a_n have nn distinct remainders mod nn. Hence ∣ai−aj∣<j|a_i-a_j|<j whenever i<ji<j.