Exercise · Volume 1 · 1.2.9-22
Exercise 1.2.9-22
stated in Lean solution written
| Rating | M21 |
|---|---|
| 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 a generating function with , over all .
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
The right side is a coefficient of a product with one factor for each power .
Hint 2
Use the binomial series (19) in each factor, then the identity .
Solution
Show the solution
For each the series marks the number with the exponent . The coefficient of in is the sum of over all . This is the sum in the exercise, and only with matter, so the product is a well defined formal series.
Now , by induction on using . So as formal series, which says that every integer has exactly one binary representation. Raising to the power gives
This holds for every complex number , with .
Check
For and the solutions of are , , and . The terms are , , and . The sum is , which is . Python checks for .
Remarks
For the coefficient is , the binary representation. For the sum counts the binary partitions of with two colors of every power of , which is .
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
stated The statement is in Lean and it builds. The proof is not in Lean yet.
- Problem:
TAOCP.S1_2_9.Ex22.statementaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.