So I am studying series for an exam right now and there is an example in the book I am studying (unfortunately the book is specific to my university so I cannot give any link) where certain series' sums are calculated. At some point the following ones are calculated:
$$\sum_{n=1}^{\infty}\left(\dfrac{1}{5}\right)^{n-1}=\frac54$$
and $$\sum_{n=1}^{\infty} n\left(\dfrac{1}{5}\right)^{n-1}=\frac{25}{16}$$
I do not understand the reason that extra $n$ (the multiplier in the front) squares everything. Also I have no clue what to do when I have say
$$\sum_{n=1}^{\infty}n^2\left(\dfrac{1}{5}\right)^{n-1}$$
Do I cube everything? Is there a specific way to do it that I do not get? If there is some online paper, book chapter or whatever that could help me, please link me to it!