Recurrence Relation Guest Lecture
Recurrence Relation Guest Lecture
Recurrence Relations
R S Selvaraj
Department of Mathematics
NIT Warangal
for
II B.Tech. CSE
of
VNRVJIET
21 & 22.10.2016
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
2 Recurrence Relations
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
2 Recurrence Relations
3 Generating Functions of sequences
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
2 Recurrence Relations
3 Generating Functions of sequences
4 Solving Recurrence Relations
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
2 Recurrence Relations
3 Generating Functions of sequences
4 Solving Recurrence Relations
by Generating Functions
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Presentation Overview
1 Sequences
2 Recurrence Relations
3 Generating Functions of sequences
4 Solving Recurrence Relations
by Generating Functions
by the Method of Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Definition
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Definition
or
can be listed as f0 , f1 , f2 , . . .
or
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Definition
or
can be listed as f0 , f1 , f2 , . . .
or
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Examples
1 1 1
Here the sequence is 1, , , , . . .
2 3 4
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Examples
1 1 1
Here the sequence is 1, , , , . . .
2 3 4
Consider the sequence {an } where an = 3n :
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Examples
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Examples
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Sequences - Examples
1, 1, 2, 3, 5, 8, 13, . . .
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
1 1 1
1, , , , . . .
2 3 4
CAN you construct a Recurrence relation on an ?
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
1 1 1
1, , , , . . .
2 3 4
CAN you construct a Recurrence relation on an ?
(n−1)an−1
Here, it must be an = n
, n ≥ 2 with a1 = 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
1 1 1
1, , , , . . .
2 3 4
CAN you construct a Recurrence relation on an ?
(n−1)an−1
Here, it must be an = n
, n ≥ 2 with a1 = 1
Now, consider a sequence
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
1 1 1
1, , , , . . .
2 3 4
CAN you construct a Recurrence relation on an ?
(n−1)an−1
Here, it must be an = n
, n ≥ 2 with a1 = 1
Now, consider a sequence
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 2
an − 2an−1 an−2 = n2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 3
an − nan−1 − 3an−2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
RR Example - 4
an = an−1 + an−2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Towers of Hanoi
There are 3 pegs: X, Y, Z and n circular disks of increasing diameter
on one peg X, with the largest disk on the bottom.
These disks are to be transferred onto peg Z using Y as an auxiliary or
intermediary peg such that
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Towers of Hanoi
There are 3 pegs: X, Y, Z and n circular disks of increasing diameter
on one peg X, with the largest disk on the bottom.
These disks are to be transferred onto peg Z using Y as an auxiliary or
intermediary peg such that
only one disk can be moved at a time
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Towers of Hanoi
There are 3 pegs: X, Y, Z and n circular disks of increasing diameter
on one peg X, with the largest disk on the bottom.
These disks are to be transferred onto peg Z using Y as an auxiliary or
intermediary peg such that
only one disk can be moved at a time
no disk can be placed on the top of a smaller disk
Determine the number of moves needed.
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Consider top n − 1 disks on peg X and move to peg Y using Z
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Consider top n − 1 disks on peg X and move to peg Y using Z
It takes an−1 moves to transfer the top n − 1 disks to Y using Z
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Consider top n − 1 disks on peg X and move to peg Y using Z
It takes an−1 moves to transfer the top n − 1 disks to Y using Z
Now, only the largest disk is left in peg X; move it to Z; so 1
move
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Consider top n − 1 disks on peg X and move to peg Y using Z
It takes an−1 moves to transfer the top n − 1 disks to Y using Z
Now, only the largest disk is left in peg X; move it to Z; so 1
move
Now, transfer the n − 1 disks in Y to Z using X in an−1 moves.
JOB DONE!
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of moves needed to move from peg X
to peg Z using peg Y
Clearly, a1 = 1
Assume n ≥ 2
Consider top n − 1 disks on peg X and move to peg Y using Z
It takes an−1 moves to transfer the top n − 1 disks to Y using Z
Now, only the largest disk is left in peg X; move it to Z; so 1
move
Now, transfer the n − 1 disks in Y to Z using X in an−1 moves.
JOB DONE!
Total number of moves is
an = an−1 + 1 + an−1 = 2an−1 + 1, n ≥ 2 with a1 = 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
For example,
For example,
For example,
Solution
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of valid expressions of length n.
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution
Let an denote the number of valid expressions of length n.
Then
an = 10an−1 + 40an−2 , n ≥ 2, a0 = 0; a1 = 10
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
an = an−1 + 3
= [an−2 + 3] + 3 = an−2 + 2(3)
= [an−3 + 3] + 2(3) = an−3 + 3(3)
.
= ..
= an−(n−1) + (n − 1)(3) = a1 + (n − 1)(3)
= 2 + (n − 1)3 = 3n − 1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
G(x) = 30 + 31 x + 32 x2 + 33 x3 + . . .
= 1 + 3x + (3x)2 + (3x)3 . . .
= (1 − 3x)−1
1
=
1 − 3x
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
G(x) = a0 + a1 x + a2 x2 + a3 x3 + . . .
= a0 + 2a0 x + 22 a0 x2 + 23 a0 x3 + . . .
= a0 (1 + 2x + (2x)2 + (2x)3 . . .)
1
= a0
1 − 2x
5
=
1 − 2x
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X
n
an x = 2an−1 xn (put m = n − 1)
n=1 n=1
∞
X ∞
X
m+1
G(x) − a0 = 2 am x = 2x am xm = 2xG(x)
m=0 m=0
G(x) − 2xG(x) = a0
5
G(x) =
1 − 2x
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
fn x n − fn−1 xn − fn−2 xn = 0
n=2 n=2 n=2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
fn x n − fn−1 xn − fn−2 xn = 0
n=2 n=2 n=2
∞
X ∞
X ∞
X
( fn xn − f0 − f1 x) − x fn−1 xn−1 − x2 fn−2 xn−2 = 0
n=0 n=2 n=2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
fn x n − fn−1 xn − fn−2 xn = 0
n=2 n=2 n=2
∞
X ∞
X ∞
X
( fn xn − f0 − f1 x) − x fn−1 xn−1 − x2 fn−2 xn−2 = 0
n=0 n=2 n=2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
fn x n − fn−1 xn − fn−2 xn = 0
n=2 n=2 n=2
∞
X ∞
X ∞
X
( fn xn − f0 − f1 x) − x fn−1 xn−1 − x2 fn−2 xn−2 = 0
n=0 n=2 n=2
1
G(x) =
1 − x − x2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
n n
an+2 x − an+1 x − 6 an xn = 0
n=0 n=0 n=0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
n n
an+2 x − an+1 x − 6 an xn = 0
n=0 n=0 n=0
∞ ∞
1 X n+2 1X
an+2 x − an+1 xn+1 − 6G(x) = 0
x2 n=0
x n=0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
n n
an+2 x − an+1 x − 6 an xn = 0
n=0 n=0 n=0
∞ ∞
1 X n+2 1X
an+2 x − an+1 xn+1 − 6G(x) = 0
x2 n=0
x n=0
1 1
(G(x) − a0 − a1 x) − (G(x) − a0 ) − 6G(x) = 0
x2 x
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
∞
X ∞
X ∞
X
n n
an+2 x − an+1 x − 6 an xn = 0
n=0 n=0 n=0
∞ ∞
1 X n+2 1X
an+2 x − an+1 xn+1 − 6G(x) = 0
x2 n=0
x n=0
1 1
(G(x) − a0 − a1 x) − (G(x) − a0 ) − 6G(x) = 0
x2 x
2−x
G(x) =
1 − x − 6x2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution continued...
2−x 2−x
G(x) = =
1−x− 6x2 (1 − 3x)(1 + 2x)
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution continued...
2−x 2−x
G(x) = =
1−x− 6x2 (1 − 3x)(1 + 2x)
Split G(x) into partial fractions
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution continued...
2−x 2−x
G(x) = =
1−x− 6x2 (1 − 3x)(1 + 2x)
Split G(x) into partial fractions
1 1
G(x) = +
1 − 3x 1 + 2x
= (1 − 3x) + (1 + 2x)−1
−1
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution continued...
2−x 2−x
G(x) = =
1−x− 6x2 (1 − 3x)(1 + 2x)
Split G(x) into partial fractions
1 1
G(x) = +
1 − 3x 1 + 2x
= (1 − 3x) + (1 + 2x)−1
−1
P∞
Recall that G(x) = n=0 an xn
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Solution continued...
2−x 2−x
G(x) = =
1−x− 6x2 (1 − 3x)(1 + 2x)
Split G(x) into partial fractions
1 1
G(x) = +
1 − 3x 1 + 2x
= (1 − 3x) + (1 + 2x)−1
−1
P∞
Recall that G(x) = n=0 an xn
Therefore, an = Coefficient of xn in G(x) = 3n + (−1)n 2n
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Theorem
General solution is given by an = SH + PSINH
where SH = general solution of Homogeneous LRR
and PSINH = a particular solution of INhomogeneousLRR.
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Characteristic Equation
The Characteristic Equation of the above LRR is given by
c0 αk + c1 αk−1 + c2 αk−2 + . . . + ck = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
SH = (A1 nm−1 +A2 nm−2 +. . .+Am )αn1 +Am+1 αnm+1 +. . .+Ak αnk
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
SH = (A1 nm−1 +A2 nm−2 +. . .+Am )αn1 +Am+1 αnm+1 +. . .+Ak αnk
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
7
You will get P0 = 1; P1 = 18
;
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
7
You will get P0 = 1; P1 = 18
;
Hence, the general solution is
7 2
an = (A1 n + A2 )3n + 2n + 18
n − 3n
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
7
You will get P0 = 1; P1 = 18
;
Hence, the general solution is
7 2
an = (A1 n + A2 )3n + 2n + 18 n − 3n
NOW, use the initial conditions to find A1 and A2
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
7
You will get P0 = 1; P1 = 18
;
Hence, the general solution is
7 2
an = (A1 n + A2 )3n + 2n + 18 n − 3n
NOW, use the initial conditions to find A1 and A2
5
A1 = 18
, A2 = 0
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Problems
5. Solve an+2 − 6an+1 + 9an = 3(2)n + 7(3)n , n ≥ 0, with
initial conditions a0 = 1, a1 = 4
Char. Eqn. is α2 − 6α + 9 = 0; the 2 roots are: 3&3
General Homog. Solution SH = (A1 n + A2 )3n
Let APS an = P0 2n + P1 n2 3n
Substitute this APS in the given INhomog. LRR; Get Pi ’s;
7
You will get P0 = 1; P1 = 18
;
Hence, the general solution is
7 2
an = (A1 n + A2 )3n + 2n + 18 n − 3n
NOW, use the initial conditions to find A1 and A2
5
A1 = 18
, A2 = 0
Hence, THE solution is
5 7 2
an = 18 n3n + 2n + 18
n − 3n
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
References
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
References
Recurrence Relations
Overview Sequences & Recurrence Relations Solving RRs by Generating Functions Solving RRs by Characteristic Roots
Recurrence Relations