Lecture 18 MTL180
Lecture 18 MTL180
Lecture 18 MTL180
Lecture 18 — 14/10/2024
Lecturer: Prof Minati De Scribe: Team 18
Scribed by:
7. Rahul (2023MT60686)
1 Overview
In the last lecture, we explored distributing objects into boxes and the recurrence aspects of permu-
tations and combinations. We then delved into recurrence relations, covering foundational examples
like the Fibonacci sequence, factorials, and the Tower of Hanoi problem. Various problems involv-
ing recurrence relations were discussed, such as determining the number of sequences that avoid
specific patterns and computing Catalan numbers for valid parentheses arrangements.
where c1 , c2 , . . . , ck are real numbers and ck ̸= 0. Additionally, it is assumed that ck+i = 0 for
all i > 0. Here, f (n) is a function that determines whether the recurrence is homogeneous or
non-homogeneous:
1
3 Linear Homogeneous Recurrence Relations
3.1 Definition
The basic approach for solving linear homogeneous recurrence relations is to look for solutions of
the form an = rn , where r is a constant. Substituting into the recurrence relation yields:
Dividing both sides by rn−k and simplifying gives the characteristic equation:
rk − c1 rk−1 − c2 rk−2 − · · · − ck = 0.
The solutions of this equation are called the characteristic roots of the recurrence relation.
We distinguish two primary cases based on the nature of the characteristic roots:
rk − c1 rk−1 − · · · − ck = 0
has k distinct roots r1 , r2 , . . . , rk . Then a sequence {an } is a solution of the recurrence relation if
and only if:
an = α1 r1n + α2 r2n + · · · + αk rkn
for n = 0, 1, 2, . . ., where α1 , α2 , . . . , αk are constants.
If the characteristic equation has repeated roots, say a root r with multiplicity t, then for each such
root, the general solution includes terms of the form:
2
4 Examples and Solutions
fn = fn−1 + fn−2 , f0 = 0, f1 = 1
Characteristic Equation: Substituting fn = rn , we get:
r2 − r − 1 = 0
fn = α1 r1n + α2 r2n
α1 + α2 = 0, α1 r1 + α2 r2 = 1
4.2 Example 2:
hn = α1 · 1n + α2 · (−1)n + α3 · 2n
4.3 Example 3:
hn = 4hn−1 − 4hn−2 , h0 = 1, h1 = 3
Characteristic Equation: Substituting hn = rn , we get:
r2 − 4r + 4 = 0
(r − 2)2 = 0
3
This root r = 2 has multiplicity 2. For this case, the general solution is:
hn = (α1 + α2 n) · 2n
4.4 Example 4:
Characteristic Equation:
The characteristic equation for this recurrence is:
r4 + r3 − 3r2 − 5r − 2 = 0
Factoring, we get:
(r + 1)3 (r − 2) = 0
General Solution:
The general solution for this recurrence relation is:
hn = (α1 + α2 n + α3 n2 )(−1)n + α4 2n
2. For n = 1:
4
−(α1 + α2 + α3 ) + 2α4 = 0 (Equation 2)
3. For n = 2:
4. For n = 3:
Solve for α2 , α3 , α4 using substitution or matrix methods. Once these are found, substitute back
to get α1 .
Final Solution:
Once you have solved for the constants α1 , α2 , α3 , α4 , the general solution is:
hn = (α1 + α2 n + α3 n2 )(−1)n + α4 2n
For a root qj with multiplicity sj , the terms associated with this root in the general solution are:
6 Conclusion
In this lecture, we explored methods to solve linear homogeneous recurrence relations with constant
coefficients. We focused on constructing characteristic equations, solving for roots, and finding the
constants for the general solution. We covered examples with distinct roots, repeated roots, and
provided a generalized approach for cases with roots of varied multiplicities.
References
[1] K. H. Rosen, Discrete Mathematics and Its Applications, 7th ed., New York, NY: McGrawHill,
2012