I came across a recursion homework problem for a graduate algorithms class while looking at recursive algorithms.
We are given a recursive formula for a recursive algorithm that gives the total number of moves at the $n^{\text{th}}$ recursion based on the $(n-1)^{\text{st}}$ recursion: $$ a_n = 2a_{n-1} + 1, $$ where $a_1 = 1$ and $a_2 = 3$.
How do we show that the final explicit formula is $a_n = 2^n - 1$?
You could show $a_n=2^n-1$ by mathematical induction. Base case: $a_1=1=2^1-1.$
Now assume $a_n=2^n-1.$ Then $a_{n+1}=2a_n+1=2(2^n-1)+1=2^{n+1}-2+1=2^{n+1}-1$.
QED