Consider a finite geometric series with n+1n+1 terms a+ar+ar^2+\cdots+ar^na+ar+ar2+⋯+arn. Call this sum S_{n}Sn. Note that rS_{n}=ar+ar^2+ar^3+\cdots+ar^{n+1}rSn=ar+ar2+ar3+⋯+arn+1 so that rS_{n}-S_{n}=ar^{n+1}-arSn−Sn=arn+1−a.
Solving this equation for S_{n}Sn gives S_{n}=\frac{a(r^{n+1}-1)}{r-1}Sn=a(rn+1−1)r−1 when r!=1r≠1. The number aa is often referred to as the "first term" and the number rr is often referred to as the "common ratio". The number nn is the highest power of rr in the sum and the sum itself has n+1n+1 terms.
If r=1r=1, then S_{n}=a+a+a+\cdots+a=(n+1)aSn=a+a+a+⋯+a=(n+1)a.