Problem 5
Find all polynomials with integer coefficients such that for all real numbers and , if and are both integers, then is also an integer.
Step 3 of 8: Form a common-root gcd
Detailed analysis
Since has integer coefficients, is an integer; together with , the hypothesis applied to gives . Both and are polynomials with integer coefficients vanishing at , so their gcd (computed over ) is a non-constant polynomial with rational coefficients dividing both.