I was working on a mathematical stats problem and I don't get this part (that comes from a recursive arithmetico-geometric series):
$$U_{k} = \alpha C^{2} + \alpha^{2} C^{2} + \alpha^{3} C^{2} + ... +\alpha^{k-1} C^{2}+ \alpha ^{k} U_{0}$$
$$= \alpha C^{2} \left [ 1 + \alpha +\alpha ^{2}+ ... + \alpha ^{k-2} \right ] + \alpha ^{k}U_{0}$$
$$= \alpha C^{2} (\frac{\alpha ^{k-1}-1}{\alpha - 1}) + \alpha ^{k}U_{0}$$
My particular issue is how to go from the second line to the last one. I guess there is a closed form expression of that sum but I couldn't find it anywhere in that exact form.
Thanks.