Midterm problem 2 - Geometric Sequence