The document discusses solving recurrence relations using iterative methods. It provides examples of using forward and backward iteration to predict solutions to recurrence relations given initial conditions. Recurrence relations can be used to model problems involving compound interest, population growth, algorithms like the Tower of Hanoi puzzle, and counting problems. Explicit formulas for the solutions can be derived and proven using induction.
I am Falid B. I am a Mathematical Statistics Assignment Help Expert at statisticshomeworkhelper.com. I hold a Master's in Statistics, from George Town, Malaysia.I have been helping students with their assignment for the past 6 years. I solve assignments related to Mathematical Statistics.
Visit statisticshomeworkhelper.com or email info@statisticshomeworkhelper.com.You can also call on +1 678 648 4277 for any assistance with Mathematical Statistics Assignment.
I am Falid B. I am a Mathematical Statistics Assignment Expert at excelhomeworkhelp.com. I hold a Master's in Statistics, from George Town, Malaysia. I have been helping students with their assignments for the past 6 years. I solved an assignment related to Mathematical Statistics.
Visit excelhomeworkhelp.com or email info@excelhomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with Mathematical Statistics Assignment.
I am Falid B. I am a Mathematical Statistics Assignment Help Expert at statisticshomeworkhelper.com. I hold a Master's in Statistics, from George Town, Malaysia.I have been helping students with their assignment for the past 6 years. I solve assignments related to Mathematical Statistics.
Visit statisticshomeworkhelper.com or email info@statisticshomeworkhelper.com.You can also call on +1 678 648 4277 for any assistance with Mathematical Statistics Assignment.
I am Falid B. I am a Mathematical Statistics Assignment Expert at excelhomeworkhelp.com. I hold a Master's in Statistics, from George Town, Malaysia. I have been helping students with their assignments for the past 6 years. I solved an assignment related to Mathematical Statistics.
Visit excelhomeworkhelp.com or email info@excelhomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with Mathematical Statistics Assignment.
Permutations and Combinations IIT JEE+Olympiad Lecture 4Parth Nandedkar
Continues from PnC lecture 3. The series Follows the JEE Advanced syllabus, but this lecture goes beyond into Mathematical Olympiad territory. Covers the following more advanced topics:
Simple idea of Inclusion Exclusion principle,
Explanation through Venn Diagrams,
Application of I-E Principle,
Counting Derangements using I-E Principle,
Partitioning Indistinguishable Objects(+Comparison with Distinguishable Objects) ,
Problem Session
I am Charles B. I am an Algorithm Assignment Expert at programminghomeworkhelp.com. I hold a Ph.D. in Programming, Texas University, USA. I have been helping students with their homework for the past 6 years. I solve assignments related to Algorithms.
Visit programminghomeworkhelp.com or email support@programminghomeworkhelp.com.You can also call on +1 678 648 4277 for any assistance with Algorithm assignments.
Published in association with the Utilitas Mathematica Academy. Offers selected original research in Pure and Applied Mathematics and Statistics. It enjoys a good reputation and popularity at the international level in terms of research papers and distribution worldwide.
https://utilitasmathematica.com/index.php/Index
Our Journal We believe that by embracing a wide range of backgrounds and viewpoints, we enrich the statistical discourse and enhance the quality and relevance of our research. Our commitment to inclusivity extends beyond the content of our publications.
https://utilitasmathematica.com/index.php/Index
Our Journal has a profession of statistics can only thrive when justice, equity, diversity, and inclusion are not just ideals but integral components of our ethos. We recognize that a diverse and inclusive community sparks creativity, innovation, and a richness of perspectives that is indispensable for advancing statistical knowledge.
Permutations and Combinations IIT JEE+Olympiad Lecture 4Parth Nandedkar
Continues from PnC lecture 3. The series Follows the JEE Advanced syllabus, but this lecture goes beyond into Mathematical Olympiad territory. Covers the following more advanced topics:
Simple idea of Inclusion Exclusion principle,
Explanation through Venn Diagrams,
Application of I-E Principle,
Counting Derangements using I-E Principle,
Partitioning Indistinguishable Objects(+Comparison with Distinguishable Objects) ,
Problem Session
I am Charles B. I am an Algorithm Assignment Expert at programminghomeworkhelp.com. I hold a Ph.D. in Programming, Texas University, USA. I have been helping students with their homework for the past 6 years. I solve assignments related to Algorithms.
Visit programminghomeworkhelp.com or email support@programminghomeworkhelp.com.You can also call on +1 678 648 4277 for any assistance with Algorithm assignments.
Published in association with the Utilitas Mathematica Academy. Offers selected original research in Pure and Applied Mathematics and Statistics. It enjoys a good reputation and popularity at the international level in terms of research papers and distribution worldwide.
https://utilitasmathematica.com/index.php/Index
Our Journal We believe that by embracing a wide range of backgrounds and viewpoints, we enrich the statistical discourse and enhance the quality and relevance of our research. Our commitment to inclusivity extends beyond the content of our publications.
https://utilitasmathematica.com/index.php/Index
Our Journal has a profession of statistics can only thrive when justice, equity, diversity, and inclusion are not just ideals but integral components of our ethos. We recognize that a diverse and inclusive community sparks creativity, innovation, and a richness of perspectives that is indispensable for advancing statistical knowledge.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Overview on Edible Vaccine: Pros & Cons with Mechanism
Ch-3 lecture.pdf
1. Addis Ababa science & Technology University
Department of Mathematics
Discrete mathematics-I
CHAPTER-3: Recurrence relation
2. TALK OUTLINES
3.1 Definition and Examples of recurrence relation
3.2 Modeling using recurrence relation
3.3 Solving recurrence relation
2
3. 3
Many counting problems cannot be solved
easily using the methods discussed in Chapter 1.
One such problem is: How many bit strings of
length n do not contain two consecutive
zeros?
The techniques studied in this chapter, together
with the basic techniques of Chapter 1, can
be used to solve many counting problems.
INTRODUCTION
4. The number of bacteria in a colony doubles every
hour. If the colony begins with 5 bacteria, how many
will be present in n hours?
Let an : the number of bacteria at the end of n hours
Then;
an = 2an-1, a0=5
What we are doing actually?
We find a formula/model for an (the relationship
between an and a0) – this is called recurrence
relations between the term of sequence.
Motivation
Solution:
Since bacteria double every hour Initial condition
By using
recursive
definition
5. 3.1
RECURRENCE
RELATION
• A recursive algorithm provides the solution of a problem of size n in term of
the solutions of one or more instances of the same problem in smaller size.
• The initial condition specify the terms that precede the first term where
the recurrence relation takes effect.
3.1 Recurrence Relation
A recurrence relation for the sequence {an} is an equation that
expresses an in terms of one or more of the previous terms of the
sequence, namely, a0, a1,…, an-1, for all integers n with n ≥ n0, where n0
is a nonnegative integer.
A sequence is call solution of a recurrence relation if its term satisfy
the recurrence relation.
an = 2an-1
a0 = 5 Initial condition
Recurrence relation
Recursive
definition
6. 3.1
RECURRENCE
RELATION
Let {an} be a sequence that satisfies the recurrence relation
an = an-1 – an-2 for n = 2, 3,4, and suppose that a0 =3 and a1 = 5.
List the first four term.
a0 = 3
a1 = 5
a2 = a1 – a0 = ___________________
a3 = __________________________
What is a5?
a5 = __________________________
Example 3.1
7. 3.1
RECURRENCE
RELATION
Determine whether {an} where an = 3n for every nonnegative
integer n, is a solution of recurrence relation an = 2an-1 – an-2
for n = 2, 3, 4, …
Suppose that an = 3n for every nonnegative integer n,
Then for n ≥ 2;
2an-1 – an-2 = ___________________
Therefore,
Determine whether {an} where an = 5 for every nonnegative
integer n, is a solution of recurrence relation an = 2an-1 – an-2
for n = 2, 3, 4, …
2an-1 – an-2 = ___________________
Example 3.2
8. 3.1
RECURRENCE
RELATION
1. Let an denotes the nth term of a sequence satisfying the
given initial condition (s) and the recurrence relation.
Compute the first four terms of the sequence.
EXERCISE 3.1
0 1
1
128, for 1
4
n n
a a a n
A
B
C
D
E
1 1
5, 7 2 for 2
n n
b b b n
2
1 1 1
2, 3 2 for 2
n n n
a a a a n
1 2 3 1 2 3
1, 2, 3, for 4
n n n n
d d d d d d d n
1 2 1 2
1, 2, 3 for 3
n n n
a a a a a n
9. 3.1
RECURRENCE
RELATION
2. Is the sequence {an} a solution of the if
3. Is the sequence {an} a solution of the if
4. Show that the sequence {an} is a solution of the recurrence
relation if
EXERCISE 3.1
2 1
n
a n
1 2
3 2
n n n
a a a
1 2
2 2
n n n
a a a
2
3
n
a n
3
n
n
a
1 2
3 6
n n n
a a a
10. 3.2
MODELING
WITH
RECURRENCE
• We can use recurrence relation to model a wide variety of
problems such as
– Finding a compound interest
– Counting a population of rabbits
– Determining the number of moves in the Tower of Hanoi
puzzle
– Counting bit strings
3.2 Modeling with Recurrence Relation
11. 3.2
MODELING
WITH
RECURRENCE
Suppose that a person deposits Birr10,000 in a savings account
at CBE yielding 11% per year with interest compounded
annually. Define recursively the compound amount in the
account at the end of n years.
Let an : the amount in the account after n years
Then;
an = (compound amount at the end of (n -1)th years)
+ (interest for the nth years)
an = an-1 + 0.11an-1
= 1.11 an-1
With initial condition; a0 = 10,000
Example 3.3: Compound interest
Solution:
12. 3.2
MODELING
WITH
RECURRENCE
A young pair of rabbits (one of each sex) is placed on an island. A pair
of rabbits does not breed until they are 2 months old. After they are 2
months old, each pair of rabbits produces another pair each month.
Find a recurrence relation for the numbers of pairs of rabbits on the
island after n months if all the rabbits alive.
Let fn : the numbers of pairs of rabbits on the island after n months
Then;
fn = (number of pairs of rabbits in (n -1)th months)
+ (number of newborn pairs of rabbits)
fn = fn-1 + fn-2
With initial condition; f1 = 1 and f2 = 1 ; n ≥ 3
Example 3.4: Population of rabbits
Solution:
WHY???
[Problem develop by Leonardo Pisano (Liber abaci, 13th century) – lead to Fibonacci number]
14. 3.2
MODELING
WITH
RECURRENCE
• Popular Puzzle invented by Edouard Lucas
(French Mathematician, late 19th century)
RULES OF PUZZLE:
– Suppose we have 3 pegs labeled A, B, C and a set of disks of
different sizes.
– These disks are arranged from the largest disk at the bottom
to the smallest disk at the top (1 to n disks) on peg A.
– The goal: to have all disks on peg C in order of size, with the
largest on the bottom.
– Only one disk is allow to move at a time from a peg to another.
– Each peg must always be arranged from the largest at the
bottom to the smallest at the top
Example 3.5: Tower of Hanoi
15. 3.2
MODELING
WITH
RECURRENCE
ILLUSTRATION: SOLUTION
Example 3.5: Tower of Hanoi
A B C
A B C
Initial Position in the Tower of Hanoi
Intermediate Position in the Tower of Hanoi
n disks
n-1 disks
Hn-1 moves
Let Hn :
the numbers of
moves with n disks
transfer the top of
n-1 disks to peg B
16. 3.2
MODELING
WITH
RECURRENCE
ILLUSTRATION: SOLUTION
Example 3.5: Tower of Hanoi
A B C
A B C
Intermediate Position in the Tower of Hanoi
Last Position in the Tower of Hanoi
1 disks
n disks
Hn-1 moves
Moves the largest
disk to peg C
transfer the top of
n-1 disks to peg B
1 move
17. 3.2
RECURRENCE
RELATION
Thus the number of moves is given by:
Where:
Example 3.5: Tower of Hanoi
Solution (continue):
1 1
2 1 ; 1
n n
H H H
Hn-1 moves
Moves the largest
disk to peg C
transfer the top of
n-1 disks to peg C
1 move
Hn-1 moves
transfer the top of
n-1 disks to peg B
+ +
18. 3.2
MODELING
WITH
RECURRENCE
Find a recurrence relation and give initial conditions for the number of
bit strings of length n that do not have two consecutive 0s. How many
bit strings are there of six length?
Let an : number of bit strings of length n that do not have two
consecutive 0s
Then;
an = (number of bit strings of length n-1 that do not have
two consecutive 0s)
+ (number of bit strings of length n-2 that do not have
two consecutive 0s)
an = an-1 + an-2 ; n ≥ 3
With initial condition;
a1 = 2, both strings of length 1 do not have consecutive 0s ( 0 and 1)
a2 = 3, the valid strings only 01, 10 and 11
Example 3.6: Bit Strings
Solution:
Solve yourself
19. 3.2
MODELING
WITH
RECURRENCE
A computer system considers a string of decimal digits a valid codeword if it
contains an even number of 0 digits. For instance, 1230407869 is valid,
whereas 120987045608 is not valid. Let an be the number of valid n-digit
codewords. Find a recurrence relation for an.
Let an : the number of valid n-digit codewords
Then;
an = (number of valid n-digit codewords obtained by adding a
digit other than 0 at the end of a valid string of length n – 1)
+ (number of valid n-digit codewords obtained by adding a
digit 0 at the end of an invalid string of length n – 1)
With initial condition;
a1 = 9, there are 10 one-digit strings and only one the string 0 not valid
Example 3.7: Codeword enumeration
Solution:
1 1
1 1 1
9 10 8 10
n n
n n n n
a a a a
20. 3.2
MODELING
WITH
RECURRENCE
A valid codeword of length n can be formed by:
A) Adding a digit other than 0 at the end of a valid string of length n – 1
- This can be done in nine ways. Hence, a valid string with n digits can
be formed in this manner in ways.
B) Adding a digit 0 at the end of an invalid string of length n – 1
- This produces a string with an even number of 0 digits because the
invalid string of length n – 1 has an odd number of 0 digits. The number
of ways that this can be done equals the number of invalid (n – 1)-digit
strings. Because there are strings of length n – 1, and are
valid, then there are invalid (n – 1)-digit strings.
Thus;
Example 3.7: Codeword enumeration
1 1
1 1 1 1
9 10 8 10 , 9, 2
n n
n n n n
a A B a a a a n
1
9 n
a
1
10n
1
n
a
1
1
10n
n
a
21. 3.2
MODELING
WITH
RECURRENCE
6. Define recursively : 1, 4, 7, 10, 13, …
7. Beti deposits BIRR 1500 in a local savings bank at an
annual interest rate of 8% compounded annually. Define
recursively the compound amount an she will have in her
account at the end of n years. How much will be in her
account after 3 years?
8. There are n students at a class. Each person shakes
hands with everybody else exactly one. Define
recursively the number of handshakes that occur.
EXERCISE 3.1
22. 3.2
MODELING
WITH
RECURRENCE
9. Find a recurrence relation and initial condition for the
number of ways to climb n stairs if the person climbing the
stairs can take one, two or three stairs at a time. How
many ways can this person climb a building with eight
stairs?
10. Find a recurrence relation and initial condition for the
number of bit strings of length n that contain three
consecutive 0s. How many bit strings of length seven
contain three consecutive 0s?
11. Find a recurrence relation for the number of bit sequences
of length n with an even number of 0s?
EXERCISE 3.1
23. 3.3 SOLVING RECURRENCE RELATION
• Solve a recurrence relation using iterative
method
• Solve a linear homogeneous recurrence
relation with constant coefficients
• Solve a linear nonhomogeneous recurrence
relation with constant coefficients
24. • Solving the recurrence relation for a function f means
finding an explicit formula for f (n). The iterative
method of solving it involves two steps:
– Apply the recurrence formula iteratively and look
for the pattern to predict an explicit formula
Forward: start from a0 to an
Backward : start from an to a0
– Use Induction to prove that the formula does
indeed hold for every possible value of the integer
n.
Iterative Method
25. 3.3
SOLVING
RECURRENCE
RELATION
Using the iterative method, predict a solution for the following
recurrence relation with the given initial condition.
Example 3.3.1 (a): Iterative Method
0
1 0
2
2 1 0 0
2 3
3 2 0 0
1
1 0 0
1
2
2 2 2 2
2 2 2 2
2 2 2 2 2 ; 1
n n n
n n
S
S S
S S S S
S S S S
S S S S n
Solution: (FORWARD)
1 0
2 ; 1
n n
S S S
Solution: (BACKWARD)
1
2
2
3
3
0
2
2
2
2 2
n n
n
n
n n
S S
S
S
S
26. 3.3
SOLVING
RECURRENCE
RELATION
Suppose that a person deposits Birr10,000 in a savings account
at a CBE yielding 11% per year with interest compounded
annually. How much will be in the account after 30 years?
Let an : the amount in the account after n years
Then;
an = (compound amount at the end of (n -1)th years)
+ (interest for the nth years)
an = an-1 + 0.11an-1
= 1.11 an-1 , n ≥ 1
With initial condition; a0 = 10,000
Example 3.3.2: Compound interest
Solution:
27. By iterative approach:
Thus, after 30 years the amount in the account will be:
=Birr 228,923
0
1 0
2
2 1 0
3
3 2 0
1 0
10000
1.11
1.11 1.11
1.11 1.11
1.11 1.11 1.11 10000
n n
n n
a
a a
a a a
a a a
a a a
Example 3.3.2: Compound interest
Solution (continue):
30
30 1.11 10000 ___________
a
PROVE BY
INDUCTION !
28. The number of moves is given by:
By iterative approach:
1
2
2 2
2 3 2
3 3
1 2 3
1
1 2 3
2 1
2 2 1 1 2 2 1
2 2 1 2 1 2 2 2 1
2 2 2 2 1
2 2 2 2 1
2 1
n n
n n
n n
n n n
n n n
n
H H
H H
H H
H
Example 3.3: Tower of Hanoi
1 1
2 1 ; 1
n n
H H H
PROVE BY
INDUCTION !
29. 3.3
SOLVING
RECURRENCE
RELATION
1. Using iterative method, predict a solution to each of the
following recurrence relation. Verify the solutions using
induction
•
•
2. There are n students at a class. Each person shakes hands
with everybody else exactly one. Define recursively the
number of handshakes that occur. Solve this recurrence
relation using iterative method and prove it using induction.
3. If a deposit of birr 100 is made on the first day of each
month into an account that pays 6% interest per year
compounded monthly, show that the amount in the account
after 18 years is birr 38929.
1 0
4 ; 0 ; 1
n n
a a n a n
EXERCISE 3.3.1
2
1 1
; 1 ; 2
n n
b b n a n
30. 3.3
SOLVING
RECURRENCE
RELATION
A linear homogeneous recurrence relation of degree k with
constant coefficients is a recurrence relation of the form
an = c1an-1 + c2an-2 + … + ckan-k
Where c1, c2,…, ck are real numbers and ck ≠ 0
Linear Homogeneous Recurrence
Relations with constant coefficients
Linear : The RHS is the sum of previous terms of the sequence each
multiplied by a function of n.
Homogeneous : No terms occur that are not multiplies of the aj s.
Degree k : an is expressed in terms of the previous k terms of the sequence
Constant coefficients : c1, c2,…, ck
Recurrence relation : with k initial condition
a0 = C0, a1 = C1, … ak-1= Ck-1
31. 3.3
SOLVING
RECURRENCE
RELATION
Linear Homogeneous Recurrence Relation
Pn = (1.11) Pn-1 degree one
fn = fn-1 + fn-2 degree two
an = an-5 degree five
Not Linear Homogeneous Recurrence Relation
Hn = 2Hn-1 + 1
Bn = nBn-1
an = an-1 + a²n-2
Example 3.3.4: Linear Homogeneous RR
1. Often occur
in modeling of
problems
2. Can be
systematically
solved
32. 3.3
SOLVING
RECURRENCE
RELATION
• OUR AIM – look for the solutions of the form , where r
is constant.
• Note that, is a solution of the recurrence relation
an = c1an-1 + c2an-2 + … + ckan-k iff .
• When both sides of this equation are divided by and
the RHS is subtracted from the left, we obtain a characteristic
equation:
• The solution of this equation are called the characteristics
roots.
Solving Linear Homogeneous Recurrence
Relations with constant coefficients
n
n
a r
n
n
a r
1 2
1 2
n n n n k
k
r c r c r c r
1 2
1 2 1 0
k k k
k k
r c r c r c r c
n k
r
33. 3.3
SOLVING
RECURRENCE
RELATION
Let c1, c2, …, ck be real numbers. Suppose that the
characteristics equation
has k distinct roots r1, r2, …, rk.
Then a sequence {an} is a solution of the recurrence relation
an = c1an-1 + c2an-2 + … + ckan-k iff for
n ≥ 0 and α1, α2, …, αk constant.
If the characteristic equation has several (m) repeated roots,
then the solution of the recurrence relation is given by:
Solving Linear Homogeneous Recurrence
Relations with constant coefficients
1 1 2 2
n n n
n k k
a r r r
1 2
1 2 1 0
k k k
k k
r c r c r c r c
1 1 2 1 1
n n m n n
n m k k
a r nr n r r
34. 3.3
SOLVING
RECURRENCE
RELATION
Solve the recurrence relation an = 5an-1 - 6an-2 where a0 = 4 and
a1 = 7.
1) Find the general solution of the recurrence relation
• the characteristic equation is given by
• the characteristic roots are 2 and 3
• thus, the general solution is
2) Find the constant values, A,B and C using the initial
conditions
• Solving the linear system: : A = 5, B = -1
3) Thus the solution to the recurrence relation and initial
conditions is .
Example 3.3.5: Second-Order LHRRWCCs
Solution:
5 2 3 , 0
n n
n
a n
2 3
n n
n
a A B
2
5 6 0
r r
0
1
4
2 3 7
a A B
a A B
35. 3.3
SOLVING
RECURRENCE
RELATION
Solve the recurrence relation an = 6an-1 - 11an-2 + 6an-3 where
a0 = 2, a1 =5, and a2 = 15.
1) Find the general solution of the recurrence relation
• the characteristic equation is given by
• the characteristic roots are 1, 2 and 3
• thus, the general solution is
2) Find the constant values, A and B using the initial conditions
• Solving the linear system: (A = 1, B = -1, C = 2)
3) Thus the unique solution to the recurrence relation and
initial conditions is .
Example 3.3.6: Higher-Order LHRRWCCs
Solution:
1 2 2 3 , 0
n n
n
a n
1 2 3
n n n
n
a A B C
3 2
6 11 6 0
r r r
0 1 2
2, 2 3 5, 4 9 15
a A B C a A B C a A B C
36. 3.3
SOLVING
RECURRENCE
RELATION
Suppose that the roots of the characteristic equation of a
linear homogenous recurrence relation are 2, 2, 2, 5, 5, and
9. What is the form of general solution?
Thus the general solution to the recurrence relation is
Example 3.3.7: LHRRWCCs with multiple roots
Solution:
2
2
2 2 2 5 5 9
2 5 9
n n n n n n
n
n n n
a A Bn Cn D En F
A Bn Cn D En F
37. 3.3
SOLVING
RECURRENCE
RELATION
1. What is the solution of the following recurrence relation
•
•
•
2. Find an explicit formula for Fibonacci numbers.
EXERCISE 3.3.2
1 2 0 1
2 ; 2, 7
n n n
a a a a a
1 2 0 1
6 9 ; 1, 3
n n n
a a a a a
1 2 3 0 1 2
3 3 ; 1, 2, 1
n n n n
a a a a a a a
1 2 1 2
; 1, 1
n n n
F F F F F
38. 3.3
SOLVING
RECURRENCE
RELATION
• A Linear Nonhomogenous recurrence relation with constant
coefficients (LNHRRWCCs), that is a recurrence relation of the
form an = c1an-1 + c2an-2 + … + ckan-k + F (n) .
• Where
– c1, c2, …, ck are real numbers
– F (n) is a function not identically zero depending only n
– c1an-1 + c2an-2 + … + ckan-k is called the associated
homogenous recurrence relation
• Example:
Linear NonHomogenous Recurrence
Relations with constant coefficients
2
1 2 1
n n n
a a a n n
1
2 3n
n n
a a n
1
3 2
n n
a a n
39. 3.3
SOLVING
RECURRENCE
RELATION
Let
be the general solution of c1an-1 + c2an-2 + … + ckan-k
And
be the particular solution of LNHRRWCCs,
an = c1an-1 + c2an-2 + … + ckan-k + F (n)
Then the general solution of LNHRRWCCs is given by
There is no general method to find the particular solution.
Solving Linear NonHomogenous Recurrence
Relations with constant coefficients
p
n
a
h
n
a
h p
n n n
a a a
40. 3.3
SOLVING
RECURRENCE
RELATION
Suppose that {an} satisfy the linear nonhomogenous recurrence relation
And
(i)When s is not a root of the characteristic equation, there is a
particular solution of the form
(ii) When s is a root of the characteristic equation , there is a
particular solution of the form
THEOREM
1 1 1 2,...,
... ( ) where ,
n n k n k k
a c a c a F n c c c
1
1 1 0 0 1
( ) ( ... ) where , ,..., ,
t t n
t t t
F n b n b n b n b s b b b s
1
1 1 0
( ... )
t t n
t t
p n p n p n p s
1
1 1 0
( ... )
m t t n
t t
n p n p n p n p s
41. 3.3
SOLVING
RECURRENCE
RELATION
Find all the solutions of recurrence relation an = 3an-1 + 2n
1) Find the general solution of the associated linear homogenous
(ALH) equation.
• the ALH equation is given by an = 3an-1
• thus, the general solution is
2) Find the particular solution
• Since F(n) = 2n is polynomial with degree 1, then the trial
solution linear function: pn = cn + d (c and d are constant)
• The equation an = 3an-1 + 2n then become
• Solve for c and d will gives c = -1 and d = -3/2
• Thus, the particular solution is
3) Thus the unique solution to the recurrence relation is
Example 3.3.8: LNHRRWCCs
Solution:
3
h n
n
a A
3
3
2
n
n
a A n
3 1 2 0
cn d c n d n
3
2
p
n
a n
42. 3.3
SOLVING
RECURRENCE
RELATION
1. What is the solution of the following recurrence relation
•
•
2. What form does a particular solution of linear
nonhomogeneous recurrence relation
when
EXERCISE 3.3.3
2
1 2 0 1
5 6 8 ; 4, 7
n n n
a a a n a a
1 2 0 1
5 6 7 ; 4, 7
n
n n n
a a a a a
1 2
6 9
n n n
a a a F n
2
2
3 , 3 , 2
4 1 3 , 1 3
n n n
n n
F n F n n F n n
F n n F n n