Solving Non-Homogenous Recurrence Relation I was interested in Solution of this Non-Homogenous Recu

patzeriap0

patzeriap0

Answered question

2022-05-26

Solving Non-Homogenous Recurrence Relation
I was interested in Solution of this Non-Homogenous Recurrence Relation
f ( n ) = f ( n 1 ) + f ( n 3 ) + 1
The Base conditions are: f ( 0 ) = 1
f ( 1 ) = 2
f ( 2 ) = 3
f ( 2 ) = 3
Kindly help me in solving this Recurrence Relation, by any known method.

Answer & Explanation

extractumzz

extractumzz

Beginner2022-05-27Added 9 answers

Step 1
Let g n = f n + 1 so that
g n = g n 1 + g n 3 for  n 3 g 0 = 2 g 1 = 3 g 2 = 4
Let G ( z ) = n 0 g n z n be the generating function. The recurrence relation and boundary conditions imply that
G ( z ) = 2 z 0 + 3 z 1 + 4 z 2 + n 3 ( g n 1 + g n 3 ) z n = 2 + 3 z + 4 z 2 + z ( G ( z ) 2 3 z ) + z 3 G ( z ) ,
so G ( z ) = 2 + z + z 2 1 z z 3 ,
which yields F ( z ) = n 0 f n z n = n 0 ( g n 1 ) z n = 2 + z + z 2 1 z z 3 1 1 z = 1 ( 1 z ) ( 1 z z 3 ) .

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?