๐Ÿงฎ Brain Teaser

The Polynomial Pigeonhole

Let p(x)p(x) be a polynomial with integer coefficients. Suppose p(a)=p(b)=p(c)=7p(a) = p(b) = p(c) = 7 for three distinct integers a,b,ca, b, c. Prove that there is no integer dd such that p(d)=14p(d) = 14.

polynomialsinteger divisibilityfactor theorempigeonholenumber theory

Answer: The Polynomial Pigeonhole

Key Idea / Intuition

The core trick is that for any polynomial with integer coefficients, p(m)โˆ’p(n)p(m) - p(n) is always divisible by mโˆ’nm - n whenever m,nm, n are integers. Since pp hits 7 at three distinct integer points, the value p(d)โˆ’7p(d) - 7 must be divisible by (dโˆ’a)(dโˆ’b)(dโˆ’c)(d-a)(d-b)(d-c) โ€” a product of three distinct nonzero integers. But p(d)โˆ’7=7p(d) - 7 = 7 forces this product of three distinct integers to divide 7, which is impossible.


Formal Proof / Solution

Key lemma: For any polynomial p(x)p(x) with integer coefficients and any integers m,nm, n, we have (mโˆ’n)โˆฃp(m)โˆ’p(n)(m - n) \mid p(m) - p(n).

Proof of lemma: This follows from the factorization mkโˆ’nk=(mโˆ’n)(mkโˆ’1+โ‹ฏ+nkโˆ’1)m^k - n^k = (m-n)(m^{k-1} + \cdots + n^{k-1}), applied term by term. โ–ก\square

Now the main argument.

Since p(a)=p(b)=p(c)=7p(a) = p(b) = p(c) = 7, define: q(x)=p(x)โˆ’7.q(x) = p(x) - 7.

Then q(x)q(x) is a polynomial with integer coefficients, and a,b,ca, b, c are roots of qq. Therefore: q(x)=(xโˆ’a)(xโˆ’b)(xโˆ’c)โ‹…r(x)q(x) = (x - a)(x - b)(x - c) \cdot r(x) for some polynomial r(x)r(x) with integer coefficients (by the factor theorem, applied iteratively over Z[x]\mathbb{Z}[x]).

Now suppose for contradiction that there exists an integer dd with p(d)=14p(d) = 14. Then: q(d)=p(d)โˆ’7=14โˆ’7=7.q(d) = p(d) - 7 = 14 - 7 = 7.

But substituting into the factored form: (dโˆ’a)(dโˆ’b)(dโˆ’c)โ‹…r(d)=7.(d - a)(d - b)(d - c) \cdot r(d) = 7.

Since d,a,b,cd, a, b, c are all integers, the factors (dโˆ’a)(d-a), (dโˆ’b)(d-b), (dโˆ’c)(d-c), and r(d)r(d) are all integers. Also, dโ‰ a,b,cd \neq a, b, c (since p(d)=14โ‰ 7p(d) = 14 \neq 7), so dโˆ’ad - a, dโˆ’bd - b, dโˆ’cd - c are three distinct nonzero integers.

The product of four integers equals 7 (a prime). In particular, the absolute value of the product of the three factors (dโˆ’a)(dโˆ’b)(dโˆ’c)(d-a)(d-b)(d-c) divides 77, so: โˆฃ(dโˆ’a)(dโˆ’b)(dโˆ’c)โˆฃโ‰ค7.|(d-a)(d-b)(d-c)| \leq 7.

But (dโˆ’a)(d-a), (dโˆ’b)(d-b), (dโˆ’c)(d-c) are three distinct nonzero integers, so their absolute values are at least three distinct positive integers, giving: โˆฃ(dโˆ’a)(dโˆ’b)(dโˆ’c)โˆฃโ‰ฅ1โ‹…2โ‹…3=6.|(d-a)(d-b)(d-c)| \geq 1 \cdot 2 \cdot 3 = 6.

For this product to divide 77 (a prime), we need โˆฃ(dโˆ’a)(dโˆ’b)(dโˆ’c)โˆฃโˆˆ{1,7}|(d-a)(d-b)(d-c)| \in \{1, 7\}.

  • It cannot be 11 or 77 while being a product of three distinct nonzero integers:
    • โˆฃ(dโˆ’a)(dโˆ’b)(dโˆ’c)โˆฃ=1|(d-a)(d-b)(d-c)| = 1 requires three distinct nonzero integers with product ยฑ1\pm 1. The only factorizations of ยฑ1\pm 1 into three distinct integers would require {โˆ’1,1,ยฑ1}\{-1, 1, \pm1\}, but we cannot have three distinct integers all with absolute value โ‰ค1\leq 1.
    • โˆฃ(dโˆ’a)(dโˆ’b)(dโˆ’c)โˆฃ=7|(d-a)(d-b)(d-c)| = 7 requires three distinct nonzero integers with absolute product 77. The only way to write 7=โˆฃpโˆฃโˆฃqโˆฃโˆฃrโˆฃ7 = |p||q||r| with p,q,rp, q, r distinct nonzero integers is {1,1,7}\{1, 1, 7\} or {โˆ’1,โˆ’1,7}\{-1, -1, 7\} etc., but these require repeated values โ€” impossible for distinct integers.

In both cases we reach a contradiction. Therefore, no such integer dd exists. โ– \blacksquare


Remark: The same argument shows more generally: if pp takes the same value at nn distinct integers a1,โ€ฆ,ana_1, \ldots, a_n, then p(d)โˆ’p(a1)p(d) - p(a_1) must be divisible by (dโˆ’a1)โ‹ฏ(dโˆ’an)(d-a_1)\cdots(d-a_n), a product of nn distinct nonzero integers โ€” a powerful constraint.

Source: Mathematical folklore / classic Putnam-style problem

Type: PutnamSource: Mathematical folklore / classic Putnam-style problemEdit on GitHub โ†—