Recurrence Relation
Recurrence Relation
where C1, C2, ... ,Ck are real numbers, and Ck ≠0.
When both sides of this equation are divided by rn-k and the right-hand
side is subtracted from the left, we obtain the equation
x2−Ax−B=0
and it produces single real root x1, then Fn= ax1n + bnx1n is the solution.
Problem 1
Solve the recurrence relation Fn =5Fn-1−6Fn-2 Where F0=1 and F1=4
Solution
x2−5x+6=0,
So, (x−3)(x−2)=0
The roots are real and distinct. So, this is in the form of case 1
Fn =ax1n +bx2n
Therefore,
1=F0=a30+b20=a+b
Fn=2.3n +(−1).2n=2.3n−2n
Problem 2
Solution
x2−10x−25=0
So (x−5)2=0
3=F0=a.50+b.0.50=a
17=F1=a.51+b.1.51=5a+5b
and b=2/5
Problem 3:
What is the solution of the recurrence relation
Solution:
The characteristic equation of the recurrence relation is r2 - r - 2 = O.
Its roots are r = 2 and r = -1. Hence, the sequence {an} is a solution to
the recurrence relation if and only if
for some constants α1 and α2. From the initial conditions, it follows that
a0 = 2 = α 1 + α 2 ,
a1 = 7 = α1 ·2 + α2. (-1).
Solving these two equations shows that α1 = 3 and α2= -1. Hence, the
solution to the recurrence relation and initial conditions is the sequence
{ an } with
Problem 4:
Find the solution to the recurrence relation an = 6an-1 – 11an-2 + 6an-3
with the initial conditions a0 = 2, a1 = 5, and a2 = 15.
Solution:
The characteristic polynomial of this recurrence relation is
r3 - 6r2 + 11r - 6.
The characteristic roots are r = 1, r = 2, and r = 3, because r3 - 6r2 + 11r
– 6 = (r - I)(r - 2)(r - 3). Hence, the solutions to this recurrence relation
are of the form
an = α1 1n + α2 2n + α3 3n
To find the constants α1, α2, and α3, use the initial conditions. This gives
a0 = 2 = α1 + α2 + α3,
a1 = 5 = α1 + α2. 2 + α3. 3,
a2 = 15 = α1 + α2 ·4 + α3 ·9.
When these three simultaneous equations are solved for α1, α2, and α3,
we find that α1= 1, α2= -1, and α3 = 2. Hence, the unique solution to this
recurrence relation and the given initial conditions is the sequence {an}
with
an=ah+at
Solution to the first part is done using the procedures discussed in the
previous section.
Example
f(n) Trial
solutions
4 A
5.2n An2n
8.5n An5n
4n A4n
2n2+3n+1 An2+Bn+C
Problem 5:
Solve the recurrence relation Fn=3Fn−1+10Fn−2+7*5n where F0=4 and
F1=3
Solution
x2−3x−10=0
Or, (x−5)(x+2)=0
Since f(n)=7.5n, i.e. of the form c.xn, a reasonable trial solution of at will
be Anxn
at =Anxn=An5n
An5n =3A(n–1)5n-1+10A(n–2)5n-2+7.5n
An52=3A(n−1)5+10A(n−2)50+7.52
Or, 25An=15An−15A+10An−20A+175
Or, 35A=175
Or, A=5
So, Fn=An5n=5n5n=n5n+1
The solution of the recurrence relation can be written as −
Fn=ah+at
=a.5n+b.(−2)n+n5n+1
Putting values of F0=4 and F1=3, in the above equation, we get a=−2
and b=6
Fn=n5n+1+6.(−2)n−2.5n
For reference:
https://www.tutorialspoint.com/discrete_mathematics/discrete_mathematics_recurrence_relation.htm
https://brilliant.org/wiki/recurrence-relations/
https://brilliant.org/wiki/linear-recurrence-relations/
Discrete Mathematics and Its Applications