This is a problem from a book with no solution.
Show that: $$\sum_{i=0}^{n-1} 2^i = 2^n - 1$$
without using the formula for geometric series.
My lengthy solution is as follows:
Try with $n = 1, 2, 3$ and prove that it works. Which it does.
$$\sum_{i=0}^{n-1} 2^i = 2^n - 1$$ for $n = {1,2,3}$
Assume that it works for $n = p$.
$$\sum_{i=0}^{p-1} 2^i = 2^p - 1$$
Show that it works for $n = p + 1$
$$\begin{align*} LHS_{p+1} =& \sum_{i=0}^p 2^i\\ =& \sum_{i=0}^{p-1} 2^i + 2^p\\ =& LHS_p + 2^p\\ =& RHS_p + 2^p\\ =& 2^p - 1 + 2^p\\ =& 2(2^p) - 1\\ =& 2^{p+1} - 1\\ =& RHS_{p+1} \end{align*}$$
And they match so they must be the same. Did I do this right? :)