15-1 Manne
15-1 Manne
Problem: A fish population starts out at 50 fish and grows 4-fold each
year with 100 fish dying each year
Mathematical Formalism
Population at time t is pt
Recurrence: pt = 4 · pt−1 − 100
Base case: p0 = 50
Iterative Calculations
p0 = 50
p1 = 100
p2 = 300
p3 = 1100
p4 = 4300
Generating Function
Let {fn }n≥0 be a sequence of real numbers. Then the formal power series
X
F (x) = fn x n
n≥0
Example Cont.
1
= 1 + x + x2 + . . . .
1−x
When |x| > 1, plugging in x does not yield meaningful equalites. Consider
x = 2:
1 1
= − 6= 1 + 2 + 4 + 8 + . . . = ∞.
1−2 2
Left hand side: G (x) − p0 , since it’s missing the first term of the
sequence {pn }n≥0
Right hand side term 1: 4x · G (x)
Right hand side term 2: − 100x
1−x , since
1
1−x = 1 + x + x2 + . . .
Recurrence in terms of G (x):
100x
G (x) − p0 = 4x · G (x) −
1−x
p0 X X
= 50 (4x)n = 50 4n x n
1 − 4x
n≥0 n≥0
100x A B
= + .
(1 − x)(1 − 4x) 1−x 1 − 4x
100 −100
With A = 3 and B = 3 ,
Recall
p0 100x
G (x) = − .
1 − 4x (1 − x)(1 − 4x)
First term’s contribution:
50 · 4n .
Second term’s contribution:
100 n
(4 − 1).
3
Combining contributions, closed-form formula for pn is:
4n − 1
pn = 50 · 4n − 100 · .
3
This series grows too fast for an ordinary generating function. Therefore
an exponential generating function is used.
Aneesha Manne, Lara Zeng Generating Functions 15 / 20
Solving recurrence with exponential generating functions
∞ ∞ ∞
X x n+1 X x n+1 X x n+1
an+1 = an − (n − 1) .
(n + 1)! n! n!
n=0 n=0 n=0
LHS = A(x) − 1
RHS first term: xA(x)
RHS second term: −x 2 e x + xe x = (x − x 2 )e x
Plugging in above:
A(x) − 1 = xA(x) − x 2 e x + xe x .
Rearranging yields,
1
A(x) = + xe x .
1−x
xn
Thus coefficient an for n! is an = n! + n.