Here, a = 3 and r = 323=2×33=21.
Let n terms are needed for the sum.
Sn=r−1a(rn−1)⇒5123069=21−13[(21)n−1]⇒5123069=21−23[(21)n−1]⇒5123069=−6[(21)n−1]⇒512×63069=1−(21)n⇒(21)n=1−30723069⇒(21)n=30723072−3069⇒(21)n=30723⇒(21)n=10241⇒(21)n=(21)10∴n=10.
Hence, 10 terms of the G.P. are required for the sum of 5123069.