For a given recurrence relation the generating function is A(x)=$\frac{x}{(1-x)(1-2x)}$.
Then the book says that if we want to find an explicit formula for the $a_n$'s we would have to expand A(x) in a series. The partial fraction of A(x) is $$ x \{\frac{2}{1-2x}-\frac{1}{1-x}\}$$ and this is clear to me. But how did the author expand this $$ x \{\frac{2}{1-2x}-\frac{1}{1-x}\} = \{2x+2^2x^2+2^3x^3+...\}-\{x+x^2+x^3+..\} $$
Hope my question is clear. Thanks in advance for your help.
Hint: $$\frac{x}{(1-x)(1-2x)}=\frac{1}{1-2x}-\frac{1}{1-x}$$