I am struggling a bit with power series. I found the following question through my reading to a basic book of probability in French, and I don't quite understand what this question is asking me to do?
Let $\rho \in (0,1)$. By differentiating the power series coefficient $$a_n := 1, n \geq 0,$$ calculate , for all $k \in \{1,2 \},$ $$(1- \rho) \sum_{n=1}^{\infty}n^k \rho^{n-1}$$
I know that in general, $$1 + n + n^2 + \cdots = \frac{1}{1 - n}, \quad |n| < 1.$$ and for sure, since power series could be differentiated term by term, we have $$1 + 2n + 3n^2 + \cdots = \frac{1}{(1 - n)^2}, \quad |n| < 1.$$
I think it's a pretty basic question but I don't know what to do! Thanks for help
Consider a generating function $$ \sum_{k=0}^\infty \frac{t^k}{k!}\sum_{n=1}^\infty n^kρ^{n-1}=\sum_{n=1}^\infty e^{nt}ρ^{n-1}=\frac{e^t}{1-ρe^t} $$ To get the first series values, truncate the power series appropriately, $$ \frac{1-ρ}{e^{-t}-ρ}+O(t^3)=\frac{1}{1-\frac{t}{1-ρ}+\frac{t^2}{2(1-ρ)}+O(t^3)} =\frac{1+\frac{t}{1-ρ}}{1-\frac{t^2}{(1-ρ)^2}+\frac{t^2}{2(1-ρ)}+O(t^3)} \\ =\left(1+\frac{t}{1-ρ}\right)\left(1+\frac{t^2}{(1-ρ)^2}-\frac{t^2}{2(1-ρ)}\right)+O(t^3) $$ so that, as is known, $$ (1-ρ)\sum_{n=1}^\infty nρ^{n-1}=\frac1{1-ρ} $$ and the next one is $$ (1-ρ)\sum_{n=1}^\infty n^2ρ^{n-1}=\frac2{(1-ρ)^2}-\frac1{1-ρ}=\frac{1+ρ}{(1-ρ)^2} $$
This approach works best in a computer algebra system where you could obtain arbitrarily large powers by (setting $ρ=1-a$)