Professional Documents
Culture Documents
Lect5 Long
Lect5 Long
DISCRETE MATHEMATICS
LECTURE 5
¡ The sequence {bn}, where bn = (−1)n with initial term and common ratio equal to 1 and −1
b0, b1, b2, b3, b4, . . . à 1,−1, 1,−1, 1, . . .
¡ The sequence {cn}, where cn = 2 5n, with initial term and common ratio equal to 2 and 5
c0, c1, c2, c3, c4, . . . à 2, 10, 50, 250, 1250, . . .
¡ The sequence {dn}, where dn = 6 (1/3)n ,with initial term and common ratio equal to 6 and 1/3
d0, d1, d2, d3, d4, . . . à 6, 2, 2/3, 2/9, 2/27, . . .
SEQUENCES
¡ The sequence {sn} where sn = −1 + 4n, with initial terms and common differences equal to −1 and 4
s0, s1, s2, s3, . . . à −1, 3, 7, 11, . . .
¡ The sequence {tn} where tn = 7 − 3n, with initial terms and common differences equal to 7 and −3
t0, t1, t2, t3, . . . à 7, 4, 1,−2, . . . .
RECURRENCE RELATION
¡ {an}: a sequence that satisfies the recurrence relation an = an−1 − an−2 for n =2, 3, 4, . . .
¡ If a0 = 3 and a1 = 5; (Initial conditions)
¡ a2 = a1 − a0 = 5 − 3 = 2
¡ a3 = a2 −a1 = 2 − 5 = −3
RECURRENCE RELATION
¡ the recurrence relation an = nan−1 together with the initial condition a1 = 1 (the
closed formula)
RECURRENCE RELATIONS
¡ an= an -1+ 3, a0 = 2
¡ a1 = 2 + 3
¡ a2= (2 + 3) + 3 = 2 + 3 X 2
¡ a3 = (2 + 2 X 3) + 3 = 2 + 3 X 3
¡ an = an -1+ 3 = (2 + 3 X (n − 1)) + 3 = 2 + 3n
RECURRENCE RELATION
an = an−1 + 3 for n = 1, 2, 3, . . . ,
Initial condition: a1=2
¡ The recurrence relation in the definition is linear because the right-hand side is a sum of previous terms
of the sequence each multiplied by a function of n
¡ The recurrence relation is homogeneous because no terms occur that are not multiples of the aj s
¡ The coefficients of the terms of the sequence are all constants, rather than functions that depend on n
¡ The degree is k because an is expressed in terms of the previous k terms of the sequence
LINEAR HOMOGENEOUS RECURRENCE RELATION
¡ The recurrence relation Pn = (1.11)Pn−1 is a linear homogeneous recurrence relation of degree one
¡ The recurrence relation fn = fn-1 + fn-2 is a linear homogeneous recurrence relation of degree two
¡ The recurrence relation an = an−5 is a linear homogeneous recurrence relation of degree five
¡ The basic approach for solving linear homogeneous recurrence relations is to look for solutions of the
form
¡ an = rn, where r is a constant
¡ an = rn is a solution of the recurrence relation an = c1an−1 + c2an−2 +· · ·+ckan−k if and only if
rn = c1rn-1 + c2rn-2 +· · ·+ckrn-k
rk − c1rk-1 − c2 rk-2 −· · ·− ck-1 r-ck = 0
¡ Consequently,
¡ the sequence {an} with an = rn is a solution if and only if r is a solution of the above equation (characteristic
equation of the recurrence relation)
¡ characteristic roots: the solutions of the characteristic equation of the recurrence relation
RECURRENCE RELATIONS
The solution of the recurrence relation an = 6an−1 − 9an−2 with initial conditions a0 = 1 and a1 = 6?
SUMMATION
¡ lower limit: m
¡ upper limit: n
SUMMATION
SUMMATION
Double summation
¡ An infinite set is countable if and only if it is possible to list the elements of the set in a sequence
(indexed by the positive integers)
¡ A one-to-one correspondence f from the set of positive integers to a set S can be expressed in terms of
a sequence a1, a2, . . . , an, . . . , where
a1 = f (1), a2 = f (2), . . . , an = f (n), . . . .
COUNTABLE SETS
¡ The set of all integers is countable The set of positive rational numbers is countable