I am having problems understanding how to solve second-order linear homogeneous recurrence relations with constant coefficients $b,c$. I have a clear understanding on solving second order linear recurrence relations, but am stumped with this equation as it is given in a form different than what I am used to.
Let the following question be used as an example.
if: $a_0 =0\\a_1 = 1 \\a_2 = 4 \\ a_3 =37$
satisfy the recurrence relation $a_{n+2}+ ba_{n+1}+ ca_n$ where $n\ge 0$ and $b,c$ are constance determine $b,c$ and solve for $a_n$.
In my 'solution' I used the quadratic formula to determine the roots of the equation and then followed with row reduction to for the equation for $a_n$.
$r_1= \frac{(-b + \sqrt{b^2 -4c})}{2}\\ r_2= \frac{(-b - \sqrt{b^2 -4c})}{2}$
which then was used to determine the coeeficients
$ \begin{array}{cc|c} 1 & 1 & 0 \\ r_1 & r_2 & 1 \\ r_1^2 & r_2^2 & 4 \\ r_1^3 & r_2^3 & 37 \\ \end{array}$
$ \begin{array}{cc|c} 1 & 1 & 0 \\ r_1 & r_2 & 1 \\ r_1^2 & r_2^2 & 4 \\ r_1^3 & r_2^3 & 37 \\ \end{array}$
which gave:
$b = (\frac {-1}{r_2-r_1})\\c = (\frac {1}{r_2-r_1})$
resulting in my final answer:
$a_n= b*r_1^n + c*r_2^n$
Please let me know what I have done wrong and any missed steps or errors. I have been struggling with this question for quite some time so the help would be very much welcome!!
NOTE: The solution is $a_n = (\frac{1}{10}(7^n-(-3)^n))$