MathLabs

Problem 2

For a polynomial PP and a positive integer nn, define PnP_n as the number of positive integer pairs (a,b)(a,b) such that a<b≤na<b\le n and ∣P(a)∣−∣P(b)∣|P(a)|-|P(b)| is divisible by nn. Determine all polynomials PP with integer coefficients such that Pn≤2021P_n\le2021 for all positive integers nn.
Step 4 of 6: The linear coefficient is ±1
P(x)=cx+d,∣c∣=1P(x)=cx+d,\quad |c|=1
Detailed analysis

Write P(x)=cx+dP(x)=cx+d with c≠0c\ne0. If ∣c∣≥2|c|\ge2, then taking n=∣c∣≥2n=|c|\ge2, P(1)=c+d≡d(modc)P(1)=c+d\equiv d\pmod c and P(2)=2c+d≡d(modc)P(2)=2c+d\equiv d\pmod c are congruent modulo n=∣c∣n=|c|, contradicting the lemma applied with y=1,z=2y=1,z=2. Hence ∣c∣=1|c|=1.