2. The sum of an infinite geometric series is $\frac{a}{1 - r}$, where a is the first term and r is the common ratio. The sum of the first n terms is $\frac{a(1 - r^n)}{1 - r}$.