結果 : finding the sum of the first n terms in a geometric sequence