๐Ÿงฎ Brain Teaser

A Polynomial Evaluated at Consecutive Integers

Let p(x)p(x) be a polynomial with integer coefficients. Suppose that p(1),p(2),p(3),โ€ฆ,p(2025)p(1), p(2), p(3), \ldots, p(2025) are all odd. Must pp have at least one integer root? What can you say about the number of integer roots of pp?

More precisely: prove that pp has no integer roots at all.

polynomialsparityinteger rootsdivisibilitynumber theory

Answer: A Polynomial Evaluated at Consecutive Integers

Key Idea / Intuition

If p(n)=0p(n) = 0 for some integer nn, then (xโˆ’n)(x - n) divides p(x)p(x) over the integers. This forces p(k)=(kโˆ’n)โ‹…q(k)p(k) = (k-n) \cdot q(k) for all integers kk, where qq has integer coefficients. Among any two consecutive integers kk and k+1k+1, one of kโˆ’nk - n and k+1โˆ’nk+1 - n is even โ€” so at least one of p(k),p(k+1)p(k), p(k+1) would be even. But we are told all 2025 values are odd โ€” a contradiction.


Formal Proof / Solution

Claim: pp has no integer roots.

Proof by contradiction. Suppose nโˆˆZn \in \mathbb{Z} is a root of pp, so p(n)=0p(n) = 0.

Since pp has integer coefficients and nn is an integer root, the factor theorem over Z\mathbb{Z} gives: p(x)=(xโˆ’n)โ€‰q(x)p(x) = (x - n)\, q(x) for some polynomial q(x)q(x) with integer coefficients.

Now consider any integer kk. We have: p(k)=(kโˆ’n)โ€‰q(k),p(k) = (k - n)\, q(k), where both (kโˆ’n)(k-n) and q(k)q(k) are integers.

Key observation: Among any two consecutive integers kk and k+1k+1, exactly one of the differences (kโˆ’n)(k - n) and (k+1โˆ’n)(k+1 - n) is even (since they differ by 1, they have opposite parity). Therefore, at least one of p(k)p(k) and p(k+1)p(k+1) is even.

Apply this to the consecutive pairs (1,2),โ€‰(2,3),โ€‰โ€ฆ,โ€‰(2024,2025)(1,2),\, (2,3),\, \ldots,\, (2024, 2025). In each pair, at least one value is even.

But by hypothesis, p(1),p(2),โ€ฆ,p(2025)p(1), p(2), \ldots, p(2025) are all odd โ€” so in particular, both elements of every consecutive pair are odd.

This is a contradiction.

Therefore, pp has no integer roots. โ– \blacksquare


Remark: The argument works for any set of consecutive integers of size โ‰ฅ2\geq 2. Even two consecutive odd values of a polynomial (e.g., p(1)p(1) and p(2)p(2) both odd) is already enough to rule out integer roots. The number 2025 is irrelevant โ€” even knowing p(1)p(1) and p(2)p(2) are both odd suffices!

Source: Mathematical folklore / Putnam-style

Type: PutnamSource: Mathematical folklore / Putnam-styleEdit on GitHub โ†—