What is the sum of the geometric series

The sum of a geometric series can be calculated using the formula:

Sum = a * (1 - r^n) / (1 - r)

Where:
a = the first term of the geometric series
r = the common ratio between the terms
n = the number of terms in the series

If we have a geometric series with a first term of 2, a common ratio of 3, and 4 terms, the sum would be:

Sum = 2 * (1 - 3^4) / (1 - 3)
Sum = 2 * (1 - 81) / -2
Sum = 2 * (-80) / -2
Sum = -160

Therefore, the sum of the geometric series is -160.