Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Sequences and Summations - Discrete Mathematics - Lecture Slides, Slides of Discrete Mathematics

During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Sequences, Mathematical Induction, Set of Elements, Infinite Sequence, Explicit Formula for Sequence, Summation Notation, Index of Summation, Upper Limit, Dummy Variable, Change of Variable, Product Notation

Typology: Slides

2012/2013

Uploaded on 04/27/2013

atasi
atasi 🇮🇳

4.6

(32)

136 documents

1 / 29

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Sequences and Summations
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download Sequences and Summations - Discrete Mathematics - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

1

Sequences and Summations

2

Definitions

• Sequence: an ordered list of elements

  • Like a set, but:
    • Elements can be duplicated
    • Elements are ordered

4

Sequence examples

  • a (^) n = 3 n
    • The terms in the sequence are a 1 , a 2 , a 3 , …
    • The sequence { an } is { 3, 6, 9, 12, … }
  • b (^) n = 2

n

  • The terms in the sequence are b 1 , b 2 , b 3 , …
  • The sequence { bn } is { 2, 4, 8, 16, 32, … }
  • Note that sequences are indexed from 1
  • Not in all other textbooks, though!

5

Geometric vs. arithmetic

sequences

  • The difference is in how they grow
  • Arithmetic sequences increase by a constant amount
    • a (^) n = 3 n
    • The sequence { a (^) n } is { 3, 6, 9, 12, … }
    • Each number is 3 more than the last
    • Of the form: f ( x ) = dx + a
  • Geometric sequences increase by a constant factor
    • b (^) n = 2 n
    • The sequence { b (^) n } is { 2, 4, 8, 16, 32, … }
    • Each number is twice the previous
    • Of the form: f ( x ) = ar x

7

Reproducing rabbits

• You have one pair of rabbits on an island

  • The rabbits repeat the following:
    • Get pregnant one month
    • Give birth (to another pair) the next month
  • This process repeats indefinitely (no deaths)
  • Rabbits get pregnant the month they are born

• How many rabbits are there after 10

months?

8

Reproducing rabbits

  • First month: 1 pair
    • The original pair
  • Second month: 1 pair
    • The original (and now pregnant) pair
  • Third month: 2 pairs
    • The child pair (which is pregnant) and the parent pair (recovering)
  • Fourth month: 3 pairs
    • “Grandchildren”: Children from the baby pair (now pregnant)
    • Child pair (recovering)
    • Parent pair (pregnant)
  • Fifth month: 5 pairs
    • Both the grandchildren and the parents reproduced
    • 3 pairs are pregnant (child and the two new born rabbits)

10

Reproducing rabbits

• Note the sequence:

• The Fibonacci sequence again

11

Fibonacci sequence

• Another application:

  • Fibonacci references from

http://en.wikipedia.org/wiki/Fibonacci_sequence

13

Determining the sequence formula

  • Given values in a sequence, how do you

determine the formula?

  • Steps to consider:
    • Is it an arithmetic progression (each term a constant

amount from the last)?

  • Is it a geometric progression (each term a factor of

the previous term)?

  • Does the sequence it repeat (or cycle)?
  • Does the sequence combine previous terms?
  • Are there runs of the same value?

14

Determining the sequence formula

a) 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, …

The sequence alternates 1’s and 0’s, increasing the number of 1’s and 0’s each time

b) 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, …

This sequence increases by one, but repeats all even numbers once

c) 1, 0, 2, 0, 4, 0, 8, 0, 16, 0, …

The non-0 numbers are a geometric sequence (2 n ) interspersed with zeros

d) 3, 6, 12, 24, 48, 96, 192, …

Each term is twice the previous: geometric progression

a (^) n = 3*2 n-

16

Useful sequences

• n

2

• n

3

• n

4

n

n

• n! = 1, 2, 6, 24, 120, 720, …

17

• A summation:

or

• is like a for loop:

int sum = 0;

for ( int j = m; j <= n; j++ )

sum += a(j);

Summations

=

n

j m

a j ∑ = j

n j ma

index of summation

upper limit

lower limit

19

Evaluating sequences

  • Let S = { 1, 3, 5, 7 }
  • What is Σj∈ S j
  • What is Σj∈ S j

2

2

  • 3

2

  • 5

2

  • 7

2 = 84

  • What is Σj∈ S (1/ j )
  • What is Σj∈ S 1

20

  • Sum of a geometric

series:

  • Example:

10 10 1

0

=

j

n

Summation of a geometric series

=

( 1 ) if 1

if 1 1

1

0 n a r

r r

ar a

ar

n n

j

j