MathLabs

Problem 3

Let P(x)P(x) be a non-constant polynomial with integer coefficients such that P(0)≠0P(0)\neq0. Let a1,a2,a3,…a_1,a_2,a_3,\ldots be an infinite sequence of integers such that P(i−j)P(i-j) divides ai−aja_i-a_j for all distinct positive integers i,ji,j. Prove that the sequence a1,a2,a3,…a_1,a_2,a_3,\ldots must be constant, that is, ana_n equals a constant cc for every positive integer nn.
Step 3 of 5: Two periods of the sequence mod p
P(k)∣ai+k−ai,P(k+p)≡P(k)≡0 ⁣ ⁣(modp)  ⟹  p∣ai+k+p−aiP(k)\mid a_{i+k}-a_i,\qquad P(k+p)\equiv P(k)\equiv0\!\!\pmod p\implies p\mid a_{i+k+p}-a_i
Detailed analysis

For such a pair (p,k)(p,k), P(k)∣ai+k−aiP(k)\mid a_{i+k}-a_i for every ii, so p∣ai+k−aip\mid a_{i+k}-a_i. Since (k+p)−k=p(k+p)-k=p, integer-coefficient polynomials satisfy P(k+p)≡P(k)≡0(modp)P(k+p)\equiv P(k)\equiv0\pmod p, so p∣P(k+p)p\mid P(k+p), which gives p∣ai+k+p−aip\mid a_{i+k+p}-a_i for every ii as well.