sequences defined recursively. a sequence is a set of numbers, called terms, arranged in a...

29
Sequences defined recursively

Upload: godfrey-gregory

Post on 11-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

Sequences defined recursively

Page 2: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

A Sequence is a set of numbers, called terms, arranged in a paticurlar order.

Example

18924 ntn

(1) please find the first five terms of the sequence.

If the relation between the number n and the nth term can be expressed by a formula , we call this formula the formula of general term

(2) please find the 29th term of the sequence.

Page 3: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

Sometimes a sequence is definited by givien the value of tn in terms of the preceding term.

Example

12

3

1

1

nn tt

t

please find the first five terms of the sequence.

Page 4: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

12

3

1

1

nn tt

tThe formulas

give a recursive definition for the sequence 3, 7 ,15, 31, 63, …

A recursive definition consists of two parts:

1. An initial condition that tells where the sequence starts.

2.A recursition formula that tells how any term in the sequence

is related to the preceding term.

Page 5: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

1. Arithmetic Sequences

A Sequence of numbers is called an arithmetic sequence

if the difference of any two consecutive terms is constant. This difference is called the common difference.

dnttn )1(1

Formula for the nth term of general arithmetic sequence

dtt

t

nn 1

1Recursive definition

Page 6: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

2. geometric Sequences

A Sequences of numbers is called a geometric sequence

if the ratio of any two consecutive terms is constant. This ratio is called the common ratio.

)1(1

nn rtt

Formula for the nth term of general geometric sequence

Recursive definition

rtt

t

nn 1

1

Page 7: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

3. 1 linear of step Sequences of recurrence

The Tower of Hanio puzzle consists of a block of wood with three posts, A, B, and C.On post A there are eight disks of diminishing size from bottom to top. The task is to transfer all eight disks from post A to one of the other two posts given that:

1. only one disk can be moved at a time;

2. no disk can be placed on top of a smaller disk.

Page 8: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

a. Let Mn represent the minimum number of moves needed to move n disks from post A to one of the other posts. What are M1, M2 and M3.

b. Suppose you know how to move (n-1) disks from post A to another post,and that to do so requires Mn-1 moves. Find the relation between the Mn and Mn-1.

c. Use your answer to part(b) to check you values for M2 and M3.Then find M4, M5, M6, M7, M8.

d. Find formula of the general term (formular for the nth term)

Page 9: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

e. According to legend, in the great Temple of Benarses,there is an altar with three diamond needles, At the beginning of time, 64 gold rings of decreasing radius from botom to top were placed on one of the needles. Day and night ,priests sit before the altar transferring one gold ring per second in accordance with the two rules given given above .The legend also say that when all 64 rings have been transferred to one of the diamond needles, the word will come to an end .how long will it take the priests to transfer all the rings?

Page 10: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

4. Fibonacci Sequence Here is a famous problem posed in the

thirteenth centrry by Leonardo de Pisano ,

better known as Fibonacci: Suppose we

have one pair of newborn rabbits of both

genders.we assume that the following conditions are true.

1. It takes a newborn rabbit one month to become an adult.

2. A pair of adult rabbits of both genders wiil produce one

pair of newborn rabbits of both genders each month ,

beginning one month after becoming adults.

3. The rabbits do not die

How many rabbits will there be one year later?

Page 11: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution1st month 1 pair

Page 12: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution1st month 1 pair

2nd month 1 pair

Page 13: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution1st month 1 pair

2nd month 1 pair3rd month 2pairs

Page 14: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution1st month 1 pair

2nd month 1 pair3rd month 2 pairs

4th month 3 pairs

Page 15: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution1st month 1 pair

2nd month 1 pair3rd month 2 pairs4th month 3 pairs5th month 5 pairs

Page 16: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution

6th month 8 pairs

1st month 1 pair

2nd month 1 pair

3rd month 2 pairs4th month 3 pairs5th month 5 pairs

Page 17: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution

6th month 8 pairs

1st month 1 pair

2nd month 1 pair

3rd month 2 pairs4th month 3 pairs5th month 5 pairs

7th month 13 pairs

Page 18: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

solution

1 st 2 nd 3 rd 5 th4 th 6th

7 th 8 th 9 th 11 th10 th 12 th

1 1 2 3 5 8

13 21 34 55 89 144

• There will be 144 pairs of rabbits after a year.

recursition formula:

21

21 1,1

nnn FFF

FF

Page 19: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

Each number in the Fibonacci sequence is called Fibonacci number( Fibonacci 数) . Probably most of us have never taken the time to examine very carefully the number or arrangement( 排列 ) of petals (花瓣) on a flower. If we were to do so, several things would become apparent. We would find that the number of petals on a flower is often one of the Fibonacci numbers.

begonia ( 2)calla ( 1) Trillium ( 3 )

Page 20: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

orchid( 5)

daisy(13) bloodroot(8)

Page 21: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

138

53211

There is a kind of plant here. Please observe it carefully. Can you find something interesting?

Page 22: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

Now, we will draw a picture showing the Fibonacci numbers .we start with two small squares of size 1 next to each other. On top of these draw a square of size 2. Then draw a new square of size 3 just as the picture shows, and the square of size 5, size 8, size 13.we can draw a spiral by putting together quarter circles, one in each square.

Page 23: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

This is a spiral( 螺旋线 ) ,a similar curve to this occurs in nature as the shape of a nail shell or some sea shells. (show the shell I picked on the seaside .)

Page 24: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

Some similar curves appear in pine cones (松果) . There are closewise spirals and couter-clockwise spirals on pine cones. If you have a good study on pine cones , you can find that the numbers of seeds on sprials are also Fibonacci numbers .

Page 25: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms
Page 26: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms
Page 27: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

The formula of general term of Fibonacci number sequence is

Page 28: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

If we take the ratio (比例) of two successive numbers in Fibonacci series and we divide each by the number before it, we will get the following series of numbers.

The ratio seems to approach to a particular number ,which we call the golden number( 黄金数 ) .It is often represented by a Greek letter phi(φ).It is also a very useful thing in our life and in the nature.

Page 29: Sequences defined recursively. A Sequence is a set of numbers, called terms, arranged in a paticurlar order. Example (1) please find the first five terms

9 chain of ringses

----a game from ancient china