• Nie Znaleziono Wyników

Introduction to sequences

N/A
N/A
Protected

Academic year: 2021

Share "Introduction to sequences"

Copied!
57
0
0

Pełen tekst

(1)

Introduction to sequences

Tomasz Lechowski Batory IB SL 9 września 2019 1 / 22

(2)

Things you need to learn to do

Give a recursive formula or general formula of a given sequence.

Find some terms of the sequence given a recursive or general formula.

(3)

Formulae for sequences

There are two predominant ways to express sequences:

using a recursive formula, and

using a general (explicit) formula.

Tomasz Lechowski Batory IB SL 9 września 2019 3 / 22

(4)

Formulae for sequences

There are two predominant ways to express sequences:

using a recursive formula, and

using a general (explicit) formula.

(5)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works). We start with two 1s and then each terms is the sum of preceding terms. So the third term is the sum of the first and the second. The fourth is the sum of the second and third and so on.

We could write this mathematically as:

F

1

= 1, F

2

= 1, F

n

= F

n−1

+ F

n−2

for n > 2

Tomasz Lechowski Batory IB SL 9 września 2019 4 / 22

(6)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works).

We start with two 1s and then each terms is the sum of preceding terms. So the third term is the sum of the first and the second. The fourth is the sum of the second and third and so on.

We could write this mathematically as:

F

1

= 1, F

2

= 1, F

n

= F

n−1

+ F

n−2

for n > 2

(7)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works). We start with two 1s and then each terms is the sum of preceding terms.

So the third term is the sum of the first and the second. The fourth is the sum of the second and third and so on.

We could write this mathematically as:

F

1

= 1, F

2

= 1, F

n

= F

n−1

+ F

n−2

for n > 2

Tomasz Lechowski Batory IB SL 9 września 2019 4 / 22

(8)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works). We start with two 1s and then each terms is the sum of preceding terms. So the third term is the sum of the first and the second.

The fourth is the sum of the second and third and so on.

We could write this mathematically as:

F

1

= 1, F

2

= 1, F

n

= F

n−1

+ F

n−2

for n > 2

(9)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works). We start with two 1s and then each terms is the sum of preceding terms. So the third term is the sum of the first and the second. The fourth is the sum of the second and third and so on.

We could write this mathematically as:

F

1

= 1, F

2

= 1, F

n

= F

n−1

+ F

n−2

for n > 2

Tomasz Lechowski Batory IB SL 9 września 2019 4 / 22

(10)

Recursive formula

A famous sequence defined recursively is the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, 21, ...

You may notice that this sequence works as follows. (If you haven’t seen it before, try to figure out how it works). We start with two 1s and then each terms is the sum of preceding terms. So the third term is the sum of the first and the second. The fourth is the sum of the second and third and so on.

We could write this mathematically as:

(11)

Recursive formula

Consider the following sequence:

7, 9, 11, 13, 15, ...

Can you think of recursive formula for this sequence? The first term is 7 and then to get to the next term we add 2 to the preceding one, so we can write this mathematically as:

a

1

= 7, a

n

= a

n−1

+ 2 for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 5 / 22

(12)

Recursive formula

Consider the following sequence:

7, 9, 11, 13, 15, ...

Can you think of recursive formula for this sequence?

The first term is 7 and then to get to the next term we add 2 to the preceding one, so we can write this mathematically as:

a

1

= 7, a

n

= a

n−1

+ 2 for n > 1

(13)

Recursive formula

Consider the following sequence:

7, 9, 11, 13, 15, ...

Can you think of recursive formula for this sequence? The first term is 7 and then to get to the next term we add 2 to the preceding one, so we can write this mathematically as:

a

1

= 7, a

n

= a

n−1

+ 2 for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 5 / 22

(14)

Recursive formula

Consider the following sequence:

7, 9, 11, 13, 15, ...

Can you think of recursive formula for this sequence? The first term is 7 and then to get to the next term we add 2 to the preceding one, so we can write this mathematically as:

a

1

= 7, a

n

= a

n−1

+ 2 for n > 1

(15)

Recursive formula

Let’s take a look at another sequence:

2, 6, 18, 54, 162, ...

