I'm reading generatingfunctionology, and the author came up with this generating function:
$$ A(x) = \frac{x}{(1-x)(1-2x)} = x\{\frac{2}{1-2x} - \frac{1}{1-x}\} $$
Then he expands it. Which I thought was supposed to be:
$$ \sum_{n \ge 0} (x\{\frac{2}{1-2x} - \frac{1}{1-x}\})^n $$
But judging from the result:
$$ \{2x + 2^2x^2 + 2^3x^3 + ...\} - \{x + x^2 + x^3 + ...\} $$
He seems to be doing:
$$ \sum_{n \ge 0} (x\frac{2}{1-2x})^n - \sum_{n \ge 0} (x\frac{1}{1-x})^n $$ Which means I completely misunderstand the idea behind this process. So why is this the expansion?