Discrete Assignment
Discrete Assignment
TEPI CAMPUS
College of Computing and Informatics
Department of Information Systems
Assignment of Discrete Mathematics
Submitted to:
Submission Date:
Discrete Mathematics Assignment 2023
RECURRENCE RELATIONS
f : N → A such that i 7→ ai , ai ∈ A
of the sequence (namely a0, a1, . . . , an−1) for all integers n with n ≥ m. The first
few elements (a0, a1, . . . , am−1) in the sequence that can not be related to each
other by the recurrence relation are often determined by the initial conditions. A
recurrence relation is sometimes also called a difference equation. Formally, a
recurrence relation is an equation of the type
1
Discrete Mathematics Assignment 2023
Examples
n ≥ 2. The elements in the sequence that are not related by the above formula are
a0 and a1. Hence a0 and a1 can be determined by the initial conditions. Once the
values of a0 and a1 are specified, the whole sequence {ai}i≥0 is completely
specified by the recurrence relation.
a0 = 1, a1 = 2 . (∗∗)
Solution.
2
Discrete Mathematics Assignment 2023
= 11a2 + 6a1
= 39a1 + 22a0
Iteratively, we use (*) repeatedly (“building-up”) to derive more and more known
elements until the desired index is reached. Hence
a0 = 1 ,
a1 = 2 ,
3
Discrete Mathematics Assignment 2023
f(n) = n f(n − 1) if n ≥ 1
= n(n − 1)f(n − 2) if n ≥ 2
=...
= n!f(0) = n! · 1 = n!
4
Discrete Mathematics Assignment 2023
In other words, the equation has a "non-homogeneous" structure. The general form
of a non-homogeneous recurrence relation is:
an=an(h)+anp
2. Identify the form of the particular solution based on the non-homogeneous term.
4. Add the homogeneous and particular solutions to get the general solution.
5
Discrete Mathematics Assignment 2023
6
Discrete Mathematics Assignment 2023