Answer to Question #301576 in Discrete Mathematics for yoha

Question #301576

Solve the following set of recurrence relations and initial conditions an = 4an−1 + n 2 − n , n ≥ 1; a0 = 1?


1
Expert's answer
2022-02-24T06:14:45-0500

Let us solve the following recurrence relation and initial condition

an=4an1+n2n, n1; a0=1a_n = 4a_{n−1} + n^2 − n ,\ n ≥ 1;\ a_0 = 1

The characteristic equation k4=0k-4=0 has the root k=4,k=4, and hence the general solution of the reccurence relation is of the form


an=A4n+bn,a_n=A\cdot4^n+b_n, where the particular solution bn=pn2+qn+r.b_n=pn^2+qn+r.


It follows that

pn2+qn+r=4(p(n1)2+q(n1)+r)+n2n=4pn28pn+4p+4qn4q+4r+n2n.pn^2+qn+r=4(p(n-1)^2+q(n-1)+r)+n^2-n\\=4pn^2-8pn+4p+4qn-4q+4r+n^2-n.


Therefore,

(3p+1)n2+(8p+3q1)n+(4p4q+3r)=0.(3p+1)n^2+(-8p+3q-1)n+(4p-4q+3r)=0.

We conclude that

3p+1=0, 8p+3q1=0, 4p4q+3r=0.3p+1=0,\ -8p+3q-1=0,\ 4p-4q+3r=0.

Then

p=13,q=13(1+8p)=13(183)=59,r=43(qp)=43(59+13)=827.p=-\frac{1}3,\\ q=\frac{1}3(1+8p)=\frac{1}3(1-\frac{8}3)=-\frac{5}{9}, \\ r=\frac{4}3(q-p)=\frac{4}3(-\frac{5}9+\frac{1}3)=-\frac{8}{27}.


We conclude that the general solution of relation is the following:


an=A4n13n259n827.a_n=A\cdot4^n-\frac{1}3n^2-\frac{5}9n-\frac{8}{27}.


Since a0=1,a_0 = 1, we get 1=a0=A827.1=a_0=A-\frac{8}{27}. Then A=1+827=3527.A=1+\frac{8}{27}=\frac{35}{27}.


Consequently, the solution of the recurrence relation with initial condition is


an=35274n13n259n827.a_n=\frac{35}{27}\cdot4^n-\frac{1}3n^2-\frac{5}9n-\frac{8}{27}.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment