We will define, create and interpret generating functions.

1 Generating Functions

An infinite sequence can be associated with an infinite series A finite sequence can associated with a polynomial in a similar manner. This infinite series (or polynomial) is called the generating function of the sequence.

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 are not interested in the interval of convergence of these series, but just the relationship between the series and the corresponding sequence of coefficients.

(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 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) Find a compact form for the generating function whose coefficients give the number of non-negative integer solutions to the following equation in variables:
(problem 5b) Find a compact form for the generating function whose coefficients give the number of non-negative integer solutions to the following equation in variables:
(problem 6) Consider the number of non-negative integer solutions of the equation if the variables are subject to the following conditions:


2024-09-27 14:04:54