• No results found

Sequences and Summations (series).pptx

N/A
N/A
Protected

Academic year: 2020

Share "Sequences and Summations (series).pptx"

Copied!
35
0
0

Loading.... (view fulltext now)

Full text

(1)

Sequences and Summations

Sequences are special functions

Summations are the sums of the

(2)

Sequences

A sequence is a discrete structure that is used to

represent an ordered list.

In simplistic terms, it is a special function from a

subset of the set integers (usually

N

= {0,1,2,…} or

Z

+

= {1,2,3,…}) to a set S. We use the notation

a

n

to denote the image of the integer

n

. We call

a

n

a

term

of the sequence.

When a sequence goes on forever it is an

infinite

sequence

, otherwise it is

finite

.

(3)

Examples of sequences

{1, 2, 3, 4, ...} is a very simple sequence (and it is an

infinite sequence

)

{20, 25, 30, 35, ...} is also an infinite sequence

{1, 3, 5, 7} is the sequence of the first 4 odd

numbers (and is a

finite sequence

)

{6,5, 4, 3, 2, 1} is 6 to 1

backwards

We use the notation {

a

n

} to describe the sequence.

(Note that

a

n

represents an individual term of the

sequence {

a

n

}.

(4)

A sequence is just like a set except that the

terms are in order; i.e. they follow a certain

pattern usually defined by a formula.

Also the same value can appear many times

but only once in a set.

Example: {0, 1, 0, 1, 0, 1, ...} is the

sequence

of

alternating 0s and 1s.

The

set

is just {0,1}

(5)

Notation

It uses the same notation just as sets; e.g. {a, b, c,

d}.

Usually there is a common rule within sequences

that helps to find the

nth term

.

The notation {a

n

} usually describes a sequence.

Other letters such as

i, k, j

etc. are also used to

denote the index of a sequence

Thus the terms of a sequence can be designated as

{

a

0

,

a

1

,

a

2

,

a

3

,

a

4

,

a

5

...} or {

a

1

,

a

2

,

a

3

,

a

4

,

a

5

...} etc.

(6)

6

Sequence examples

a

n

= 3

n

– The terms in the sequence are a1, a2, a3, …

– The sequence {an} is { 3, 6, 9, 12, … }

b

n

= 2

n

– The terms in the sequence are b1, b2, b3, …

(7)

Summations

These are simply the sums of the terms of a

sequence. Some people call them series

instead of summations.

(8)

Sequences and Series

Summation Notation

The sum of the first n terms of a sequence is written as

is like a for loop:

int sum = 0;

for ( int k = 1; k <= n; k++ ) sum += a(k);

n

k

k

n

a

a

...

a

a

a

1 3

(9)

Sequences and Series

An infinite series is the sum of the numbers in an infinite sequence.

 

1 3

1 2

k

k

n

...

a

a

...

a

a

(10)

Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 10

Consider the infinite sequence

a

1

,

a

2

,

a

3

, . . .,

a

i

, . . ..

1. The sum of the first

n

terms of the sequence is called

a finite series or the partial sum of the sequence.

a

1

+

a

2

+

a

3

+

. . .

+

a

n

2. The sum of all the terms of the infinite sequence is

called an infinite series.

a

1

+

a

2

+

a

3

+

. . .

+

a

i

+

. . .

1

n

i i

a

1

i i

a

(11)

Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 11

The sum of the first

n

terms of a sequence is

represented by

summation notation

.

index of summation

upper limit of summation

lower limit of summation

1 2 3 4 1

n

i n

i

a

a

a

a

a

a

     

5

1

1

i

n

(1

1

)

(1

2

)

(1

3

)

(1

4

)

(1

5

)

2

3

4

5

6

(12)

Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 12

Example

: Find the fourth partial sum of

 

1

1

5

.

2

i i  

         

1 2 3 4 4

1

1

1

1

1

1

5

5

5

5

5

2

2

2

2

2

i

i

   

1

1

   

1

1

5

5

5

5

2

4

8

16

5 5 5

5

2 4 8 16

   

40 20 10

5

75

16 16 16 16 16

(13)

Sequences and Series

Arithmetic Sequence or Arithmetic Progression (AP)

A sequence is arithmetic if the difference between consecutive terms is always a constant.

d is the constant common difference of the series.

d

...

a

a

a

a

a

(14)

Arithmetic sequences

For example, the sequence:

8, 11, 14, 17, 20, …

is an arithmetic sequence with 3 as the common difference.

We could write this sequence as:

8, 8 + 3, 8 + 3 + 3, 8 + 3 + 3 + 3, 8 + 3 + 3 + 3 + 3, …

or

(15)

Arithmetic sequences

If we call the first term of an arithmetic sequence a and the common difference d we can write a general arithmetic

sequence as:

a, a + d, a + 2d, a + 3d, a + 4d, …

Also:

The nth term of an arithmetic sequence with first

term a and common difference d is

a + (n – 1)d

The inductive definition of an arithmetic sequence with first term a and common difference d is

(16)

Arithmetic sequences

This is an arithmetic sequence with first term a = 10 and common difference d = –3.

The nth term is given by a + (n – 1)d so:

un = 10 – 3(n – 1) = 10 – 3n + 3 = 13 – 3n

u1 = 13 – 3 × 1 = 10

u3 = 13 – 3 × 3 = 4

u2 = 13 – 3 × 2 = 7

Let’s check this formula for the first few terms in the sequence: What is the formula for the nth term of the

(17)

Arithmetic sequences

This is an arithmetic sequence with first term a = –7 and common difference d = 6.

The nth term is given by a + (n – 1)d so:

un = –7 + 6(n – 1) = –7 + 6n – 6 = 6n – 13

We can find the value of n for the last term by solving: 6n – 13 = 71

6n = 84

n = 14

So, there are 14 terms in the sequence.

(18)

Arithmetic sequences

Using the 4th term: a + 3d = 12

Using the 20th term: a + 19d = 92

Subtracting the first equation from the second equation gives: 16d = 80

d = 5 Substitute this into the first equation:

a + 15 = 12

a = –3

The nth term of an arithmetic sequence with a = –3 and d = 5 is:

un = –3 + 5(n –1) = –3 + 5n – 5 = 5n – 8

The 4th term in an arithmetic sequence is 12 and the 20th term

(19)

Series

The sum of all the terms of a sequence is called a series.

1, 3, 5, 7, 9, … is a sequence

while: 1 + 3 + 5 + 7 + 9 + … is a series. For example:

When the difference between each term in a series is constant, as in this example, the series is called an arithmetic series or

arithmetic progression (AP for short).

The sum of a series containing n terms is often denoted by Sn, so for the series given above we could write:

S5 = 1 + 3 + 5 + 7 + 9 = 25

(20)

Gauss’ method

It is said that when the famous mathematician Karl Friedrich Gauss was a young boy at school, his teacher asked the class to add together every whole number from one to a hundred.

(21)

Gauss’ method

Gauss worked the answer out by noticing that you can quickly add together consecutive numbers by writing the numbers

once in order and once in reverse order and adding them together.

So to add the numbers from 1 to 100:

101 + 101 + 101 + 101 + 101 + … + 101 + 101 + 101 1 + 2 + 3 + 4 + 5 + … + 98 + 99 + 100

S =

100 + 99 + 98 + 97 + 96 + … + 3 + 2 + 1

S = 2S =

So: 2S = 100 × 101 = 10 100

(22)

The sum of the first

n

natural numbers

To find the sum of the first n natural numbers we can generalize Gauss’ method as follows.

Write the sum of the first n natural numbers as:

1 + 2 + 3 + … + (n – 2) + (n –1) + n S =

n + (n –1) + (n – 2) + … + 3 + 2 + 1

S =

(n + 1) + (n + 1) + (n + 1) + … + (n + 1) + (n + 1) + (n + 1) 2S =

This gives us:

2S = n(n + 1) So:

The sum of the first n natural numbers is given by

1

(23)

The sum of the first

n

natural numbers

What is the sum of the first 30 natural numbers? 1 + 2 + 3 + … + 30 =

= 465

What is the sum of the natural numbers from 21 to 30?

21 + 22 + 23 + … + 30 = (1 + 2 + … + 30) – (1 + 2 + … + 20)

= 465 – 210

= 255

1

2 × 30 × 31

1 2

(24)

The sum of an arithmetic series

Gauss’ method can be applied to any arithmetic series of the general form

a + (a + d) + (a + 2d) + (a +3d) + … + (a + (n – 1)d) where a is the first term in the series, d is the common difference and n is the number of terms.

Let’s call the last term l so that:

l = (a + (n – 1)d)

The sum of the first n terms can now be written as:

(a + l) + (a + l) +

a + + + … + (l – 2d) + (ld) + l Sn = (a + d) (a + 2d)

l + + + … +(a + 2d)+ (a + d) + a Sn = (ld) (l – 2d)

(25)

The sum of an arithmetic series

This gives us: 2Sn = n(a + l) So:

The sum of the first n terms in an arithmetic series is

where a is the first term and l is the last.

If the last term is not known this formula can be written in terms of a and n by substituting (a + (n – 1)d) for l in the above.

An alternative formula for the sum of an arithmetic series is then:

= ( + ) 2

n

n

S a l

= (2 + ( 1) ) 2

n

n

(26)

Find the sum of the first 20 terms of the arithmetic series 5 + 11 + 17 + 23 + …

The sum of an arithmetic series

We don’t know the last term so we can use:

with a = 5, d = 6 and n = 20.

S20 = 10(10 + 114) = 1240

= (2 + ( 1) ) 2

n

n

S a nd

20

20

= (2 × 5 +19 × 6) 2

(27)

Using

Σ

notation

For example, suppose we want to find the sum of the first 4 terms of the series whose nth term is of the form 3n – 1.

We can write:

The initial value of r doesn’t have to be 1. For example:

(3 × 1 – 1) + (3 × 2 – 1) + (3 × 3 – 1) + (3 × 4 – 1)

= 2 + 5 + 8 + 11

32 + 42 + 52 + 62 + 72 + 82

Infinite series are given by writing an ∞ symbol above the

Σ

. For example:

4

= 1

3 1 =

r r

8 2 = 3 = r r

= 1 1 = +1 r r
(28)

Using

Σ

notation

Evaluate

Substituting r = 2, 3, 4, …,15 into 25 – 2r gives us the arithmetic series 21 + 19 + 17 + 15 + … + –5.

We can evaluate this by putting a = 21, l = –5 and n = 14 into the formula

So:

= 112

There are 14 terms in this sequence because both r = 2 and

r = 15 are included.

15

= 2

25 2

r

r

= ( + ) 2

n

n

S a l

14

14

= (21 + 5) 2

(29)

Examination-style question

The sum of the first 3 terms of an arithmetic series is 21 and the sum of the next three terms is 66.

a) The sum of the first 3 terms can be written as:

