Exercise · Volume 1 · 1.2.9-16
Exercise 1.2.9-16
proved in Lean solution written
| Rating | M22 |
|---|---|
| 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.9 of Volume 1. Companion chapter: Generating functions |
The task
Find the generating function of the numbers of ways to choose out of objects, each object at most times.
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
Each object gets a number in of choices. Look at one object first.
Hint 2
The choices for different objects are independent, so multiply.
Solution
Show the solution
A choice is a list with and . Object contributes , and marks its number of copies. A product of such factors has the monomial once for each list, so
Expand the numerator with the binomial theorem and the denominator with (20):
where the sum runs over with . For the series is and . For the factor does not matter for the coefficient of , and .
Check
For , the coefficients of are . The sum above for is .
Remarks
For the coefficients are the trinomial coefficients. They satisfy because the polynomial is palindromic.
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_9.Ex16.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_9.Ex16.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.