I was asked to find a first order linear recurrence relation for
$$ a_n=3n^2-2n+1 $$
Here is what I did \begin{align}\label{1} a_{n-1} &= 3(n-1)^2-2(n-1)+1\\ &=3(n^2-2n+1)-2n+2+1\\ &=\underbrace{3n^2-2n+1}_{a_n}-6n+5\\ &=a_n-6n+5 \end{align} Thus, \begin{align} a_n-a_{n-1}=6n-5\tag{1}\label{2} \end{align} with $a_0=1$ is a first order recurrence relation for the given sequence.
But I was unable to retrieve the given sequence from this recurrence relation. Clearly, the recurrence is nonhomogeneous. So, its solution is of the form $$ a_n=a_n^h+a_n^p $$ Now, $$ a_n^h=c, \mbox{any constant} $$ Since $f(n)=-6n+5$o to find a particular solution for the non-homogeneous part, we set $a_n^p=A_1n+A_0$, where $A_1,A_0$ are constant. Substituting this into (\ref{2}) yield \begin{align*} A_1n+A_0-[A_1(n-1)+A_0]&=6n-5\\ A_1 &= 6n-5 \end{align*} I have tried this again and again but I couldn't tell what is happening? What is wrong with me?
Edited: Let me put it in this way, solve
\begin{align} a_n-a_{n-1}=6n-5,\ a_0=1. \end{align}
$\implies$
$$a_n-a_{n-1}=6n-5\iff6n=?$$ $$ a_{n+1}-a_n=6(n+1)-5\iff6n=?$$
Compare the two values of $6n?$