In order to determine the sum of the geometric series, proceed as follow:
Use the following expression for an:

where,
a1 = 2
r = 3
an = 486
Replace the previous values into the expression for an, solve for n and simplify:

Then, it is necessary that n = 6, because n - 1 = 6 - 1 = 5 and the previous equation is consistent.
Now, consider that the sum of the geometric series is given by:

Replace the values of the parameters and simplify:

Hence, the result is 728