I was trying to find the value of x in the following equation.
$$x=\sum _{ i=0 }^{ \infty } \left( i+1 \right) \cdot \left( \frac { 5 }{ 6 } \right) ^{ i }$$
In a computer simulation, I found that $x=6^2$
I believe the following is also true, I just do not know how to prove it. $$p^2=\sum_{i=0}^{ \infty } (i+1)\dot\ (\frac{p-1}{p})^i$$
Could anyone tell me what theory I should look into to for this problem?