Exercise · Volume 1 · 1.2.6-60
Exercise 1.2.6-60
proved in Lean solution written
| Rating | M23 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.6 of Volume 1. Companion chapter: Binomial coefficients |
The task
Count the -element combinations of kinds of objects when repetition is allowed.
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
List the chosen objects in order, .
Hint 2
Shift by to make the sequence strictly increasing.
Solution
Show the solution
A combination with repetition is a sequence (this needs when ). Put . Then , since . Also and . Conversely, every strictly increasing sequence in gives , a weakly increasing sequence in . This is a bijection onto the -element subsets of an -set, so the count is .
For : there is one combination of size (the empty one) and none of size . The formula gives , which is for and for .
Check
For , the multisets are , that is . For , : , that is .
Remarks
The same count is the number of solutions of in natural numbers. It is the coefficient of in , by eq. 1.2.6(16) and eq. 1.2.6(17).
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.
- Problem:
TAOCP.S1_2_6.Ex60.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_6.Ex60.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.