Generating Functions
Why generating function?
For some counting problems, especially the ones that ask you to find
out the number of ways to pick some items with a certain total number,
it is hard to directly count the number of plans in total as the answer
might be very large, while it's also hard to directly apply
multiplication or addition rule as the problem might be complex.
To solve these questions, we can use a technique that I'm going to
introduce in this article, instead of counting by hand. You only need to
design a function called "generating function", and apply some algebra
skills that you have learned in high school to dissolve it into a
polynomial. Then, the coefficient of each
Ordinary Generating Functions
Definition: [Generating Function]
For a sequence
Example 1 [1]
Example 2 [1]
Example 3 [1]
Exponential Generating Functions (EGF)
Definition: [Exponential Generating Function]
For a sequence
Example 1 [1]
Example 2 [1]
Example 3 [1]
Now, we have known the definition of EGF, but why we need to invent
such a special kind of generating function?
Well, the main reason is the coefficient of a single generating function
might be too big to converge, or hard to calculate. For example, if you
need to choose
Also, the "identity function" of EGF is
Solve Nonhomogeneous Recurrence Relations (By GF)
Consider
To Be Continued: Dirichlet series generating function (DGF)
Reference
- [1] [Lecture Notes written by Professor Balázs Boros]
- [2] [Richard A. Brualdi - Introductory Combinatorics (5th Edition)]
- Title: Generating Functions
- Author: Harry Huang (aka Wenyuan Huang, 黄问远)
- Created at : 2024-11-19 15:36:00
- Updated at : 2024-11-27 18:09:47
- Link: https://whuang369.com/blog/2024/11/19/Math/Combinatorics/Generating_Functions/
- License: This work is licensed under CC BY-NC-SA 4.0.