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-15

Exercise 1.2.6-15

proved in Lean solution written

RatingM15
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 eq. 1.2.6(13), the binomial theorem for a natural exponent.

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

Induct on rr.

Hint 2

Multiply the formula for rr by x+yx + y and join the terms with the same powers by the addition formula (9).

Solution

Show the solution

Induct on rr. For r=0r = 0 both sides are 11 (with 00=10^0 = 1, Exercise 1.2.6-2).

Assume (x+y)r=∑k(rk)xkyr−k(x+y)^r = \sum_k \binom{r}{k}x^k y^{r-k}. Then (x+y)r+1=∑k(rk)xk+1yr−k+∑k(rk)xkyr+1−k.(x+y)^{r+1} = \sum_k \binom{r}{k}x^{k+1}y^{r-k} + \sum_k \binom{r}{k}x^k y^{r+1-k}. In the first sum replace kk by k−1k - 1. This gives ∑k(rk−1)xkyr+1−k\sum_k \binom{r}{k-1}x^k y^{r+1-k}. Add the two sums term by term: (x+y)r+1=∑k[(rk−1)+(rk)]xkyr+1−k=∑k(r+1k)xkyr+1−k,(x+y)^{r+1} = \sum_k \left[\binom{r}{k-1} + \binom{r}{k}\right] x^k y^{r+1-k} = \sum_k \binom{r+1}{k}x^k y^{r+1-k}, by the addition formula (9) with upper index r+1r + 1. Terms with k<0k < 0 or k>r+1k > r + 1 are zero, so the sum is the same as the sum over 0≤k≤r+10 \le k \le r+1.

Check

r=3r = 3: (x+y)3=x3+3x2y+3xy2+y3(x+y)^3 = x^3 + 3x^2y + 3xy^2 + y^3, with coefficients (33),(32),(31),(30)=1,3,3,1\binom{3}{3}, \binom{3}{2}, \binom{3}{1}, \binom{3}{0} = 1, 3, 3, 1. For x=y=1x = y = 1 the sum is 8=238 = 2^3.

Remarks

The count behind the proof: in (x+y)r(x+y)^r, a term with xkx^k comes from choosing xx in kk of the rr factors, and there are (rk)\binom{r}{k} ways. For real rr the formula becomes a series, eq. 1.2.6(15), which Exercise 1.2.6-17 uses.

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

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

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

Something is wrong? Report it.