# Solution to puzzle 49: An odd polynomial

Let p(x) = a0 + a1x + ... + anxn.
Then p(0) = a0 is odd, and p(1) = a0 + ... + an is odd.

We now use the polynomial remainder theorem, which implies that, for unequal integers a and b, (b − a) divides (p(b) − p(a)).  A short proof follows.

We have p(b) − p(a) = a1(b − a) + a2(b2 − a2) + ... + an(bn − an).
For n > 1, bn − an = (b − a)(bn−1 + abn−2 + ... + an−2b + an−1).
Therefore, for n > 0, b − a divides bn − an, and so b − a divides p(b) − p(a).

By the polynomial remainder theorem, 2 divides p(k+2) − p(k), for any integer, k.
Since p(0) is odd, p(k) is odd, for all even k.  (The sum of an odd number and an even number is odd.)
Similarly, since p(1) is odd, p(k) is odd, for all odd k.
Hence p(k) is odd for all integers.

Therefore p has no integer roots.

## A proof by induction

We can also show that p(k) is odd, for any integer, k, using mathematical induction.

If k is even, then trivially a1k + ... + ankn is even, and therefore p(k) is odd.

For odd k, we use induction on the degree of the polynomial.

The basis cases are:
Degree 0: p(k) = a0.  This is true by definition, as a0 is odd.
Degree 1: p(k) = a0 + a1k.  Since a0 is odd, and a0 + a1 is odd, a1 is even.  Hence a0 + a1k is odd.

For the induction step, we assume the inductive hypothesis: p(k) is odd if the degree of p is less than n.

Consider p(k) = a0 + k(a1 + ... + ankn−1), where n 2.
If a1 is even, p(k) = (a0 + k) + k(a1−1 + ... + ankn−1).
If a1 is odd, p(k) = (a0 + k2) + k(a1 + (a2−1)k + ... + ankn−1).

In both cases, p(k) equals an even number plus an odd number (k) multiplied by an odd number (by the inductive hypothesis.)
Hence, p(k) is odd, which concludes the induction step.

It may be asked why we needed to include the proof for degree 1 in the basis step.  Cannot that be proved in the induction step?  It can, but not without some qualification.

In the induction step, we must handle the case where n = 1 and a1 is odd.  Without special provision, we would have p(k) = (a0 + k2) + k(a1 − k), where a1 − k is of degree 1, and hence not within the inductive hypothesis.  The special provision can take the form either of noting that, if n = 1, a1 must be even; or of transferring the case n = 1 to the basis step.

## The Mystery Polynomial

What little is known about the Mystery Polynomial can be summarised as follows:

1. All of its coefficients are integers.
2. Its constant term is 1492.
3. The sum of the coefficients of its even exponents (including the constant term) is 1776.
4. The sum of the coefficients of its odd exponents is 1621.

Does the Mystery Polynomial have any integer roots?

Source: Original