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 6 of 8: Match coefficients to kill lower terms
Detailed analysis
Both sides have degree in ; matching leading coefficients ( on the left) shows equals exactly. Comparing the coefficient of for each gives , i.e. ; since for , this forces . Hence .