Can you think of recursive formula for this one? The first term is 2 and then to get to the next term we multiply the previous one by 3, so we can write this mathematically as:

b

1

= 2, b

n

= 3 × b

n−1

for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 6 / 22

(16)

Recursive formula

Let’s take a look at another sequence:

2, 6, 18, 54, 162, ...

Can you think of recursive formula for this one?

The first term is 2 and then to get to the next term we multiply the previous one by 3, so we can write this mathematically as:

b

1

= 2, b

n

= 3 × b

n−1

for n > 1

(17)

Recursive formula

Let’s take a look at another sequence:

2, 6, 18, 54, 162, ...

Can you think of recursive formula for this one? The first term is 2 and then to get to the next term we multiply the previous one by 3, so we can write this mathematically as:

b

1

= 2, b

n

= 3 × b

n−1

for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 6 / 22

(18)

Recursive formula

Let’s take a look at another sequence:

2, 6, 18, 54, 162, ...

Can you think of recursive formula for this one? The first term is 2 and then to get to the next term we multiply the previous one by 3, so we can write this mathematically as:

b

1

= 2, b

n

= 3 × b

n−1

for n > 1

(19)

Recursive formula

Another one:

−5, 5, −5, 5, 5....

What is the recursive formula here?

First term is −5 and we change the sign of the previous term to get the next one (which is equivalent to multiplying by −1), this give:

c

1

= −5, c

n

= −c

n−1

for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 7 / 22

(20)

Recursive formula

Another one:

−5, 5, −5, 5, 5....

What is the recursive formula here? First term is −5 and we change the sign of the previous term to get the next one (which is equivalent to multiplying by −1), this give:

c

1

= −5, c

n

= −c

n−1

for n > 1

(21)

Recursive formula

Another one:

−5, 5, −5, 5, 5....

What is the recursive formula here? First term is −5 and we change the sign of the previous term to get the next one (which is equivalent to multiplying by −1), this give:

c

1

= −5, c

n

= −c

n−1

for n > 1

Tomasz Lechowski Batory IB SL 9 września 2019 7 / 22

(22)

General formula

The problem with recursive formula is that to calculate a certain term, say a

100

, you need to have the preceding terms.

That is why a general formula is often better - a general formula gives you a formula for the sequence in terms of n only. Consider:

1, 1 2 , 1

3 , 1 4 , 1

5 ...

This sequence can be nicely defined using the general formula as d

n

=

n1

.

(23)

General formula

The problem with recursive formula is that to calculate a certain term, say a

100

, you need to have the preceding terms. That is why a general formula is often better - a general formula gives you a formula for the sequence in terms of n only.

Consider:

1, 1 2 , 1

3 , 1 4 , 1

5 ...

This sequence can be nicely defined using the general formula as d

n

=

n1

.

Tomasz Lechowski Batory IB SL 9 września 2019 8 / 22

(24)

General formula

The problem with recursive formula is that to calculate a certain term, say a

100

, you need to have the preceding terms. That is why a general formula is often better - a general formula gives you a formula for the sequence in terms of n only. Consider:

1, 1 2 , 1

3 , 1 4 , 1

5 ...

This sequence can be nicely defined using the general formula as d

n

=

n1

.

(25)

The difference between the recursive and general formula is that:

in the recursive formula we have a term defined in terms of previous terms,

in the general formula a term is defined in terms of n (its number).

Tomasz Lechowski Batory IB SL 9 września 2019 9 / 22

(26)

General formula

Consider:

2, 4, 8, 16, 32, ...

What is the general formula here?

We have consecutive powers of 2, so

the formula is e

n

= 2

n

.

(27)

General formula

Consider:

2, 4, 8, 16, 32, ...

What is the general formula here? We have consecutive powers of 2, so the formula is e

n

= 2

n

.

Tomasz Lechowski Batory IB SL 9 września 2019 10 / 22

(28)

General formula

Consider:

3, 6, 9, 12, 15, ...

What is the general formula here?

We have consecutive multiples of 3, so

the formula is f

n

= 3n.

(29)

General formula

Consider:

3, 6, 9, 12, 15, ...

