Discrete Mathematics (H) Lecture 15 Notes
Generating Functions
We may use generating functions to characterize sequences.
Definition: Generating Function
The generating function for the sequence
A finite sequence
Example
, for , for , for (for a fixed ),
Solution 1.
Solution 3.
Operations of Generating Functions
Theorem
Let
This theorem can be used to find sequences for complex generating
functions from its components. For example, consider the generating
function
Counting with Generating Functions
Convolution Rule
Let
Maclaurin’s Theorem
Extended Binomial Theorem
Example
Find the number of ways to select
Solutions. For each color, the generating function
representing the number of balls chosen is
Extended Binomial Theorem:
Compute the derivatives of
Evaluating at
Thus, the coefficient of
Problem
Find the number of solutions of
Solution. This is equivalent of finding the coefficient of
- From
- From
- From
- From
: no contribution.
Summing these gives
Problem
In how many ways can 8 identical cookies be distributed among 3 distinct children if each child receives at least two cookies and no more than 4 cookies?
Solution. This is equivalent of finding the number of
solutions of the equation
Useful Generating Functions
-Combinations From a Set
Definition:
A
Example
Find the number of nonnegative solutions to
Solution. This is equivalent to finding the number of
multisets of size
Problem
Use generating functions to find the number of
Solution. Each of the
- Title: Discrete Mathematics (H) Lecture 15 Notes
- Author: Zhige Chen
- Created at : 2025-12-06 12:57:56
- Updated at : 2025-12-15 13:09:52
- Link: https://nofe1248.github.io/2025/12/06/discrete-math-lec-15/
- License: This work is licensed under CC BY-NC-SA 4.0.