I was trying to find the value of : $$1+11+111+\cdots+111\cdots11$$ using generating functions instead of using GP. I know that it's going to be same at the end, but still, just for the sake of it, I was trying.
The recurrence I'm using is $a_{n+1}=10a_n+1;~ n\geq 0$ with $a_0=1$.
For the generating series to be— $$A(x)=a_0+a_1x+a_2x^2+\cdots$$, we have, after calculation, $A(x)=\frac{1}{10x^2-11x+1}=\frac{1}{9}\left(\frac{1}{\frac{1}{10}-x}-\frac{1}{1-x}\right)$. (I hope this is correct)
Now, I expanded it using Taylor Series but then, I think something has gone wrong or I did something wrong in the later steps.
You have
$$\sum_{n\geq 0}a_{n}x^{n}\equiv A\left(x\right)=\frac{1}{10x^{2}-11x+1}=\frac{1}{9}\left(\frac{10}{1-10x}-\frac{1}{1-x}\right)=\\=\frac{1}{9}\sum_{n\geq 0}\Big[10\left(10x\right)^{n}-x^{n}\Big]=\sum_{n\geq0}\frac{10^{n+1}-1}{9}x^{n}$$
so
$$a_{n}=\frac{10^{n+1}-1}{9}$$
which is correct.