The formula is given by:
$$
S = \frac{a(1 - r^n)}{1 - r}
$$
where:
- $S$ is the sum of the first $n$ terms of the geometric sequence,
- $a$ is the first term of the sequence,
- $r$ is the common ratio of the sequence, and
- $n$ is the number of terms.
Show more…