MATH3U03_Lecture21fix
MATH3U03_Lecture21fix
Example 1. Find the number of (ordered) ten letter words from the alphabet {a, b, c, d}
that satisfying the same four properties.
Solution. With the order in mind, one might think we just multiply 24 by 10!. However, we
have some problems. The as are indistinguishable, so we need to divide by the ways to order
the as, and the bs... etc. Luckily, this isn’t actually that big of a problem! The coefficients
of our generating function just change slightly. Instead we need:
The only problem is, what are the generating functions for these expressions? △
1
Alexandre Zotine MATH3U03 Course Notes
Computing Formulas/Identities
Example 3. Recall that the generating function for the Fibonacci numbers fn (starting
f0 = 0, f1 = 1) is
x
f (x) = .
1 − x − x2
Using this generating series, we can find an explicit formula for the n-th Fibonacci
√ number.
2 −1
The denominator factors as 1 − x − x = (1 − φx)(1 + φ x), where φ = (1 + 5)/2 is the
Golden ratio. Hence we have a partial fraction decomposition
A B
f= −1
+ .
(1 + φ x) (1 − φx)
We first see that A + B = 0, so A = −B. Then we can plug in x = −φ to get that
B(1 + φ2 ) = −φ. Solving yields A = √15 = −B. So we have
1 1 1
f (x) = √ −
5 (1 − φx) (1 + φ−1 x)
1 X n
=√ (φ − (−φ)−n )xn .
5 n≥0
2
Alexandre Zotine MATH3U03 Course Notes
We can also produce a generating function for the Catalan numbers. To do so, we need
to generalize binomial coefficients.
xk
x
=
k k!
x
is a polynomial of degree k in Z[x]. If k < 0, we set k
= 0.
which of course makes perfect sense, because obviously when you want to pick 4 objects out
of i options, there are −5/12 ways to do that.