๐Ÿงฎ Brain Teaser

Problem: An Impossible Integer Polynomial

Problem Statement

Prove that there is no polynomial P(x)P(x) with integer coefficients satisfying both

P(7)=11andP(11)=13.P(7) = 11 \quad \text{and} \quad P(11) = 13.


Metadata

| Field | Details | |---|---| | Field | Putnam / Algebra / Number Theory | | Tags | Polynomials, Integer coefficients, Divisibility, Modular arithmetic | | Difficulty | 2 / 5 | | Date | 2026-04-24 |

Why It's Interesting

This problem looks like it should be impossible to rule out โ€” there are infinitely many polynomials, and the two conditions seem easy to satisfy independently. The proof hinges on a single elegant lemma about integer polynomials that is surprising the first time you see it, and immediately becomes a tool you want to use everywhere.

Key Idea / Hint

For any polynomial P(x)P(x) with integer coefficients and any two integers a,ba, b:

(aโˆ’b)โˆฃ(P(a)โˆ’P(b)).( a - b ) \mid (P(a) - P(b)).

Can you prove this lemma? And then what does it say about our specific values?

Answer

See answer.md

PolynomialsInteger coefficientsDivisibilityModular arithmetic

Answer: An Impossible Integer Polynomial

A Natural but Failed Attempt

Write P(x)=a0+a1x+a2x2+โ‹ฏ+anxnP(x) = a_0 + a_1 x + a_2 x^2 + \cdots + a_n x^n with aiโˆˆZa_i \in \mathbb{Z}.

The attempt: Factor out xx from the non-constant terms:

P(7)=a0+7(a1+7a2+โ‹ฏ+7nโˆ’1an)โŸ=:โ€‰Kโ€‰โˆˆโ€‰Z=11P(7) = a_0 + 7\underbrace{(a_1 + 7a_2 + \cdots + 7^{n-1}a_n)}_{=:\, K \,\in\, \mathbb{Z}} = 11

P(11)=a0+11(a1+11a2+โ‹ฏ+11nโˆ’1an)โŸ=:โ€‰Mโ€‰โˆˆโ€‰Z=13P(11) = a_0 + 11\underbrace{(a_1 + 11a_2 + \cdots + 11^{n-1}a_n)}_{=:\, M \,\in\, \mathbb{Z}} = 13

So we need integers a0,K,Ma_0, K, M satisfying: 7K=11โˆ’a0,11M=13โˆ’a0.7K = 11 - a_0, \quad 11M = 13 - a_0.

Subtracting: 11Mโˆ’7K=211M - 7K = 2. The attempt was to show this linear Diophantine equation has no integer solution.

Why it fails: By Bezout's lemma, 11mโˆ’7k=c11m - 7k = c has integer solutions if and only if gcdโก(7,11)โˆฃc\gcd(7, 11) \mid c. Since gcdโก(7,11)=1\gcd(7, 11) = 1, it divides every integer โ€” so solutions always exist. In fact, m=4,โ€‰k=6m = 4,\, k = 6 gives 11(4)โˆ’7(6)=44โˆ’42=211(4) - 7(6) = 44 - 42 = 2. The equation is perfectly satisfiable.

The deeper issue: Even if you continued to constrain a0a_0 โ€” from 7K=11โˆ’a07K = 11 - a_0 and 11M=13โˆ’a011M = 13 - a_0 you get a0โ‰ก4(mod7)a_0 \equiv 4 \pmod{7} and a0โ‰ก2(mod11)a_0 \equiv 2 \pmod{11}, and by CRT (since gcdโก(7,11)=1\gcd(7,11)=1) there is always an integer a0a_0 satisfying both. So the approach of constraining a0a_0 alone can never produce a contradiction.

What goes wrong structurally: The quantities KK and MM are not independent integers. They both depend on the same coefficients a1,โ€ฆ,ana_1, \ldots, a_n: K=a1+7a2+โ‹ฏโ€‰,M=a1+11a2+โ‹ฏK = a_1 + 7a_2 + \cdots, \quad M = a_1 + 11a_2 + \cdots So fixing (a0,K,M)(a_0, K, M) doesn't mean you can freely choose coefficients โ€” KK and MM are correlated through a1,โ€ฆ,ana_1, \ldots, a_n. The approach discards this coupling and loses all the information.

The correct approach instead looks at P(11)โˆ’P(7)P(11) - P(7) directly, without decomposing by a0a_0.

This actaully gave me an interesting thought: when you are trying to solve a problem like this, you tend to reduce it (not in the theory of computation sense), but the direction is important. Which information you chose to lose is important.

For example this attempt chose to lose the inner connection between MM and KK, and reduced the problem to "show the linear Diophantine equation has no integer solution". That is clearly the wrong direction.


Intuition First

Integer-coefficient polynomials are "rigid" with respect to integer inputs. If you know P(a)P(a) and P(b)P(b) for two integers a,ba, b, their difference P(a)โˆ’P(b)P(a) - P(b) cannot be arbitrary โ€” it is always divisible by aโˆ’ba - b. This is because each monomial xnx^n already has this property (since anโˆ’bna^n - b^n is divisible by aโˆ’ba - b), and the whole polynomial inherits it by linearity.

So knowing P(7)P(7) and P(11)P(11) forces 4โˆฃ(P(11)โˆ’P(7))4 \mid (P(11) - P(7)). But 13โˆ’11=213 - 11 = 2, and 4โˆค24 \nmid 2. Done.


Key Lemma

Lemma: For any polynomial P(x)P(x) with integer coefficients and any integers a,ba, b: (aโˆ’b)โˆฃ(P(a)โˆ’P(b)).(a - b) \mid (P(a) - P(b)).

Proof: It suffices to prove it for monomials xnx^n, since P(a)โˆ’P(b)P(a) - P(b) is a linear combination (with integer coefficients) of terms anโˆ’bna^n - b^n.

The factorization anโˆ’bn=(aโˆ’b)(anโˆ’1+anโˆ’2b+โ‹ฏ+bnโˆ’1)a^n - b^n = (a - b)(a^{n-1} + a^{n-2}b + \cdots + b^{n-1}) shows (aโˆ’b)โˆฃ(anโˆ’bn)(a-b) \mid (a^n - b^n) for all integers a,ba, b and nโ‰ฅ1n \geq 1. โ–ก\square


Proof of the Main Result

Suppose for contradiction that such a PP exists. By the lemma with a=11a = 11, b=7b = 7:

(11โˆ’7)โˆฃ(P(11)โˆ’P(7))(11 - 7) \mid (P(11) - P(7)) 4โˆฃ(13โˆ’11)4 \mid (13 - 11) 4โˆฃ2.4 \mid 2.

This is a contradiction. Therefore no such polynomial exists. โ– \blacksquare


Why This Matters

The lemma (aโˆ’b)โˆฃ(P(a)โˆ’P(b))(a-b) \mid (P(a) - P(b)) is a fundamental and reusable fact. It immediately gives:

  • Integer root test: if P(r)=0P(r) = 0 for integer rr, then (rโˆ’a)โˆฃP(a)(r - a) \mid P(a) for any integer aa, i.e., every integer root of PP divides the constant term (when leading coeff is 1).
  • Mod pp constraints: if P(a)โ‰กP(b)(modp)P(a) \equiv P(b) \pmod{p} is required, you know (aโˆ’b)(a-b) must be divisible by pp โ€” or the values themselves must conspire to cancel mod pp.

The one-line proof is a perfect example of a Putnam technique: find a single invariant (here, divisibility) that rules out the entire family of candidates at once.