๐Ÿงฎ Brain Teaser

The Polynomial That Takes Integer Values at Half-Integers

Let p(x)p(x) be a polynomial with real coefficients such that pโ€‰โฃ(k2)p\!\left(\frac{k}{2}\right) is an integer for every integer kk. Must p(x)p(x) have rational coefficients?

Moreover, suppose p(x)p(x) has degree nn and pโ€‰โฃ(k2)p\!\left(\frac{k}{2}\right) is an integer for all kโˆˆZk \in \mathbb{Z}. Show that 2nโ‹…p(x)2^n \cdot p(x) has integer coefficients (i.e., the denominator of each coefficient of pp divides 2n2^n).

integer-valued polynomialsbinomial basisfinite differencesdenominatorsnumber theory

Answer: The Polynomial That Takes Integer Values at Half-Integers

Key Idea / Intuition

The classical basis for polynomials taking integer values at integers is the binomial coefficient basis (xk)\binom{x}{k}. Here, we shift to a half-integer grid, so we rescale: write p(x)p(x) in terms of the basis (2xk)\binom{2x}{k}, scaled by 12k\frac{1}{2^k}. Each basis element (2xk)/2k\binom{2x}{k}/2^k equals an integer at half-integers, and the leading denominator introduced is at most 2n2^n. This shows the denominators of pp's coefficients are controlled by powers of 2, and in particular 2np(x)2^n p(x) has integer coefficients.


Formal Proof / Solution

Step 1: Change variables.

Let q(t)=p(t/2)q(t) = p(t/2), where t=2xt = 2x. Then q(t)q(t) is a polynomial of degree nn with real coefficients, and by hypothesis q(k)โˆˆZq(k) \in \mathbb{Z} for every integer kk.

Step 2: Expand in the integer-valued basis.

Any polynomial taking integer values at all integers can be written uniquely as: q(t)=โˆ‘j=0ncj(tj),cjโˆˆZ.q(t) = \sum_{j=0}^{n} c_j \binom{t}{j}, \qquad c_j \in \mathbb{Z}. This is the classical result: the cjc_j are the finite differences ฮ”jq(0)\Delta^j q(0), which are integers since qq takes integer values at integers.

Step 3: Translate back to p(x)p(x).

Since t=2xt = 2x: p(x)=q(2x)=โˆ‘j=0ncj(2xj)=โˆ‘j=0ncjโ‹…(2x)(2xโˆ’1)โ‹ฏ(2xโˆ’j+1)j!.p(x) = q(2x) = \sum_{j=0}^{n} c_j \binom{2x}{j} = \sum_{j=0}^{n} c_j \cdot \frac{(2x)(2x-1)\cdots(2x-j+1)}{j!}.

Step 4: Control the denominators.

Each term (2xj)\binom{2x}{j} is a polynomial in xx of degree jj. Writing it out: (2xj)=(2x)(2xโˆ’1)(2xโˆ’2)โ‹ฏ(2xโˆ’j+1)j!.\binom{2x}{j} = \frac{(2x)(2x-1)(2x-2)\cdots(2x-j+1)}{j!}.

The numerator (2x)(2xโˆ’1)โ‹ฏ(2xโˆ’j+1)(2x)(2x-1)\cdots(2x-j+1) has jj factors; after expanding, when written as a polynomial in xx, the denominators come from the j!j! in the bottom and the odd factors {1,3,5,โ€ฆ}\{1,3,5,\ldots\} in the numerator. The key observation is:

2j(2xj)=(2x)(2xโˆ’1)โ‹ฏ(2xโˆ’j+1)j!โ‹…2j2^j \binom{2x}{j} = \frac{(2x)(2x-1)\cdots(2x-j+1)}{j!} \cdot 2^j

is a polynomial in xx with integer coefficients. (Indeed, 2j(2xj)2^j \binom{2x}{j} evaluated at x=k/2x = k/2 gives 2j(kj)2^j \binom{k}{j}, an integer, and one can verify directly that all coefficients are integers by induction.)

Step 5: Conclude.

Therefore: 2np(x)=โˆ‘j=0ncjโ‹…2nโˆ’jโ‹…(2j(2xj)).2^n p(x) = \sum_{j=0}^{n} c_j \cdot 2^{n-j} \cdot \left(2^j \binom{2x}{j}\right).

Each factor 2j(2xj)2^j \binom{2x}{j} has integer coefficients (as shown above), cjโˆˆZc_j \in \mathbb{Z}, and 2nโˆ’jโˆˆZ2^{n-j} \in \mathbb{Z}. So 2np(x)2^n p(x) is a polynomial with integer coefficients. โ– \blacksquare

Corollary (answering the first question): Since 2np(x)2^n p(x) has integer coefficients, p(x)p(x) has rational coefficients. Yes โ€” it must!

Example: p(x)=(2x2)/4=x(2xโˆ’1)/4=x2/2โˆ’x/4p(x) = \binom{2x}{2}/4 = x(2x-1)/4 = x^2/2 - x/4. Then p(k/2)=k28โˆ’k8p(k/2) = \frac{k^2}{8} - \frac{k}{8}โ€ฆ wait, let's check with cjc_j correctly. Taking p(x)=(2x1)=2xp(x) = \binom{2x}{1} = 2x: trivial. More interesting: p(x)=12(2x2)=2x(2xโˆ’1)4=x(2xโˆ’1)/2p(x) = \frac{1}{2}\binom{2x}{2} = \frac{2x(2x-1)}{4} = x(2x-1)/2. At x=k/2x = k/2: p(k/2)=k(kโˆ’1)2=(k2)โˆˆZp(k/2) = \frac{k(k-1)}{2} = \binom{k}{2} \in \mathbb{Z}. โœ“ And 22p(x)=4โ‹…x(2xโˆ’1)/2=2x(2xโˆ’1)=4x2โˆ’2x2^2 p(x) = 4 \cdot x(2x-1)/2 = 2x(2x-1) = 4x^2 - 2x โ€” integer coefficients. โœ“

Source: Mathematical folklore / Putnam preparation

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