Hi I have the following recurrence relation:
$$T(n) = \begin{cases} 1, & \text{if $n=2$} \\ 2T\left({n \over 2}\right) + 4, & \text{if $n > 2$} \\ \end{cases}$$
Where $n$ can be assumed to be, $n = 2^c$ for some $c \ge 1$.
Which I solved using back substitution to find that: $$\sum_{i=2}^n{2^i} = {n\over 2} + 2(n-2)$$
I am now tasked with proving by induction. I solve the base case fine, and get my Induction hypothesis to state that for some $k$, $$T(k) = {k \over 2} + 2(k-2)$$
Now I get I have to show that for the Induction Step, $$T(k+1) = {k+1 \over 2} + 2(k-1)$$
This is where I get lost. I use the recurrence relation to show: $$T(k+1) = 2T\left({k+1 \over 2}\right) + 4 $$ and I get stuck from there, any hints would be appreciated.