We will define, create and interpret generating functions.

1 Generating Functions

An infinite sequence, , can be associated with an infinite series This infinite series is called the generating function of the sequence. A finite sequence can be associated with a polynomial similarly.

Before presenting examples of generating functions, it is important for us to recall two specific examples of power series. The first is the geometric power series and the second is the Maclaurin series for the exponential function In the context of generating functions, we focus on the relationship between the series and its sequence of coefficients rather than on the interval of convergence.

(problem 1) Find the compact form of the generating function for each sequence:
a)


b)


c)


(problem 2) Find the compact form of the generating function for each sequence:
a)


b)


c)


d)


The next example investigates the relationship between generating functions and solutions to combinatorial problems.

(problem 3a) Based on the example above guess the generating function corresponding to counting the number of heads in 3 coin flips. Express your guess both as a power of as a proper generating function with numerical coefficients. Verify that your guess is correct.
(problem 3b) Generalize your answer to the last problem by creating the generating function corresponding to the number of heads in coin flips. Express your answer as a power of and verify your answer using the Binomial Theorem.
(problem 4) Consider a six-sided die whose faces are numbered 1 through 6. Roll the die 3 times and consider the sum. What are the minimum and maximum possible values of the sum? Create a generating function whose coefficients encode the number of ways of rolling a sum of . Express your answer as a power of from the example above. Find the coefficient of . Verify that this coefficient is indeed the number of ways of obtaining a sum of by enumerating the possibilities.
(problem 5a) Use the geometric series approach to find a compact expression for the generating function whose coefficients count the number of non-negative integer solutions to the equation:

For each value of , this is the number of ways to put identical objects into bins.

(problem 5b) Use a geometric series approach to find a compact form for the generating function whose coefficients give the number of non-negative integer solutions to the equation (in variables): For each value of , the number of solutions is the number of ways to put identical objects into bins.
(problem 6) Consider the number of non-negative integer solutions of the equation if the variables are subject to the following conditions:


2025-04-05 17:18:44