Suppose we have the recursion equation b_{n+2}=5b_{n+1}-2b_n. where b_0=1, b_1=2.

Pavukol

Pavukol

Answered question

2022-09-05

Find a closed formula for the generating function given the recursion equation.
Suppose we have the recursion equation b n + 2 = 5 b n + 1 2 b n . where b 0 = 1 , b 1 = 2. I'm trying to find a closed formula for the generating function. I tried to find the characteristic equation and obtained r 2 5 r + 2 = 0. Then we could find b n = A r 1 n + B r 2 n by solving A and B from b 0 and b 1 . The final result is
b n = 17 1 2 17 ( 5 + 17 2 ) n + 17 + 1 2 17 ( 5 17 2 ) n
I wonder is there a different approach to solve for the generating function using recursive equation?

Answer & Explanation

Peyton Atkins

Peyton Atkins

Beginner2022-09-06Added 13 answers

Step 1
Yes, of course. The generating function has the form
f ( r ) = A r + B r 2 5 r + 2 = C r r 1 + D r r 2 ,
but A, B are not your constants.
Step 2
You can expand it by the geometric series and hopefully you get the same result.

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?