MathLabs

Problem 5

Find all polynomials P(x)P(x) with integer coefficients such that for all real numbers ss and tt, if P(s)P(s) and P(t)P(t) are both integers, then P(st)P(st) is also an integer.
Step 3 of 8: Form a common-root gcd
P(2)∈Z, P(t)=p∈Z ⟹ P(2t)∈Z,f(x)=gcd⁡(P(x)−p, P(2x)−P(2t))P(2)\in\mathbb Z,\ P(t)=p\in\mathbb Z\ \Longrightarrow\ P(2t)\in\mathbb Z,\qquad f(x)=\gcd\big(P(x)-p,\ P(2x)-P(2t)\big)
Detailed analysis

Since PP has integer coefficients, P(2)P(2) is an integer; together with P(t)=p∈ZP(t)=p\in\mathbb Z, the hypothesis applied to s=2s=2 gives P(2t)∈ZP(2t)\in\mathbb Z. Both P(x)−pP(x)-p and P(2x)−P(2t)P(2x)-P(2t) are polynomials with integer coefficients vanishing at x=tx=t, so their gcd f(x)f(x) (computed over Q\mathbb Q) is a non-constant polynomial with rational coefficients dividing both.