I've a discrete math exam coming up in two weeks and the only thing I've problem with is induction and recursion. I do know how to check the base case of a certain induction i.e. check and compare if left side and right side are equal, but induction assumption step is awfully complex. Could someone explain every step of a such problem? $$\large{\sum_{i=1}^n 2^{i-1}=2^n-1}$$
Thanks in advance!
The base case: Show that the statement holds for $n = 1$.
We need to check that $\sum_{i=1}^1 2^{i-1} = 2^{1-1} = 1$ equals to $2^1 - 1 = 1$ which is true.
Inductive step: Show that if the statement holds for $n$, then it also holds for $n+1$.
So assume that the statement holds for $n$, that is $\sum_{i=1}^n 2^{i-1} = 2^{n} - 1$. Consider the left-hand side of the statement for $n+1$: $$\sum_{i=1}^{n+1} 2^{i-1} = 2^{(n+1)-1} + \sum_{i=1}^n 2^{i-1} = \{\text{using the statement for $n$}\} = 2^n + (2^n - 1)=$$ $$= 2\cdot 2^n - 1 = 2^{n+1}-1.$$
There is really nothing complicated going on, you just need to reduce the statement for $n+1$ to the statement for $n$ plus some extra stuff. In particalar, here we are extracting one of the summands to reduce the number of summands in the sum in order to use the assumption for $n$, which is a common trick in that kind of problems.
Hope this helps. If something is not clear, feel free to ask any questions.