In the given G.P., we have t1 = 2, t2 = 6 and t3 = 18.
Thus, we have the first term, i.e., a = t1 = 2, and the common ratio, i.e., .
We know that the sum of the first nth term of the G.P. is for r > 1.
To find S7, we will take a = 2, r = 3 and n = 7.
Thus, we have: