Lets define $a_0=a_1=1$ and every $k$ what is bigger than $1$ and is integer, $$a_k=a_{k-1}+2a_{k-2}.$$ Prove with induction, that every integer that is $k\geq0$ the equation
$$a_k=\dfrac{(2^{k+1}+(-1)^k)}{3}.$$
Lets define $a_0=a_1=1$ and every $k$ what is bigger than $1$ and is integer, $$a_k=a_{k-1}+2a_{k-2}.$$ Prove with induction, that every integer that is $k\geq0$ the equation
$$a_k=\dfrac{(2^{k+1}+(-1)^k)}{3}.$$
For $n=0$ the base case we have $a_0=\dfrac{(2^{0+1}+(-1)^0)}{3}=1$. Let us assume the result is true for $n=k$ i.e. $a_k=\dfrac{(2^{k+1}+(-1)^k)}{3}$. We shall prove for $n=k+1$. $a_{k+1}=a_k+2a_{k-1}=\dfrac{(2^{k+1}+(-1)^k+2\cdot(2^k+(-1)^{k-1}))}{3}=\dfrac{(2^{k+2}+(-1)^{k-1}(-1+2))}{3}=\dfrac{(2^{k+2}+(-1)^{k-1}(-1)^2)}{3}=\dfrac{(2^{k+2}+(-1)^{k+1})}{3}$.
Hence by principle of mathematical induction the result is true for all $n$.