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 3 of 5: The first nn terms are nn consecutive integers
In plain words

Induction: a block of consecutive integers can only be extended by exactly one more integer at one of its two open ends.

{a1,…,an}={k+1,…,k+n} for some integer k\{a_1,\dots,a_n\}=\{k+1,\dots,k+n\}\ \text{for some integer }k
Detailed analysis

Induct on nn (base case n=1n=1 is trivial). If {a1,…,an}={k+1,…,k+n}\{a_1,\dots,a_n\}=\{k+1,\dots,k+n\}, this block together with kk forms n+1n+1 consecutive integers k,k+1,…,k+nk,k+1,\dots,k+n, which realizes every residue mod n+1n+1 exactly once; the block {a1,…,an}\{a_1,\dots,a_n\} is missing exactly the residue of kk. Since a1,…,an+1a_1,\dots,a_{n+1} must also realize all n+1n+1 residues mod n+1n+1, we need an+1≡k(modn+1)a_{n+1}\equiv k\pmod{n+1}. By the previous step, ∣an+1−a1∣<n+1|a_{n+1}-a_1|<n+1 with a1∈{k+1,…,k+n}a_1\in\{k+1,\dots,k+n\}, so the only integers congruent to kk mod n+1n+1 that close to a1a_1 are kk and k+n+1k+n+1. Either choice extends the block by exactly one consecutive integer.