I am evaluating the sum $\sum\limits_{i=1}^{n}ip^i$.
in this answer the following identity is used :
$$\sum_{i=1}^n ip^i = \sum_{i=1}^n \sum_{j=i}^n p^j$$
I don't see where this comes from, maybe one could help me out ?
As a computer science student, it looks as if we were doing two loops, but I dont get it
Thanks for the help