If s is the sum to infinity of a G.P., whose first term is a, then the sum of the first n terms of the G.P. is
s1−1−asn
s1−asn
a1−1−asn
as1−1−asn
s=a1−r⇒1−r=as⇒r=1−asSn=a1−rn1−r=aa/s1−1−asn=s1−1−asn