But, just to get across the idea of a generating function, here is how a generatingfunctionologist might answer the question: the nth Fibonacci number, $F_{n}$, is the coefficient of $x^{n}$ in the expansion of the function $\frac{x}{(1 − x − x^2)}$ as a power series about the origin.
I am reading a book about generating function, however, I got a little rusted about power series. could anyone give me a quick review about what the statement above is saying?
namely,
$F_{n}$, is the coefficient of $x_{n}$ in the expansion of the function $\frac{x}{(1 − x − x^2)}$ as a power series about the origin
If you consider the power series $$f(x) = F_0 + F_1 x + F_2 x^2 + \cdots$$ then the relation $F_{n+2} = F_n + F_{n+1}$ implies $$x^2 f(x) + x f(x) - F_0 x = f(x) - F_0 - F_1 x.$$ (Write out each term as a power series, and combine terms.) Rearranging and plugging in $F_0=0$ and $F_1=1$ gives $$(1-x-x^2) f(x) = x.$$
More detail:
\begin{align} x^2 f(x) + x f(x) &= (F_0 x^2 + F_1 x^3 + F_2 x^4 + \cdots) + (F_0 x + F_1 x^2 + F_2 x^3 + \cdots) \\ &=F_0 x + (F_0+F_1)x^2 + (F_1+F_2)x^3 + (F_2+F_3)x^4+\cdots\\ &= F_0 x + F_2 x^2 + F_3 x^3 + F_4 x^4 + \cdots \\ &= F_0 x - F_0 - F_1 x + (F_0 + F_1x + F_2x^2 + F_3 x^3 + \cdots) \\ &= F_0 x - F_0 - F_1 x + f(x). \end{align}