

Let a is the first term and r is the common ratio of the GP.
Given Sn = P
=> P = a(rn - 1)/(r - 1) .............1
and S2n = 3P
=> 3P = a(r2n - 1)/(r - 1) .........2
From equation 1 and 2, we get
3P/P = {a(r2n - 1)/(r - 1)}/{a(rn - 1)/(r - 1)}
=> 3 = (r2n - 1)/(rn - 1)
=> 3(rn - 1) = (r2n - 1)
=> 3rn - 3 = (r2n - 1)
=> r2n - 1 - 3rn + 3 = 0
=> r2n - 3rn + 2 = 0
=> (rn - 2)*(rn - 1) = 0
=> rn = 2, 1
Put rn = 2 in equation 1, we get
P = a(2 - 1)/(r - 1)
=> P = a/(r - 1) .............3
Now, S3n = a(r3n - 1)/(r - 1)
=> S3n = a(23 - 1)/(r - 1)
=> S3n = a(8 - 1)/(r - 1)
=> S3n = 7a/(r - 1)
=> S3n = 7P {from equation 3}
So, the sum of 1st 3n terms of GP is 7P
