I'm having a bit of a problem with recurring relations. I have a question that goes: "Solve the recurrence relation:" $$ a_{k+2}-4a_k=k+2 ; a_0=1 ; a_1=0 $$
And so far I've done $$ a_{k+2} -4a_k=0$$ $$r^2-4=0$$
$$ r^2 = 4$$ $$r = \pm\sqrt4$$
And this is where I lose what I'm supposed to do. My teacher gave us a sample where he did $$a_{k+2} +a_k = k$$ $$a_{k+2}+a_k=0$$ $$r^2+1=0$$ $$r^2=-1$$ $$ r=+-\sqrt1 = i=+-i =>u=0;v=1 ->|r|=1;\alpha=\frac{\pi}{2} $$ (This is not the whole example of course) Where did he get the pi per two? And how I'm supposed to continue from where I am?