这是台湾清华赵启超教授离散数学14A14B课程的笔记。
应用:
Generating Functions for Solving Recurrence Relations
Example 1 Fibonacci numbers
Fn=Fn−1+Fn−2,n≥2 with F0=0,F1=1
Let the generating function for Fn be F(x)
n≥2∑Fnxn−n≥2∑Fn−1xn−n≥2∑Fn−2xn=0
(F(x)−F0−F1x)−x(F(x)−F0)−x2F(x)=0
F(x)(1−x−x2)=F0+(F1−F0)x=x
F(x)=1−x−x2x
(partial fraction expansion)
F(x)=1−λ1xα1+1−λ2xα2
where λ1=21+5 and λ2=21−5.
α1=51
α2=−51
Therefore Fn=51[(21+5)n−(21−5)n],n≥0