Let us solve the recurrence relation an=6an−2−12an−2+8an−2+n2+2n, which is equivalent to an−2an−2=n2+2n. The characteristic equation k2−2=0 of the homogeneous recurence relation an−2an−2=0 has the roots k1=2,k2=−2.
It follows that the solution of an−2an−2=n2+2n is of the form an=C1(2)n+C2(−2)n+bp(n), where bp(n)=an2+bn+c. Then an2+bn+c−2(a(n−2)2+b(n−2)+c)=n2+2n, and hence an2+bn+c−2(an2−4an+4a+bn−2b+c)=n2+2n. It follows that −an2+(8a−b)n−8a+4b−c=n2+2n, and thus a=−1,8a−b=2,−8a+4b−c=0. Therefore, a=−1,b=−10,c=−32.
Comments