The characteristic equation of the recurrence relation
an=5an−1−6an−2(n⩾2)
is x2−5x+6=0, with characteristic roots x1=2,x2=3. Therefore, the general solution is
an=c1⋅2n+c2⋅3n.
Since (3.7) does not have a characteristic root equal to 1, the recurrence relation
an=5an−1−6an−2+n+2(n⩾2)
has a particular solution an=An+B, where A and B are constants to be determined. Substituting into (3.8) yields
An+B=5[A(n−1)+B]−6[A(n−2)+B]+n+2,
simplifying to
2An+2B−7A=n+2,
so
{2A=12B−7A=2
Solving these, we get A=21,B=411. Thus,
an=c1⋅2n+c2⋅3n+21n+411,
where c1,c2 are constants to be determined. Using the initial conditions, we have
{c1+c2+411=427,2c1+3c2+21+411=449.
Solving these, we get c1=3,c2=1. Therefore,
an=3⋅2n+3n+21n+411(n⩾0).