Let the G.P. be a,ar,ar2,ar3,...
According to the given condition, a+ar+ar2=16
and ar3+ar4+ar5=128
⇒a(1+r+r2)=16....(1)
& ar3(1+r+r2)=128...(2)
Dividing equation (2) by (1) , we obtain
ar3(1+r+r2)a(1+r+r2)=12816⇒r3=8∴r=2
Substituting r=2 in (1)
,
we obtain a(1+2+4)=16⇒a(7)=16∴a=167
And sum of first n terms of this G.P. Is given by,
Sn=a(rn−1)r−1=16/7(2n−1)2−1=167(2n−1)