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 4 of 5: Combine the two periods
gcd⁡(k,k+p)=1  ⟹  p∣ai+1−ai for every i\gcd(k,k+p)=1\implies p\mid a_{i+1}-a_i\ \text{for every }i
Detailed analysis

By Step 3, the sequence (ai mod p)(a_i\bmod p) is periodic with periods kk and k+pk+p. Since p∤kp\nmid k, gcd⁡(k,k+p)=gcd⁡(k,p)=1\gcd(k,k+p)=\gcd(k,p)=1, and a sequence periodic with two coprime periods is periodic with their gcd, which is 11; that is, p∣ai+1−aip\mid a_{i+1}-a_i for every ii.