Find all sequences $a_{n}$ whose members satisfy the recurrence relation $a_{n}=\frac{7}{10}a_{n-1}+\frac{3}{10}a_{n-2}+156n^{2}-280n+161$.
for $n ≥ 3$ (express the member $a_{n}$ as a function of its sequence number n).
I tried characteristic equation and partial solution, but partial solution is not working.
My solution: Characteristic equation: $a_{n}-\frac{7}{10}a_{n-1}-\frac{3}{10}a_{n-2}=0$ then substitution:
$r^2-\frac{7}{10}r-\frac{3}{10}=0$
So $r_{1}=1$ and $r_{2}=\frac{-3}{10}$
So characteristic equation is $c_{1}(1)^n+c_{2}(\frac{-3}{10})^n$
Then I tried partial solution when I used $an^2+bn+c$. But when I wanted to subtitute to sequence, then I didn't get good solution.
Observe that $\frac{7}{10} + \frac{3}{10} = 1$, we have \begin{align*} a_n - a_{n-1}= -\frac{3}{10}(a_{n-1}-a_{n-2})+156n^2-280n+161 \end{align*} Let $b_n = a_n - a_{n-1}$ for $n \geq 1$, the recurrence reduces to first order: \begin{equation*} b_n = -\frac{3}{10}b_{n-1}+156n^2-280n+161 \end{equation*} Once you obtain the solution to $b_n$, you should be able to find \begin{equation*} a_n = (\sum_{i=1}^{n} b_n) + a_0 \end{equation*}