taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.6-58

Exercise 1.2.6-58

stated in Lean solution written

RatingM23
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Prove the qq-nomial theorem ∏i=0n−1(1+qix)=∑k(nk)qqk(k−1)/2xk\prod_{i=0}^{n-1}(1 + q^ix) = \sum_k\binom{n}{k}_qq^{k(k-1)/2}x^k.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

First show the qq-Pascal rule (n+1k)q=qk(nk)q+(nk−1)q\binom{n+1}{k}_q = q^k\binom{n}{k}_q + \binom{n}{k-1}_q from the product form.

Hint 2

Write Pn(x)=∏i<n(1+qix)P_n(x) = \prod_{i<n}(1+q^ix) and relate Pn+1(x)P_{n+1}(x) to Pn(qx)P_n(qx).

Hint 3

Induct on nn and compare coefficients.

Solution

Show the solution

Eq. 1.2.6(40) reads (nk)q=∏j=1k1−qn−j+11−qj\binom{n}{k}_q = \prod_{j=1}^{k}\frac{1 - q^{n-j+1}}{1 - q^j}, and it is 00 for k>nk > n (the factor j=n+1j = n+1 has 1−q0=01 - q^0 = 0) and for k<0k < 0.

q-Pascal rule. For 1≤k≤n+11 \le k \le n + 1, (nk)q=(nk−1)q1−qn−k+11−qk\binom{n}{k}_q = \binom{n}{k-1}_q\frac{1-q^{n-k+1}}{1-q^k}. So qk(nk)q+(nk−1)q=(nk−1)q⋅qk(1−qn−k+1)+(1−qk)1−qk=(nk−1)q1−qn+11−qk.q^k\binom{n}{k}_q + \binom{n}{k-1}_q = \binom{n}{k-1}_q\cdot\frac{q^k(1-q^{n-k+1}) + (1-q^k)}{1-q^k} = \binom{n}{k-1}_q\frac{1-q^{n+1}}{1-q^k}. The last expression is (n+1k)q\binom{n+1}{k}_q, since (n+1k)q=1−qn+11−qk∏j=1k−11−qn+1−j1−qj\binom{n+1}{k}_q = \frac{1-q^{n+1}}{1-q^k}\prod_{j=1}^{k-1}\frac{1-q^{n+1-j}}{1-q^j} and the product is (nk−1)q\binom{n}{k-1}_q. For k=0k = 0 the rule reads 1=11 = 1.

Induction. The case n=0n = 0 is 1=(00)q1 = \binom{0}{0}_q. Next Pn+1(x)=(1+x)∏i=1n(1+qix)=(1+x)Pn(qx)P_{n+1}(x) = (1+x)\prod_{i=1}^{n}(1+q^ix) = (1+x)P_n(qx). If Pn(x)=∑kcn,kxkP_n(x) = \sum_kc_{n,k}x^k with cn,k=(nk)qqk(k−1)/2c_{n,k} = \binom{n}{k}_qq^{k(k-1)/2}, then Pn+1(x)=(1+x)∑kcn,kqkxkP_{n+1}(x) = (1+x)\sum_kc_{n,k}q^kx^k and cn+1,k=qkcn,k+qk−1cn,k−1.c_{n+1,k} = q^kc_{n,k} + q^{k-1}c_{n,k-1}. The exponents: qkcn,k=(nk)qqk(k−1)/2+kq^kc_{n,k} = \binom{n}{k}_qq^{k(k-1)/2+k} and qk−1cn,k−1=(nk−1)qq(k−1)(k−2)/2+k−1=(nk−1)qqk(k−1)/2q^{k-1}c_{n,k-1} = \binom{n}{k-1}_qq^{(k-1)(k-2)/2+k-1} = \binom{n}{k-1}_qq^{k(k-1)/2}. So cn+1,k=qk(k−1)/2(qk(nk)q+(nk−1)q)=qk(k−1)/2(n+1k)q,c_{n+1,k} = q^{k(k-1)/2}\Bigl(q^k\tbinom{n}{k}_q + \tbinom{n}{k-1}_q\Bigr) = q^{k(k-1)/2}\tbinom{n+1}{k}_q, by the qq-Pascal rule. All denominators 1−qj1 - q^j have j≤n+1j \le n + 1, which is allowed since the statement is for the final nn and the earlier steps need fewer.

Check

Take q=2q = 2, x=3x = 3, n=4n = 4. The product is (1+3)(1+6)(1+12)(1+24)=4⋅7⋅13⋅25=9100(1+3)(1+6)(1+12)(1+24) = 4\cdot 7\cdot 13\cdot 25 = 9100. The coefficients (4k)2\binom{4}{k}_2 are 1,15,35,15,11, 15, 35, 15, 1, and the sum is 1+15⋅3+35⋅2⋅9+15⋅8⋅27+64⋅81=1+45+630+3240+5184=91001 + 15\cdot 3 + 35\cdot 2\cdot 9 + 15\cdot 8\cdot 27 + 64\cdot 81 = 1 + 45 + 630 + 3240 + 5184 = 9100.

Remarks

For q→1q \to 1 the theorem is the binomial theorem, eq. 1.2.6(13). The qq-binomial coefficient counts, for a prime power qq, the kk-dimensional subspaces of an nn-dimensional vector space over the field with qq elements.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.