Prove by induction on $n$ that $ 2^n−1 $ solves the recurrence
$H_n =\begin{cases}0, &\text{if $n=0$}\\[6px] 2H_{n-1}+1,&\text{otherwise}\end{cases}$
I know the base case would be when $n = 0$, $H_n = 0$, but how would you do the inductive case and the rest of the proof?
For $n=0$, $2^n-1=2^0-1=0$.
Suppose $n>0$ and $H_{n-1}=2^{n-1}-1$. Then $$ H_n=2H_{n-1}+1=\cdots $$