The partial sums of the geometric series are
\begin{equation*}
\begin{aligned} s_{1}\amp= a_{1} = a\\ s_{2}\amp= a_{1} + a_{2} =a + ar \\ s_{3}\amp= a_{1} + a_{2} + a_{3} =a + ar+ar^{2} \end{aligned}
\end{equation*}
and the \(k\)th partial sum is
\begin{equation*}
s_{k} = a_{1} + a_{2} + \cdots + a_{k} = c +cr + \cdots + cr^{k-1}
\end{equation*}
If we multiply \(s_{k}\) by \(r\) we get:
\begin{equation*}
\begin{aligned} rs_{k}\amp= r(a + ar + ar^{2} + \cdots ar^{k-1}) \\\amp=ar + ar^{2} + ar^{3} + \cdots ar^{k} \end{aligned}
\end{equation*}
and subtracting \(rs_{k}\) from \(s_{k}\) we get:
\begin{equation*}
\begin{aligned} s_{k} - rs_{k}\amp= \bigr(a + ar + ar^{2} + \cdots ar^{k-1}\bigr) - \bigl(ar + ar^{2} + ar^{3} + \cdots ar^{k}\bigr) \\\amp= a- ar^{k}.
\end{aligned}
\end{equation*}
Next, we solve for \(s_{k}\text{:}\)
\begin{equation*}
\begin{aligned} s_{k} - rs_{k}\amp= c-cr^{k}\\ s_{k}(1-r)\amp= c-cr^{k}\\ s_{k}\amp= \frac{c-cr^{k}}{1-r} \end{aligned}
\end{equation*}
Assume that \(|r| < 1\text{,}\) then taking the limit,
\begin{equation*}
\begin{aligned} s\amp= \lim_{n \rightarrow \infty}s_{n} = \lim_{n \rightarrow \infty}\frac{c-cr^{n}}{1-r}\\\amp= \frac{c}{1-r}\lim_{n \rightarrow \infty}(1 - r^{n}) \\\amp= \frac{c}{1-r} \end{aligned}
\end{equation*}
If \(|r| \gt 1\text{,}\) then
\begin{equation*}
\lim_{n \rightarrow \infty}r^{n}
\end{equation*}
does not exist, so this diverges. Lastly, we look at \(r=1\) and \(r=-1\text{.}\) In each case, we return to the series. If \(r=1\text{,}\)
\begin{equation*}
\sum_{n=0}^{\infty}a r^{n} = a+a+a+a+ \cdots
\end{equation*}
and this diverges. If \(r=-1\text{,}\) then
\begin{equation*}
\sum_{n=0}^{\infty}a r^{n} = a-a+a-a+a-a
\end{equation*}
which also diverges, so the theorem holds.