Recurrence Relations DM
Recurrence Relations DM
RELATIONS AND
GENERATING FUNCTIONS 8
NNumber sequences
Some
sequence.
Types of sequences
Arithmetic Sequences
The
sequence is uniquely determined once the initial term
Od he constant d are known i.e we have the arithmetic
Sequence
40 a0 t d, an +2 d,..,ap +n d,...
Inthe
case of an
arithmetic we have the rule
sequence,
ana,-+d,(n 1)
andthe
general term
is
4,= an +nd,(n
20).
|277
ADVANCED DISCRETE AND
MATHEMAT RELATIONS GENERATING
ATICS FUNCTIONS
RECURRENCE 279
278
3.
OObtain the arithmetic sequence
sequences for an=0, d=1.
Geometric every termis a constant Erample
In geometric
sequences, muliple of
Given ag
=0,
Solution.
the previous
term.
is uniquely
determined once the initial
d= 1
sequence we term
The i.e have the
specificd the arithmetic sequence
constantr are
with
ao and geometric Since initial term ao and
given by
sequence
a.r ag. r a . we have the mle
constant
d is
ag
0.0+
a0 t a. ag + 2 d,., t nd...a206128 240
Or 0. 1,2,..... n,...
4, = a9 (n20). numbers.
counting
is the required arithmetic sequence i.e a sequence of odd 1.2 (1),2 ()...*(),....
positive integers.
i.e 1,2. 2...2".
Example 2. Obrain the arithmetic sequence for an 4, d =0. = This is the sequence of non negative integral powers of 2.
MATHEMATIC
k=0
r-1
(n+1) a (r=1)
Question 1. Define Fibonacci sequence.
Solution. The Fibonacci sequence fis defined by
fo =0.f =1
and
Linear Homogeneous
Recurrence Relations
Question 3. Define linear homogeneous
recurrence relatio
Solution. A recurrence relation
of the form
equation is
f-72+6k3=0
Its characteristic
-7x+ 6) =0
t-6x+9x=0 Or
k-
-6x +9)=0 Or
-7x+6=0
Or
one of its root.
-6x+9=0 By inspection x=I is
Or
Or
=0
(r-3) (x -3) Or (r-)«+x- 6) = 0
=0
Or x=3,3. Or (r- 1)(x+ 3)(x-2)
4,=cj 3"+n
c3 Or X=1,2, -3.
3
..(1)
= (1) +c(2)"+g (-3)"
4,=(c+C,n)
Or a, cj
is
we have general solution
Now ap = 1, from (1), Thus the
(-3)".
= c|(1)"+ c, (2) +
0= + (c; 0c,) 3 a,
Example 7. Solve the
recurrence relation
Or
a,-3(n23)
from (1)we have a, =2a- tan-2-2
when a, =9, then
to the initial values
4 =(c, tcy-l) 3
subject
a, = (1)+-1) +; (2)"
Now 2+eg-=!
1 2
...2)
Or
,=l+ -2=
2 1
(|+g-l)' +2'=2
...3)
which is the required solution of the given recurrence
Also a=0 relation.
channel
n, using only the three
subject to
are to befansmitted
C1 t)t4 c3 =0 ..(4)
in which two a'sappear consecutively
lhe condifiorthat no word
Adding (3)and (4), we get Soidtion. Let a, denote the number of allowed words of length
2cj +6c3 =2
Or +3 cq= 1
....6) Clearly an =1(theempty word)
and
Subtracting (5) and (6), we get a=3.
Let n
2 c +3C3=3 2.
can be
If the then the word
first letter of the word is b or C,
C1
=2
Ce nuting the ValuesS OT Cj and C in (1), we get
2+V3P1+v3y"-2+V3
2V3 2V3 (1-vy"
Fromble 9.
Solve the recurrence relation a, = 4 a,,
(n>2)
t iniial values ao =0and a,= 1
Or
iie the recurrence relation h,, =4 h,-9,(n 22) with initial
of the given
The characteristic equation recurrence 1
is
relation 4
*-4=0 1
Or *²-4) = 0 1
=c (2)°+
40 z(-2) Example I10. Solve the recurrence relation
a,-3ah-2+2 an-3=0, (n 2 3)
aj=c (2)' +cz-2)!
The characteristic equation is
1=2c-2c)
i.e
2c-2 c,=1
t-3+2 =0
..3)
Or 3 -3x+2) =0
Solving (2) and (3) i.e multiplying (2) by 2 and adding
(3), we have
to
Or -3x+2=0
2 c1 -2c=1 Or (r-1) (+I-2)= 0
2c +2c, =0 Or (I- 1) («+2) (x-I)=0
Or x=1,1,- 2.
4 C = 1
..(1)
4,=(G + c, n)(1)"+c(-2y
which is the general solution.
RELATIONS AND
ADVANCED GENERATING
292 DISCRETE RECURRENCE FUNCTIONS
293
MATHEMATICS
= lin (2), we get
Now an = l, so we have Put C
ag =ley c (0)](1)+c(-2)0
8
1=ct3
ie t=I ..2)
Now puting the values of c and c, in (3), we get
Again a,=0, so we have
+-26J=0
aj=(e +; (1)](1)' +<3(-2)'
i.e
C| +2c t+ 4 cz =0 ...4) a, = ap-t2an-2
Solving (3) and (4) i.e multiplying (3)by 2 and subtracting with a,=2 and a =7?
from (4), we get Solution. Given the recurrencerelation is
C|+2 c, +4 cy
=0
C+2C -4cz =0 Then characteristic equation is
Subtracting
+
t--22=0
-C;+ 8 c3 =0
Or o-x-2) = 0
Adding (2) and (5), we get
Or -x-2=0
-C +8C=0 Or (x-2) (*+ 1)=0
Or x=2,-1.
C;+ C3=1
Adding The general solution is
..(1)
9 cz =1 a,=c; (2)" c-1
+
tor some constants C and C2
RELA TIONS AND GENERATING FUNCTIONs 295
ADVANCED DISCRETE
MATHEMATICS RECURRENCE
294
that
1±Vl+4
conditions.
it follows i.e
a=2, 2
From the initial
we have
1+V5
2 2
i.e
7=2c -2 we have
these constants,
..3)
i.e 2c-=7 (1+V5 (1-s
Adding (2)and (3), we have 2
2c -C)=7 ...(1)
ie
3c1 =9
2
C =3
Put c =3in (2), we get (1+5
2
3+c,=2
..2)
i.e
i.e
i.e C;t©q=2
V5
Since C; = 1, so
we have
Hence the Fibonacci numbers are given by
is given
Hence the required solutionof the recurrence
relation
a, =6 a- -9a,-2
by
with initial conditions an = and a,=6?
l
Or (-3)'=0 a,=6a--1la2+6a-3
Or x=3,3. The characteristic equation is
.. the general
4=c
sol is given by
-4x-11x+ 30 = 0
4-2n
+3Dx0
K3
a= Or (r-2) (r - 5)(*+3) = 0
2=c1 t+3 Or x=2,5, -3.
is
ie ..2) Therefore general solution
2c+5c-3 c=-35
..3)
Solving (2), (3) and (4) for cj ,cand c3 We get ie
C =1, C=-5and c = 4.
(2)"+(-5)(5
a, =(1) +(4)(-3)"
Or = a, 2"- 5-5" +4 (-3)"
of the
distinct roots
Theoren 2. Let 91 92g.., q, be the
recurrE
characteristic equation ofthe linear homogeneous
relation with constant coefficients
=C a-1te2 n-2totC ak