User: What is the mathematical formula for calculating the sum of a geometric series?
Assistant: The mathematical formula for calculating the sum of a geometric series is: S = a(1-r^n)/(1-r), where a is the first term of the series, r is the common ratio, and n is the number of terms in the series.