22c:19 discrete math sequence and sums fall 2011 sukumar ghosh

35
22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Upload: lila-childers

Post on 15-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

22C:19 Discrete MathSequence and Sums

Fall 2011Sukumar Ghosh

Page 2: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

SequenceA sequence is an ordered list of elements.

Page 3: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Examples of Sequence

Page 4: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Examples of Sequence

Page 5: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Examples of Sequence

Not all sequences are arithmetic or geometric sequences.An example is Fibonacci sequence

Page 6: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Examples of Sequence

Page 7: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

More on Fibonacci Sequence

Page 8: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Examples of Golden Ratio

Page 9: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sequence Formula

Page 10: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sequence Formula

Page 11: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Some useful sequences

Page 12: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Summation

Page 13: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Evaluating sequences

Page 14: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Arithmetic Series

Consider an arithmetic series a1, a2, a3, …, an. If the common

difference (ai+1 - a1) = d, then we can compute the kth term ak

as follows:

a2 = a1 + d

a3 = a2 + d = a1 +2 d

a4 = a3 + d = a1 + 3d

ak = a1 + (k-1).d

Page 15: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Evaluating sequences

Page 16: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sum of arithmetic series

Page 17: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Solve this

Calculate 12 + 22 + 32+ 42 + … + n2

[Answer n.(n+1).(2n+1) / 6]

1 + 2 + 3 + … + n = ?

[Answer: n.(n+1) / 2] why?

Page 18: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Can you evaluate this?

Here is the trick. Note that

Does it help?

Page 19: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Double Summation

Page 20: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sum of geometric series

Page 21: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sum of infinite geometric series

Page 22: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Solve the following

Page 23: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sum of harmonic series

Page 24: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Sum of harmonic series

Page 25: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Book stacking example

Page 26: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Book stacking example

Page 27: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Useful summation formulae

See page 157 of Rosen Volume 6

orSee page 166 of Rosen Volume

7

Page 28: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Products

Page 29: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Dealing with Products

Page 30: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Factorial

Page 31: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Factorial

Page 32: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Stirling’s formula

A few steps are omitted here

Here ~ means that the ratio of the two sides approaches 1 as n approaches ∞

Page 33: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Countable sets

Cardinality measures the number of elements in a set.

DEF. Two sets A and B have the same cardinality, if and only if there is a one-to-one correspondence from A to B.

Can we extend this to infinite sets?

DEF. A set that is either finite or has the same cardinality as the set of positive integers is called a countable set.

Page 34: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Countable sets

Example. Show that the set of odd positive integers is countable.

f(n) = 2n-1 (n=1 means f(n) = 1, n=2 means f(n) = 3 and so on)

Thus f : Z+ {the set of of odd positive integers}.

So it is a countable set.

The cardinality of an infinite countable set is denoted by

(called aleph null)

Page 35: 22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh

Countable sets

Theorem. The set of rational numbers is countable.

Why? (See page 173 of the textbook)

Theorem. The set of real numbers is not countable.

Why? (See page 173-174 of the textbook).