I'm struggling with the following:
Suppose that we have a formal power series $\sum_{n \geq 0} a_nx^n$ which is equal to the fraction $\frac{2-6x+x^2}{1-3x}.$ I want to find an explicit formula for $a_n.$
Here is what I have done so far: I realise that $(1-x)^{-n} = \sum_{k \geq 0} {n + k - 1 \choose k}x^k,$ so I can say that $\frac{2-6x+x^2}{1-3x} = (2-6x+x^2)(1-3x)^{-1} = (2-6x+x^2)\sum_{k \geq 0} {k \choose k} x^k.$
From here we obtain
$ \sum_{k \geq 0} 2x^{k} - \sum_{k \geq 0} 6x^{k+1} + \sum_{k \geq 0} x^{k+2}.$
Here I have no clue how to continue or if I'm even on the right track. Hints and or solutions are very welcome