I've got this recursive equation:
$$ T(n) = \begin{cases} 2, & \text{if $n = 2$} \\ 2T(n/2) + n, & \text{if $n = 2^k$ where k > 1, $k \in \mathbb{N} $} \\ \end{cases} $$
I know I should use mathematical induction. For $n = 2$, prove is obvious. But for $2n$, it's more difficult: $$ T(2n) = 2T(n) + n $$
So how to solve that?
Satisfy yourself with the first few values that:
\begin{align} T(2^k)&=2T(2^{k-1})+2^k\\ &=4T(2^{k-2})+2^k+2^k\\ &=8T(2^{k-3})+3\cdot2^k\\ &\vdots\\ &=2^{k-1}T(2^1)+(k-1)\cdot2^k\\ &=2^k+(k-1)\cdot 2^k\\ &=k\cdot2^k \end{align}
So if we say $2^k=n$ then $T(n)=\log_2(n)\cdot n$