Fibonacci Mystery - Numberphile - YouTube

Channel: Numberphile

[0]
today I want to do a video response I
[2]
response to one of our own numberphile
[4]
videos because some time ago Brady made
[9]
a video with our numberphile composer
[12]
Alan Stuart's it was a video it was 40
[15]
minutes long this video which was a test
[18]
to our loyalty I think but in that video
[21]
have you made it through alan described
[24]
composing one of his pieces about the
[28]
Fibonacci sequence it involved the
[30]
Fibonacci sequence and he came up with a
[32]
question as a challenge I guess to the
[37]
number files I'm not quite good enough
[39]
in laughs to be able to explain why that
[41]
is maybe a number file will be able to
[44]
explain like this I'm going to answer
[45]
his question today
[49]
so what Alan was doing was he was trying
[51]
to involve the Fibonacci sequence in a
[53]
piece of music so first let's have a
[55]
recap of the Fibonacci sequence very
[57]
important sequence in mathematics it's
[59]
quite easy it starts with 1 then it's 1
[63]
again and then you add the previous 2
[65]
value so you add these two and you get
[68]
the next number so that's just 1 plus 1
[70]
equals 2 then you add these two values
[73]
that's 1 plus 2 equals 3 then you add
[77]
the previous 2 that's 2 plus 3 equals 5
[79]
and you keep going in this way 6760 5
[89]
and so on okay so there's the Fibonacci
[92]
sequence and what Allan was doing was to
[95]
turn this into a piece of music he was
[98]
dividing by 7 he's going to divide all
[101]
these Fibonacci numbers by 7
[102]
now you can't divide exactly by 7 most
[106]
of the time and so he looked at the
[108]
remainder what you get left over when
[110]
you divide by 7 that's one that's two
[114]
that's three that's 5 now 8 when you
[118]
divide 8 by 7 that's one with one left
[122]
over that's what he wrote down then 13
[125]
divided by 7 is 1 with 6 left over 21
[130]
divided by 7 is 3 exactly it has zero
[133]
left over so you write zero and we're
[137]
going to continue in that way we're
[138]
going to do all the remainders so he
[144]
wrote out all the remainders I need to
[146]
make it a piece of music he turned to
[147]
these remainders into musical notes so
[150]
it corresponds to notes but he didn't
[152]
notice a pattern when he did it
[154]
curiously he found the pattern repeated
[157]
it actually repeated every 16 numbers so
[161]
here we go 1 1 2 3 5 1 6 0 6 6 5 4 - 6 1
[167]
0 1 1 2 3 and then the pattern repeated
[172]
and he asked what is this about is this
[175]
a thing and it is a thing it's actually
[178]
called a Poisson Oh Pierre
[180]
pisano period is named after Leonardo
[183]
Pisano and if you think you haven't
[185]
heard of him before are you wrong
[187]
because that's just another name of
[189]
Fibonacci so this is a pisano period now
[193]
Allen chose seven to do this because
[195]
that helps him make his musical notes if
[198]
you'd pick any number though he would
[200]
have got up here as well but the length
[202]
of the period would have been different
[204]
so he divided by 2/3 divided by 90 or
[210]
700 he would have got a cyclic pattern
[215]
if we divide by 5 as an example this
[218]
should be quite easy divided by 5 this
[220]
is when I'll make a mistake 1 1 2 left
[224]
over 3 divided by 3 5 plus 3 left over 5
[229]
divided by 5 is 0 0 left over 8 divided
[233]
by 5 is a 1 a 3 left over would be a 3 4
[239]
left over that's one left over a 0 left
[243]
over and I think that's actually the
[246]
full pattern and the when you divide by
[249]
5 the period is 20 so this is the whole
[253]
thing here at this point it will start
[255]
to repeat again the zeros I want to
[257]
point out are interesting the zeros are
[259]
when you can divide by 5 exactly so
[264]
there's a 0 here there's a 0 here this
[267]
is 0 here as well oh look at this no
[270]
look I just noticed that laser mistake I
[273]
said that look I said this had a
[275]
remainder of 5 but look I don't need
[277]
this that has a remainder of 0 that just
[280]
shows you doing it all alive I I'm doing
[283]
it up now I noticed that that was a
[284]
mistake I noticed there was a problem
[285]
there because I knew that the period has
[288]
only can only have one zero two zeros or
[294]
four so that's another result in
[297]
mathematics so because there was three I
[298]
knew there was a problem there and I
[300]
found it so that's another example of
[304]
the Pisano
[305]
period if you another thing I want to
[307]
point out then it's actually every fifth
[309]
number every fitnah but there is a there
[312]
is a proper bit of
[313]
it's behind this room actually do it
[314]
there's another result about Fibonacci
[316]
numbers it says a Fibonacci number let's
[319]
call it the nth Fibonacci number
[322]
exactly divided which I use a vertical
[324]
line for another Fibonacci number which
[327]
I'm going to call FM the result is if
[330]
and only if n divides M so the little
[334]
index at the bottom here if they divide
[337]
then the Fibonacci numbers divide as
[339]
well just to give you an example then we
[341]
were doing if we look at the fifth
[343]
Fibonacci number that is equal to 5 so
[346]
so 5 divides Fibonacci numbers if and
[352]
only if there's a little symbol there 5
[354]
divides the value of the index so every
[358]
fifth number every 5th Fibonacci number
[360]
is divisible by 5 that's what I chose
[362]
let me just do one more example of that
[364]
to make the point I took the next one
[366]
look the 6th Fibonacci number is 8 so 8
[369]
will divide Fibonacci numbers exactly
[374]
when 6 that's the index here divides M
[380]
so every sixth number every sixth
[383]
Fibonacci number is divisible by 8 so
[387]
this Pisano period idea was first
[389]
discovered by a mathematician called
[391]
Lagrange in 1774 and he was actually
[395]
looking at the patterns when you divide
[398]
by 10 when he divide by 10 what you have
[401]
left over it's just the last digit let's
[404]
do a quick version of that what colors
[406]
do I need now I have to use black 5 8 13
[411]
divided by 10 is 1 with 3 left over 21
[415]
divided by 10 has 1 left over
[416]
and what he discovered was the they had
[421]
8 they did have a pattern and the
[423]
pattern had a period of 60 so the last
[426]
digits of the Fibonacci sequence have a
[428]
pattern of length 60 if you divide by a
[432]
hundred then you're actually looking at
[434]
the last two digits of the Fibonacci
[438]
sequence that has a pattern of 300
[440]
lengths 300 if you look at the last
[443]
three digits that's dividing by a
[445]
thousand
[446]
that has a pattern of length 1,500 the
[451]
other easy way to do this is you don't
[453]
have to write out the Fibonacci sequence
[455]
and do each calculation for each number
[458]
actually there's a property of these
[460]
remainders that you can just add up the
[463]
previous two remainders let's have a
[465]
look so if we look at an example like
[467]
here this is when I was dividing by 7
[471]
for the remainder of 4 plus a remainder
[474]
of 2 gives me the next remainder it's
[477]
just like the Fibonacci sequence gives
[478]
me a remainder of 6 remainder of 2 plus
[481]
a remainder of 6 it actually wraps back
[483]
because we're dividing by 7 when you go
[486]
past 7 it wraps back to 0 so this will
[490]
take me back to 1 then 6 plus 1 will
[494]
give me 7 which wraps back to 0 so alack
[497]
I can actually do these sequences by
[499]
simply adding up the remainders so using
[502]
this idea when you add the previous two
[504]
remainders gives you the next one
[506]
actually kind of explains what's going
[508]
on when I had a 1 and a 0 here next to
[513]
each other then when I add them together
[514]
I get a 1 then I add 0 plus 1 and I get
[520]
another one so I've got 2 ones in a row
[523]
1 and 1 and then that's the beginning of
[526]
the Fibonacci sequence and then it just
[528]
carries on so whenever you have a 0 next
[531]
to a 1 you're going to end up back into
[534]
the Fibonacci so you're going to end up
[535]
back to the start of the Fibonacci
[536]
sequence and it has been shown that this
[538]
will always happen so that 0 1 is like a
[542]
big trigger point yeah yeah that's going
[545]
to send you back to the start again and
[547]
that will happen in the other sequences
[549]
that we had here as well look this is
[551]
the dividing by 5 it has a period of 20
[554]
that's the end of it and there's the 0
[556]
and the 1 again and that's going to send
[558]
you back to the start so you're always
[560]
going to end up back to the start this
[561]
period is always going to repeat however
[563]
there is no general formula for the
[566]
length of the period so that's something
[568]
we don't know yet
[572]
that two boxes of nine and a box of six
[578]
there we go that makes 44