For $n\in\mathbb{N}$ the funktion is defined as $f(n)=\sum_{k=0}^{n}2^k$
I have to use induction to show that $f(n)=2^{n+1}-1$
I have made the first step and shown that $f(n_0)$ is true for $n_0\in\mathbb{N}$ since both sides equals 1.
But I can't figure out how to show that it is true for $f(n+1)$.
Assume $f(n) = 2^{n+1} - 1$ is true for some $n \in \mathbb{N}$. If $f(n+1) = 2^{n+2} - 1$ holds, then we are done. Notice
$$ \sum_{k=0}^{n+1} 2^k = f(n) + 2^{n+1} = 2^{n+1} -1 + 2^{n+1} = 2^{n+2} -1 $$