So basically, I was watching video above which is on recurrence relations and I had a question about this statement. a_n=a_{n-1}+6a_{n-2}\Rightarrow a_n=\alpha(-2)^n+\beta(3)^n.

Lucille Douglas

Lucille Douglas

Answered question

2022-09-07

Question about getting a formula for a recurrence relations
So basically, I was watching video above which is on recurrence relations and I had a question about this statement:
a n = a n 1 + 6 a n 2
I understand how he got the ( 2 ) n and ( 3 ) n , but not about how he is adding them and then multiplying them by the variables α and β. He said that there is a proof online about why there is always going to be an α and a β that will always make this statement true, but I wasn't able to find it and I was hoping that somebody could give me a step by step explanation about how this is. I was also wondering about the general case for getting a formula for recurrence relations in this form.
Note: I read somewhere that you can derive this from generating functions, but I don't have a strong background in them, so I was wondering if there is another way to derive the relation.

Answer & Explanation

Raven Mosley

Raven Mosley

Beginner2022-09-08Added 14 answers

Step 1
Let p x 2 + q x + r = 0 has roots as a, b, then
α a n ( p a 2 + q a + r ) = 0
and
β b n ( p b 2 + q b + r ) = 0
add them to get
p ( α a n + 2 + β b n + 2 ) + q ( α a n + 1 + β b n + 1 ) + ( α a n + β b n ) = 0
Step 2
Now define A n = α a n + β b n . So we get
p A n + 2 + q A n + 1 + r A n = 0
This prvides a simple understandinf of what is going on here.
Gracelyn Paul

Gracelyn Paul

Beginner2022-09-09Added 17 answers

Step 1
It comes from the fact that for a general, linear, homogenous recurrence (for simplicity, we'll say it's order 2), the solutions form a vector space.
Particularly, we are motivated that the general solution to something like a n = r a n 1 .
Let's say that the solution to the general recurrence a n = a n 1 + 6 a n 2 was of the form a r n . We can substitute this to see that
a r n = a r n 1 + 6 a r n 2
r 2 = r + 6
r = 2 , 3
Step 2
So we can see that any scalar multiple of ( 2 ) n or 3 n will satisfy the general recurrence. Moreover, it is pretty easy to see that any linear combination of these two will satisfy the recurrence. Hence, we can say that the solutions to the general recurrence will lie in the vector space with basis { ( 2 ) n , 3 n }.
We then say that a particular solution is a linear combination of the elements of this basis and use the initial conditions to solve for the coefficients. This process is very similar when solving linear, homogenous differential equations.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?