$$a_k = \left\{ \begin{array}{lr} 2a_{k-1} - a_{k-2} &: if \space k > 2 \\ 3 & :if\space k =2 \\ 2 & :if \space k =1 \end{array} \right.$$
It's easy to see that the nth term is n+1 based on the pattern but how do I actually show it? Is there a general way to solve these recurrence problems?
The only way I can think of is $a_k - a_{k-1}=a_{k-1}-a_{k-2}$ implies arithmetic progression, so based on that n+1