a) Find the value of the first term and the common difference. b) Write an expression for the nth term of the series u

n.

c) Find the sum of the first 10 terms.

a + (a + d) + (a + 2d) = 3a + 3d

a + d = 7 1

3a + 3d = 21 So

The sum of the next 3 terms can be written as: (a + 3d) + (a + 4d) + (a + 5d) = 3a + 12d

a + 4d = 22 2

(30)

Examination-style question

2 – :1 3d = 15

d = 5 a = 2

b) In general, for an arithmetic series un = a + (n – 1)d so

un = 2 + 5(n – 1) = 5n – 3

= 245

c) u10 = (5 ×10) – 3

Now using the formula with a = 2 and l = 47: = 47

10

10

= (2 + 47) 2

S

= ( + ) 2

n

n

(31)

Sequences and Series

Geometric Sequence or Geometric Progression (GP) A geometric progression is a sequence of the form

a, ar, ar2, . . . , arn, . . .

where the initial term a and the common ratio r are real numbers.

r is the common ratio of the series.

0

3 4

2 3

1

2    ...r r

a a a

a a

(32)

Geometric Series

How does:

32 ???             

1 if ) 1 ( 1 if 1 1

0 n a r

r r a ar ar n n j j

n 1 n 1 n 1 n

nth term of geometric sequence

sum of n terms of geometric sequ

a a r

a r 1

(33)

Useful Series

1.

2.

3.

4.

Fall 2002 CMSC 203 - Discrete Structures 33

(34)

34

Double summations

Like a nested for loop in C or java

Is equivalent to:

int sum = 0;

for ( int i = 1; i <= 4; i++ ) for ( int j = 1; j <= 3; j++ ) sum += i*j;



 

4

1 3

1

i j

(35)

References

Related documents

The major constraints along the value chain that contribute to grape losses were high production and transport costs, poor extension services, limited access to

Hojas con vainas estriadas, 1.7-8.5 cm de largo, comúnmente menores que los entrenudos, glabras, los márgenes membranáceos, corta a largamente pilosos hacia la porción

The Singapore facility offers an efficient training classroom and hands-on lab workstations as well as crane function/LMI training simulators, which are all designed to

The recent policy changes from a feed-in tariff to a competitive tender approach dented investor confidence in the South African renewable energy industry

Therefore for a child to establish inheritance right he or she must connected with the father by birth in a lawfully marriage; this suggests that those child who were not born

Although studies have found significant correlations between faculty-student interaction and students learning performance (He, 2013), perceptions of a positive emotional climate,

The next point deals with divergent processes: “st = div&#34; means that the predecessor process has entered the divergent state and the current process will never start. If

BMI: Body Mass Index; BODE: Body mass index, airflow Obstruction, Dyspnea and Exercise capacity; CAT: COPD Assessment Test; CCQ: Clinical COPD Questionnaire; COPD: Chronic Ob-