๐Ÿงฎ Brain Teaser

A Polynomial Taking Only Non-Negative Integer Values

Let p(x)p(x) be a polynomial with real coefficients such that p(n)p(n) is a non-negative integer for every non-negative integer nn. Suppose also that p(0)=p(1)=p(2)=0p(0) = p(1) = p(2) = 0.

Must p(n)โ‰ฅ0p(n) \geq 0 for all nโ‰ฅ0n \geq 0? And here is the real question:

What is the minimum possible value of p(3)p(3) given that pp is not identically zero, p(0)=p(1)=p(2)=0p(0) = p(1) = p(2) = 0, and p(n)p(n) is a non-negative integer for all non-negative integers nn?

Bonus: Exhibit an explicit polynomial achieving this minimum.

integer-valued polynomialsbinomial basiscombinatoricspolynomial arithmetic

Answer: A Polynomial Taking Only Non-Negative Integer Values

Key Idea / Intuition

Any polynomial that vanishes at 0,1,20, 1, 2 must be divisible (as a polynomial) by x(xโˆ’1)(xโˆ’2)x(x-1)(x-2). The natural basis for polynomials that take integer values at integers is the binomial coefficient basis: (xk)=x(xโˆ’1)โ‹ฏ(xโˆ’k+1)k!\binom{x}{k} = \frac{x(x-1)\cdots(x-k+1)}{k!}. These are integer-valued at all integers. The constraint that p(n)โ‰ฅ0p(n) \geq 0 for all non-negative integers, combined with the vanishing conditions, forces p(3)p(3) to be at least 11, and the polynomial (x3)โ‹…(something)\binom{x}{3} \cdot \text{(something)} achieves this.

The key insight: write p(x)p(x) in the basis of falling-factorial / binomial-coefficient polynomials. The vanishing at 0,1,20,1,2 forces the first nonzero basis term to involve (x3)\binom{x}{3}, and positivity at n=3n=3 forces the coefficient to be a positive integer, giving minimum value 11.


Formal Proof / Solution

Step 1: Integer-valued polynomials have a canonical basis.

Every polynomial that maps non-negative integers to integers can be written uniquely as p(x)=โˆ‘k=0dck(xk),ckโˆˆZ.p(x) = \sum_{k=0}^{d} c_k \binom{x}{k}, \quad c_k \in \mathbb{Z}.

This is a classical fact: the binomial coefficient polynomials (x0),(x1),(x2),โ€ฆ\binom{x}{0}, \binom{x}{1}, \binom{x}{2}, \ldots form a Z\mathbb{Z}-basis for integer-valued polynomials.

Step 2: Apply the vanishing conditions.

Note that (nk)=0\binom{n}{k} = 0 for 0โ‰คn<k0 \leq n < k (integers). So:

  • p(0)=c0=0p(0) = c_0 = 0
  • p(1)=c0+c1=0โ‡’c1=0p(1) = c_0 + c_1 = 0 \Rightarrow c_1 = 0
  • p(2)=c0+2c1+c2=0โ‡’c2=0p(2) = c_0 + 2c_1 + c_2 = 0 \Rightarrow c_2 = 0

Thus p(x)=โˆ‘k=3dck(xk)p(x) = \sum_{k=3}^{d} c_k \binom{x}{k}.

Step 3: Evaluate at n=3n = 3.

p(3)=โˆ‘k=3dck(3k)=c3(33)+c4(34)+โ‹ฏ=c3โ‹…1+0+โ‹ฏ=c3.p(3) = \sum_{k=3}^{d} c_k \binom{3}{k} = c_3 \binom{3}{3} + c_4 \binom{3}{4} + \cdots = c_3 \cdot 1 + 0 + \cdots = c_3.

(Since (3k)=0\binom{3}{k} = 0 for k>3k > 3.)

Step 4: Apply the non-negativity condition.

We need p(n)โ‰ฅ0p(n) \geq 0 for all non-negative integers nn, and pp is not identically zero, so some ckโ‰ 0c_k \neq 0.

In particular, p(3)=c3โ‰ฅ0p(3) = c_3 \geq 0.

Since pp is not identically zero and p(n)p(n) must be a non-negative integer for all nโ‰ฅ0n \geq 0, we need p(3)โˆˆZโ‰ฅ0p(3) \in \mathbb{Z}_{\geq 0}. If c3=0c_3 = 0, then the leading behavior of pp for large nn is determined by the smallest kโ‰ฅ4k \geq 4 with ckโ‰ 0c_k \neq 0. But in that case p(3)=0p(3) = 0 still, and we need to check consistency โ€” but actually p(3)=c3p(3) = c_3 exactly, so to have p(3)>0p(3) > 0 we need c3โ‰ฅ1c_3 \geq 1.

Can c3=0c_3 = 0 while pโ‰กฬธ0p \not\equiv 0? Yes โ€” for example p(x)=(x4)p(x) = \binom{x}{4} gives p(3)=0p(3) = 0. But the question asks for the minimum positive value achieved (since the problem says pp is not identically zero and asks for the minimum of p(3)p(3)).

Wait โ€” actually p(3)p(3) can equal 00 (e.g., p(x)=(x4)p(x) = \binom{x}{4} gives p(0)=p(1)=p(2)=p(3)=0p(0)=p(1)=p(2)=p(3)=0). The question as stated asks for the minimum positive value of p(3)p(3), i.e., the smallest p(3)>0p(3) > 0.

From Step 3, p(3)=c3p(3) = c_3, so the minimum positive integer value is c3=1c_3 = 1, achieved by:

p(x)=(x3)=x(xโˆ’1)(xโˆ’2)6.\boxed{p(x) = \binom{x}{3} = \frac{x(x-1)(x-2)}{6}.}

Verification:

  • p(0)=p(1)=p(2)=0p(0) = p(1) = p(2) = 0 โœ“
  • p(3)=(33)=1p(3) = \binom{3}{3} = 1 โœ“
  • p(n)=(n3)โ‰ฅ0p(n) = \binom{n}{3} \geq 0 for all nโ‰ฅ0n \geq 0 โœ“
  • p(n)p(n) is an integer for all integers nn โœ“

The minimum positive value of p(3)p(3) is 1\mathbf{1}, achieved by p(x)=x(xโˆ’1)(xโˆ’2)6p(x) = \frac{x(x-1)(x-2)}{6}.

This is beautiful because x(xโˆ’1)(xโˆ’2)6\frac{x(x-1)(x-2)}{6} is not obviously integer-valued โ€” yet it counts (n3)\binom{n}{3}, the number of 3-element subsets of an nn-element set, which is always a non-negative integer!

Source: Mathematical folklore / Putnam-style

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