What is the general formula here? We have consecutive multiples of 3, so the formula is f

n

= 3n.

Tomasz Lechowski Batory IB SL 9 września 2019 11 / 22

(30)

General formula

Consider:

1, 4, 9, 16, 25, ...

What is the general formula here?

We have consecutive square numbers,

so the formula is g

n

= n

2

.

(31)

General formula

Consider:

1, 4, 9, 16, 25, ...

What is the general formula here? We have consecutive square numbers, so the formula is g

n

= n

2

.

Tomasz Lechowski Batory IB SL 9 września 2019 12 / 22

(32)

General formula

Note that the formula may be more complicated, here:

9, 15, 21, 27, 33, ...

We have h

n

= 6n + 3.

(33)

Now what we want to do is the opposite, given a formula, find some terms.

Tomasz Lechowski Batory IB SL 9 września 2019 14 / 22

(34)

Recursive formula

Let’s define a sequence with the following recursive formula j

1

= 7 and j

n

= j

n−1

− 3.

So we start with 7 and then to get to the next term we subtract 3 from the previous one. So the first five terms will be:

7, 4, 1, −2, −5, ...

(35)

Recursive formula

Let’s define a sequence with the following recursive formula j

1

= 7 and j

n

= j

n−1

− 3. So we start with 7 and then to get to the next term we subtract 3 from the previous one.

So the first five terms will be: 7, 4, 1, −2, −5, ...

Tomasz Lechowski Batory IB SL 9 września 2019 15 / 22

(36)

Recursive formula

Let’s define a sequence with the following recursive formula j

1

= 7 and j

n

= j

n−1

− 3. So we start with 7 and then to get to the next term we subtract 3 from the previous one. So the first five terms will be:

7, 4, 1, −2, −5, ...

(37)

Recursive formula

We have k

1

= 8 and k

n

=

kn−12

.

So we start with 8 and then to get to the next term we divide the previous one by 2. So the first five terms will be:

8, 4, 2, 1, 0.5, ...

Tomasz Lechowski Batory IB SL 9 września 2019 16 / 22

(38)

Recursive formula

We have k

1

= 8 and k

n

=

kn−12

. So we start with 8 and then to get to the next term we divide the previous one by 2.

So the first five terms will be:

8, 4, 2, 1, 0.5, ...

(39)

Recursive formula

We have k

1

= 8 and k

n

=

kn−12

. So we start with 8 and then to get to the next term we divide the previous one by 2. So the first five terms will be:

8, 4, 2, 1, 0.5, ...

Tomasz Lechowski Batory IB SL 9 września 2019 16 / 22

(40)

Recursive formula

We have l

1

= 3 and l

n

= 2l

n−1

− 1.

So we start with 3 and then to get to the next term we multiply the previous one by 2 and subtract 1. So the first five terms will be:

3, 5, 9, 17, 33, ..

(41)

Recursive formula

We have l

1

= 3 and l

n

= 2l

n−1

− 1. So we start with 3 and then to get to the next term we multiply the previous one by 2 and subtract 1.

So the first five terms will be:

3, 5, 9, 17, 33, ..

Tomasz Lechowski Batory IB SL 9 września 2019 17 / 22

(42)

Recursive formula

We have l

1

= 3 and l

n

= 2l

n−1

− 1. So we start with 3 and then to get to the next term we multiply the previous one by 2 and subtract 1. So the first five terms will be:

3, 5, 9, 17, 33, ..

(43)

Recursive formula

We have m

1

= 2 and m

1

= m

n−12

− 2.

So we start with 2 and then to get to the next term we square the previous term and subtract 2. So the first five terms will be:

2, 2, 2, 2, 2, ..

Tomasz Lechowski Batory IB SL 9 września 2019 18 / 22

(44)

Recursive formula

We have m

1

= 2 and m

1

= m

n−12

− 2. So we start with 2 and then to get to the next term we square the previous term and subtract 2.

So the first five terms will be:

2, 2, 2, 2, 2, ..

(45)

Recursive formula

We have m

1

= 2 and m

1

= m

n−12

− 2. So we start with 2 and then to get to the next term we square the previous term and subtract 2. So the first five terms will be:

