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

Exercise 1.2.6-1

proved in Lean solution written

Rating00
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 the number of ways to choose n−1n-1 objects from nn objects.

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

Think about what the choice leaves behind.

Solution

Show the solution

A choice of n−1n-1 objects from nn objects is fixed by the one object that is left out. Different left-out objects give different choices, and each of the nn objects can be the one that is left out. So there are nn combinations.

The same count follows from the symmetry rule: (nn−1)=(n1)=n\binom{n}{n-1} = \binom{n}{1} = n, by eq. 1.2.6(6) and eq. 1.2.6(4).

Check

For n=4n = 4 and the objects a,b,c,da, b, c, d the combinations of three are abc,abd,acd,bcdabc, abd, acd, bcd. They are 44 in number, and each misses one letter.

Remarks

The same argument shows (nn−j)=(nj)\binom{n}{n-j} = \binom{n}{j}, which is the symmetry rule of Exercise 1.2.6-8. For n=0n = 0 the question has no meaning, since n−1<0n - 1 < 0 and (0−1)=0\binom{0}{-1} = 0 by the definition of the section.

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.