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 2 of 8: Hit a large prime by the intermediate value theorem
p>∑i=1n∣ai∣,p prime,∃ t∈R: P(t)=pp>\sum_{i=1}^n|a_i|,\quad p\ \text{prime},\qquad \exists\, t\in\mathbb R:\ P(t)=p
Detailed analysis

Fix a prime pp larger than ∑i=1n∣ai∣\sum_{i=1}^n|a_i|. Since P(0)=0P(0)=0, PP is continuous, and an>0a_n>0 makes P(x)→∞P(x)\to\infty as x→∞x\to\infty, the intermediate value theorem gives a real t>0t>0 with P(t)=pP(t)=p.