First,
we need to solve for the common ratio from the data given by using the
equation.
a(n) = a(1) r^(n-1)
1417176 = 24 r^(6-1)
59049= r^5
r = 9
We can find the sum by the expression:
S(n) = a(1) ( 1 - r^n) / 1-r
where a(1) is the first term, r is the ratio and n is the number of terms.
S(9) = 24 (1 - 9^6) / 1-9
S(9) = 1594320