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

Exercise 1.2.6-9

proved in Lean solution written

Rating01
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Find (nn)\binom{n}{n} for each integer nn.

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

Use eq. 1.2.6(3) for n≥0n \ge 0 and the rule for a negative lower index for n<0n < 0.

Solution

Show the solution

For n≥0n \ge 0 the definition (3) gives (nn)=n(n−1)⋯1n(n−1)⋯1=1,\binom{n}{n} = \frac{n(n-1)\cdots 1}{n(n-1)\cdots 1} = 1, and for n=0n = 0 the empty products give (00)=1\binom{0}{0} = 1.

For n<0n < 0 the lower index is negative, and the definition of the section sets (rk)=0\binom{r}{k} = 0 for every integer k<0k < 0. So (nn)=0\binom{n}{n} = 0.

Therefore (nn)=1\binom{n}{n} = 1 for n≥0n \ge 0 and (nn)=0\binom{n}{n} = 0 for n<0n < 0. This is the Iverson bracket [n≥0][n \ge 0].

Check

(33)=1\binom{3}{3} = 1, (00)=1\binom{0}{0} = 1 and (−2−2)=0\binom{-2}{-2} = 0. Row 00 of Table 1 starts with 11, which is (00)\binom{0}{0}.

Remarks

The value 00 for negative nn is a rule of the definition and not a result of the formula. It keeps the addition formula (9) valid for all integers kk, see Exercise 1.2.6-6.

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.