In the solution to the preparatory task D of Series III, we proved that if polynomials f and g have integer coefficients, stf≤stg, and for every natural number n, the number f(n) is a divisor of the number g(n), then there exists an integer c such that g(x)=c⋅f(x). Therefore, either stf=stg (when c=0), or g is the zero polynomial (when c=0). It is sufficient to consider the case where stg>stf.
Let h and r be the quotient and remainder, respectively, of the division of the polynomial g by f. Then
Polynomials h and r have rational coefficients. Let a be the least common denominator of the coefficients of polynomials h and r. Then the polynomials H=ah and R=ar have integer coefficients, and multiplying equation (1) by a on both sides, we obtain
Therefore, the polynomial ag also has integer coefficients.
For every natural number n, the number f(n) is, of course, a divisor of the number ag(n). Therefore, by (2), the number f(n) is a divisor of the number R(n)=ag(n)−H(n)⋅f(n) for n=1,2,…. Since stR=str<stf, it follows from the initial remark in this solution that R=ar is the zero polynomial. Therefore, r is also the zero polynomial, and from (1) we obtain g=hf.
We will show by example that the coefficients of the polynomial h may not be integers. Let f(x)=2, g(x)=x2+x. For every integer n, the number g(n)=n(n+1) is even, because one of the numbers n and n+1 is even. Therefore, the number f(n)=2 is a divisor of the number g(n) for n=1,2,…. The coefficients of the polynomial h(x)=f(x)g(x)=21x2+21x are, of course, not integers.