Im Trying to find/learn how to get the general formula for the n'th term. Im new to algebra and recurrences
$$a_k = \left\{ \begin{array}{lr} 4a_{k-1} - 2a_{k-2} &: if \space k \geq 2 \\ 2 & :if\space k =1 \\ 1 & :if \space k =0 \end{array} \right.$$
Can anybody explain this general formula. I would like to get my head around it and try and understand.
Lets list the first few numbers in that sequence.
when $k=0$ we do have $a_0 = 1$
When $k=1$ we do have $a_1 = 2$
Now for $k=2$ we have $a_2 = 4a_{2-1} - 2a_{2-2} = 4a_1 -2a_0 =4(2) -2(1) = 6$
for $k=3$ we have $a_3 = 4a_{3-1} -2a_{3-2} = 4a_2 -2a_1 = 4(6) -2(2) = 20$
for $k =4$ we have $a_4 = 4a_{4-1} -2a_{4-2} = 4a_3 -2a_2 =4(20) - 2(6) =68$
and so the sequence is like $$1,2,6,20,68,......$$
Notice that this sequence is a monotone increasing sequence ($a_{k+1} \geq a_k \space \forall \space k \geq 0$)