2, 2, 2, 2, 2, ..

Tomasz Lechowski Batory IB SL 9 września 2019 18 / 22

(46)

General formula

With general formula this is even easier.

If the formula is for instance z

n

= 2n + 7, then z

1

= 2 × 1 + 7 = 9, z

2

= 2 × 2 + 7 = 11, and so on. So the first five terms are:

9, 11, 13, 15, 17

(47)

General formula

With general formula this is even easier. If the formula is for instance z

n

= 2n + 7, then z

1

= 2 × 1 + 7 = 9

, z

2

= 2 × 2 + 7 = 11, and so on. So the first five terms are:

9, 11, 13, 15, 17

Tomasz Lechowski Batory IB SL 9 września 2019 19 / 22

(48)

General formula

With general formula this is even easier. If the formula is for instance z

n

= 2n + 7, then z

1

= 2 × 1 + 7 = 9, z

2

= 2 × 2 + 7 = 11, and so on.

So the first five terms are:

9, 11, 13, 15, 17

(49)

General formula

With general formula this is even easier. If the formula is for instance z

n

= 2n + 7, then z

1

= 2 × 1 + 7 = 9, z

2

= 2 × 2 + 7 = 11, and so on. So the first five terms are:

9, 11, 13, 15, 17

Tomasz Lechowski Batory IB SL 9 września 2019 19 / 22

(50)

General formula

General formula w

n

= 3

n

,

first five terms: 3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3, first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n, first five terms:

0, 2, 6, 12, 20, ...

(51)

General formula

General formula w

n

= 3

n

, first five terms:

3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3, first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n, first five terms: 0, 2, 6, 12, 20, ...

Tomasz Lechowski Batory IB SL 9 września 2019 20 / 22

(52)

General formula

General formula w

n

= 3

n

, first five terms:

3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3,

first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n, first five terms:

0, 2, 6, 12, 20, ...

(53)

General formula

General formula w

n

= 3

n

, first five terms:

3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3, first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n, first five terms: 0, 2, 6, 12, 20, ...

Tomasz Lechowski Batory IB SL 9 września 2019 20 / 22

(54)

General formula

General formula w

n

= 3

n

, first five terms:

3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3, first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n,

first five terms:

0, 2, 6, 12, 20, ...

(55)

General formula

General formula w

n

= 3

n

, first five terms:

3, 9, 27, 81, 243, ...

General formula v

n

= 2n

2

− 3, first five terms:

−1, 5, 15, 29, 47

General formula u

n

= n

2

− n, first five terms:

0, 2, 6, 12, 20, ...

Tomasz Lechowski Batory IB SL 9 września 2019 20 / 22

(56)

The short test at the beginning of the next class will consist of finding

some terms of a sequence given its formula.

(57)

If you have any questions or doubts email me at T.J.Lechowski@gmail.com

Tomasz Lechowski Batory IB SL 9 września 2019 22 / 22

Cytaty

Powiązane dokumenty

SOME RESULTS CONCERNING THE ENDS OF MINIMAL CUTS OF SIMPLE GRAPHS.. Xiaofeng Jia Department

In 1920’s, Hardy and Littlewood introduced an ana- lytic method for solving Waring’s problem: That is, they showed that every sufficiently large natural number can be expressed as a

Furstenberg used ergodic theory, S´ ark¨ ozy applied the circle method together with a combinatorial idea and Pintz, Steiger and Szemer´ edi introduced further

In Section 3 we extend Noether’s Theorem to a result about minimizing trajectories of a family of Hamiltonians of class C 1 , and explain why this result does not extend to families

An Open Coloring Axiom type principle is formulated for uncountable cardinals and is shown to be a consequence of the Proper Forcing Axiom.. Several appli- cations

1 Comparison of ROC curves gathered for Melanoma malignant class using six learning algorithms by investigation of original dataset (top chart) and selected core features with

« natural language » (4) as a tool in its analyses concerning being, which analyses are philosophical in character, not linguistic- How then is language related

We say that a bipartite algebra R of the form (1.1) is of infinite prin- jective type if the category prin(R) is of infinite representation type, that is, there exists an