Answer to Question #273335 in Discrete Mathematics for nur

Question #273335

Suppose a recurrence relation




an=2an−1−an−2


where a1=7 and a2=10




can be represented in explicit formula, either as:


Formula 1:


an=pxn+qnxn


       or  


Formula 2:


an=pxn+qyn


 


where 


x


and


y


are roots of the characteristic equation.




  Determine p and q




1
Expert's answer
2021-11-30T17:43:45-0500

Let us solve the characteristic equation of the recurrence relation an=2an1an2,a_n=2a_{n−1}−a_{n−2}, which is equivalent to an2an1+an2=0.a_n-2a_{n−1}+a_{n−2}=0. It follows that the characteristic equation x22x+1=0x^2-2x+1=0 is equivalent to (x1)2=0,(x-1)^2=0, and hence has the roots x1=x2=1.x_1=x_2=1. It follows that the solution of the recurrence equation is an=p1n+qn1n=p+qn.a_n=p\cdot 1^n+q\cdot n1^n=p+q\cdot n. Since a1=7a_1=7 and a2=10,a_2=10, we conclude that 7=a1=p+q7=a_1=p+q and 10=a2=p+2q.10=a_2=p+2q. Therefore, q=3q=3 and p=4.p=4.

Answer: p=4, q=3.p=4,\ q=3.

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