Let
Sn be the sum of first n terms of a G.P. and r be common ratio
Formula for sum of n terms of G.P. is given by
Sn=a(rn−1)r−1
Then, S1=a(r1−1)r−1
S3=a(r3−1)r−1
S5=a(r5−1)r−1
.
.
.
.
.
S2n−1=a(r2n−1−1)r−1
Adding all terms, we get
S=ar−1[(r+r3+.....+r2n−1)+(−1)(n)]
Now, r,r3,r5,....,r2n−1 represents G.P. with common ration r2 and first term r
∴S=ar−1[r(r2n−1)r2−1−n]