How to calculate $\sum_{i=0}^{i=x}c^{x-i}$, where $c,x$ are constant?
My real world example is suppose we want to calculate the total retirement savings over time where $x$ denotes years between now and retirement, $x-i$ denotes years until retirement, $r$ denotes the rate of return, and $M$ is your annual contribution. If we wanted to know how much savings we have at the end, then we would do the following:
$M(1+r)^x+M(1+r)^{x-1}+M(1+r)^{x-2} + \dots + M(1+r) + M= M\sum_{i=0}^{i=x}(1+r)^{x-i}$
How do I solve this?
Hint: $\sum c^{x-i}=c^x\sum c^{-i}$. This series is geometric. Can you take it from here?