If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$
What is $T(n)$ (in $Θ$–notation) in terms of $n$?
I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here?
$T(n)= T(n-1) + 2T(n-2)$
$T(n-1)= T(n-2) + 2T(n-3)$
$T(n-2)= T(n-3) + 2T(n-4)$
$T(n)= T(n-k) + 2T(n-(k+1))$
Substitute $n$ for $k$
$T(n)= T(n-n) + 2T(n-(n+1))$
$T(n)= T(0) + 2T(1)$
I am not sure where to go from here to find $T(n)$ (in $Θ$–notation) in terms of $n$.