๐Ÿงฎ Brain Teaser

The Polynomial That Is Always Divisible by n!

Let nn be a positive integer. Show that for any integers a1,a2,โ€ฆ,ana_1, a_2, \ldots, a_n, the product

โˆ1โ‰คi<jโ‰คn(ajโˆ’ai)\prod_{1 \le i < j \le n} (a_j - a_i)

is divisible by 1!โ‹…2!โ‹ฏ(nโˆ’1)!1! \cdot 2! \cdots (n-1)!.

divisibilityVandermondebinomial coefficientsdeterminantcombinatorics

Answer: The Polynomial That Is Always Divisible by n!

Key Idea / Intuition

The product โˆi<j(ajโˆ’ai)\prod_{i < j}(a_j - a_i) looks like a Vandermonde determinant โ€” and the key insight is that when you evaluate a Vandermonde determinant at integer arguments, you can relate it to a product of binomial coefficients, each of which is an integer. The ratio of the Vandermonde determinant to 1!โ‹…2!โ‹ฏ(nโˆ’1)!1! \cdot 2! \cdots (n-1)! is itself a product of integers (it counts something combinatorially), which forces the divisibility.

More concretely: sort the aia_i and compare the product to the "standard" Vandermonde at {0,1,2,โ€ฆ,nโˆ’1}\{0, 1, 2, \ldots, n-1\}. The standard one equals โˆk=0nโˆ’1k!=1!โ‹…2!โ‹ฏ(nโˆ’1)!\prod_{k=0}^{n-1} k! = 1!\cdot 2!\cdots (n-1)!, and for any integer inputs the ratio is an integer.


Formal Proof / Solution

Step 1: Reduction to distinct values.

If any two aia_i are equal, the product is 00, which is divisible by anything. So assume the aia_i are distinct integers.

Step 2: The Vandermonde connection.

Order the integers: let b1<b2<โ‹ฏ<bnb_1 < b_2 < \cdots < b_n be a1,โ€ฆ,ana_1, \ldots, a_n in increasing order (the absolute value of the product is unchanged by permutation). Then

โˆ1โ‰คi<jโ‰คn(bjโˆ’bi)>0.\prod_{1 \le i < j \le n}(b_j - b_i) > 0.

Step 3: Express as a product of binomial coefficients.

Define the falling-factorial / binomial counting as follows. We claim:

โˆi<j(bjโˆ’bi)1!โ‹…2!โ‹ฏ(nโˆ’1)!=detโก[(bijโˆ’1)]i,j=1n.\frac{\prod_{i < j}(b_j - b_i)}{1!\cdot 2!\cdots (n-1)!} = \det\left[\binom{b_i}{j-1}\right]_{i,j=1}^{n}.

Here is why. The Vandermonde determinant satisfies

detโก[bijโˆ’1]i,j=โˆi<j(bjโˆ’bi).\det[b_i^{j-1}]_{i,j} = \prod_{i<j}(b_j - b_i).

Now consider the matrix MM with entries Mij=(bijโˆ’1)M_{ij} = \binom{b_i}{j-1}. Since (bk)=bkk!โˆ’lowerย terms\binom{b}{k} = \frac{b^k}{k!} - \text{lower terms}, the column operations converting [bijโˆ’1][b_i^{j-1}] to [(bijโˆ’1)][\binom{b_i}{j-1}] multiply column jj by 1(jโˆ’1)!\frac{1}{(j-1)!}. Hence

detโก[(bijโˆ’1)]=10!โ‹…1!โ‹ฏ(nโˆ’1)!detโก[bijโˆ’1]=โˆi<j(bjโˆ’bi)1!โ‹…2!โ‹ฏ(nโˆ’1)!.\det\left[\binom{b_i}{j-1}\right] = \frac{1}{0!\cdot 1!\cdots (n-1)!}\det[b_i^{j-1}] = \frac{\prod_{i<j}(b_j - b_i)}{1!\cdot 2!\cdots (n-1)!}.

Step 4: The determinant is an integer.

The matrix [(bijโˆ’1)]\left[\binom{b_i}{j-1}\right] has integer entries (since each bib_i is an integer and (mk)โˆˆZ\binom{m}{k} \in \mathbb{Z} for all integers mโ‰ฅ0m \ge 0 and kโ‰ฅ0k \ge 0; for negative integers one checks (mk)\binom{m}{k} is still an integer). Therefore its determinant is an integer.

Conclusion.

1!โ‹…2!โ‹ฏ(nโˆ’1)!โ€…โ€Šโˆฃโ€…โ€Šโˆ1โ‰คi<jโ‰คn(ajโˆ’ai).โ– 1!\cdot 2!\cdots(n-1)! \;\Big|\; \prod_{1\le i < j \le n}(a_j - a_i). \qquad \blacksquare

Sanity check with n=3n=3, (a1,a2,a3)=(0,1,3)(a_1,a_2,a_3) = (0,1,3): โˆi<j(ajโˆ’ai)=(1โˆ’0)(3โˆ’0)(3โˆ’1)=6,1!โ‹…2!=2.2โˆฃ6.โœ“\prod_{i<j}(a_j - a_i) = (1-0)(3-0)(3-1) = 6, \quad 1!\cdot 2! = 2. \quad 2\mid 6. \checkmark

Why this is beautiful: The quantity โˆi<j(bjโˆ’bi)1!โ‹ฏ(nโˆ’1)!\frac{\prod_{i<j}(b_j-b_i)}{1!\cdots(n-1)!} secretly counts the number of Standard Young Tableaux of staircase shape, or equivalently appears in the hook-length formula โ€” the divisibility is not an accident but reflects deep combinatorial structure.

Source: Mathematical folklore / Putnam-style classic

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