Exercise · Volume 1 · 1.2.9-1
Exercise 1.2.9-1
proved in Lean solution written
| Rating | M12 |
|---|---|
| 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 closed rational form for the series .
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
Split the sequence into two geometric sequences and use the series for .
Hint 2
Add the two fractions over a common denominator.
Solution
Show the solution
The series of is , and the series of is . The generating function of a sum of two sequences is the sum of the two generating functions, so
The denominator expands as .
Check
Multiply by . The coefficient of is . The coefficient of is . For the coefficient of is with . For this is , and for it is . So the product is .
Remarks
Any sequence that satisfies a linear recurrence with constant coefficients has a rational generating function. Here the recurrence is , read off from the denominator. The same idea gives the Fibonacci series in Section 1.2.8.
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.Ex1.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_9.Ex1.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.