Find sum of first n terms of geometric series (#431)

Find sum of first n terms of geometric series (#431)

Use Sn=a(1−rn)1−rS_n = \dfrac{a(1-r^n)}{1-r} for r≠1r \neq 1.