The sum of first n terms of a G.P. whose first term is a and common ratio is r is
ar
a (rn - 1) / (1-r)
a (1-rn) / (1-r)
a (rn - 1) / (1+r)
sum of first n terms of a G.P. whose first term is a and common ratio is r is [a(1−rn)/(1−r)]