Generating Functions
Applied Combinatorics (CC BY-SA) · appliedcombinatorics.org
Hang a whole sequence on the powers of x: a0 + a1x + a2x² + … . Now combinatorial operations become algebra. Multiplying two generating functions convolves their sequences, which is exactly "choose some from here and some from there."
Why multiplication is the whole trick
The coefficient of xn in A(x)B(x) sums ajbn−j over all splits j. That is precisely the count of ways to take j objects of one type and n−j of another. Raising (1+x) to the n-th power therefore reproduces Pascal's row, because each factor offers "take this element or not."
Scheme
Neighbors
- 🧮 Ch.6 Recurrence Relations — generating functions solve recurrences in closed form
- 📡 Information Theory — generating functions count codewords by weight