TITLE: Why is generating function proof of Fibonacci formula correct?
QUESTION [16 upvotes]: The proof goes as follows:-
Let $F = 1 + x + 2x^2 + 3x^3 + 5x^4 + 8x^5 + ...$
Then
$$\begin{align} 1 + Fx + Fx^2 &= 1 + (x + x^2 + 2x^3 + 3x^4 + ...) + (x^2 + x^3 + 2x^4 + 3x^5) \\
 1 + Fx + Fx^2 &= 1 + x + (x^2+x^2 + 2x^3+x^3 + 3x^4+2x^4 + ...) \\ 
 1 + Fx + Fx^2 &= F \\
  \frac{1}{1-x-x^2} &= F  \end{align} $$
We rearrange the terms and we get this result which can be then manipulated further to find formula for nth Fibonacci term.
I want to focus on the rearrangement of terms in an infinite series. This is no different from results like $ 1 + 2 + 4 + 8 + ... = -1$.
The usual answer given is that we cannot treat an infinite summation like this like real numbers and apply normal addition and subtraction rules. We must apply sophisticated techniques like limits to evaluate these sums. So $ 1 + r + r^2 + r^3 + ... $ only makes sense when $|r| < 1$.
So going back to the Fibonacci proof above. We are applying normal addition rules for an infinite summation and also the result $\displaystyle  F = \frac{1}{1-x-x^2} $ doesn't make sense for any value of $x$. But we still use this result to complete the proof. Why does it work?
Isn't this the same as using the result $ 1 + 2 + 4 + 8 + ... = -1 $ to prove other results? It would be absurd to use it as basis for other proofs.
Please shed some light on this. I am really confused.

REPLY [17 votes]: One way to do this is to first prove that the series converges and then do these calculations, as Foobaz John outlines.  But in fact, all these manipulations are perfectly valid without even taking convergence into consideration if you frame them in the right way - that is, in terms of formal power series.  
A formal power series is just an arbitrary infinite sequence $(a_0, a_1, a_2, \ldots)$ of (let's say) real numbers.  But we "decorate" this sequence using the notation $(a_0, a_1, a_2, \ldots ) = \sum_{k=0}^\infty a_k x^k$.  Note that we are not using any notion of convergence here.  We just the notation $$\sum_{k=0}^\infty a_k x^k$$ to mean the sequence $(a_0, a_1, a_2, \ldots)$.  In this context infinite sums like $\sum_{k=0}^\infty k! x^k$ that are convergent nowhere except $x=0$ are perfectly fine, since it just refers to the sequence of numbers $(1,1,2,6,24, \ldots)$.
This would be perfectly useless unless we allowed to manipulate them in certain ways.  So we make the definitions
$$\sum_{k=0}^\infty a_k x^k + \sum_{k=0}^\infty b_k x^k := \sum_{k=0}^\infty (a_k + b_k) x^k$$
$$(\sum_{k=0}^\infty a_k x^k ) \cdot ( \sum_{k=0}^\infty b_k x^k) := \sum_{k=0}^\infty \sum_{i=0}^k a_ib_{k-i} x^k. $$ 
Now you can go through and prove that all the usual rules of algebra apply, so that $F(G+H) = FG + FH$, $(FG)H = F(GH)$ etc. for formal power series $F,G,H$.  This means that the set of formal power series forms a ring.  You can sometimes divide: it's possible to prove that $F = \sum_{k=0}^\infty a_k x^k$ has a multiplicative inverse $G$ so that $FG = 1$ if and only if  $a_0 \neq 0$.  (Here $1 := \sum_{k=0} b_k x^k$ where $b_0 = 1$, $b_k = 0$ for $k > 0$.)
In the ring of formal power series all of these computations are valid.