How are can the above recurrence relation be solved?
I've reached here: $(x^{2}-x-1)(x-3)^2(x-1)$
And then here:
$$a_n = l_1 \cdot (x_1)^n+l_2 \cdot (x_2)^n+l_3 \cdot (x_3)^n+l_4\cdot n \cdot (x_3)^n+l_5\cdot (x_4)^n$$
And we are given that these: $T(0) = 2, T(1) = 3$
So, for $n = 0$ and $n = 1$ we get two equations but we need 3 more, yet we don't have any more constants.
Rewrite the expression as $$ T_{n+2}=T_{n+1}+T_{n}+3n+7 $$ Now postmultiply by $z^k$ and sum over $k$ to get the generating function $G_{T}(z)=\sum_{k=0}^{\infty}T_k z^k$. Here $$ \sum_{k=0}^{\infty}T_{k+2}z^k = \frac{1}{z^2}\bigg(G(z)-T_0-T_1 z\bigg)\\ \sum_{k=0}^{\infty}T_{k+1}z^k=\frac{1}{z}\bigg(G(z)-T_0 \bigg) $$ Now do the algebra and find the expression with $G(z)$ on the LHS of the expression and $\sum_{k \geq 0}\varphi_k z^k$. The $\varphi_n$ term corresponding to $z^n$ will be the solution.