Finding the Sum of Terms in a Geometric Progression