有趣的斐波那契數(shù)列

Math day 5:
Fibonacci Sequence

Fibonacci Sequence and Music

In western music theory, we know an octave including 13 notes:
C, C#, D, D#, E, F, F#, G, G#, A, A#,B, C (1,1#,2,2#,3,4,4#,5,5#,6,6#,7,i)

Is there anything special about numbers 13?

We notice an octive including 5 sharps notes (C#,D#,F#,G#, A#), and 8 regular notes (C,D,E,F,G,A,B,C).

Now if we go one more step further look at the key distribution on a piano:

The 5 sharp notes are in groups of 2 and 3.

image

Now, if we re-think about the numbers, we have 2+3=5, 5+8=13.

so we have a sequence of number: 2,3,5,8,13, which is a segment of Fibonacci sequences.

Fibonacci Sequence:

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

Fibonacci Sequence Definition:

F(1)=1,F(xiàn)(2)=1, F(n)=F(n-1)+F(n-2)

Personally, I think it is very interesting how the Fibonacci Sequence emerged in Music Theory.

Where is the Fibonacci Sequence come from?

this was a story my previous student told me, there were 2 bunnies on an island, then they started a family, the family members formed Fibonacci sequence ....

[caption id="attachment_2378" align="alignnone" width="500"]
image

castleguard / Pixabay[/caption]

Now, given a random positive nature number, can we tell it is a Fibonacci Number very quick?

Personally, I could not tell if the number is >100. but, our friend Python can!

A little Fibonacci number Yes or No Python game:

import math

def isPerfectSquare(x):
    i=int(math.sqrt(x))
    return (x==i*i)

def isFibnoacci(n):
    if (isPerfectSquare(5*n*n+4) or isPerfectSquare(5*n*n-4)):
          print (n, "is a Fibonacci Number")
    else:
          print(n,"is not a Fibonacci Number" )

Now we can run our Game Test:

isFibnoacci(4)
4 is not a Fibonacci Number

isFibnoacci(168)
168 is not a Fibonacci Number

isFibnoacci(1000)
1000 is not a Fibonacci Number

isFibnoacci(89)
89 is a Fibonacci Number

Note: The Keypoint is every Fibonacci number is in the form of 5n2+4 or 5n2-4.

Bonus:

The Fibonacci number is so fascinating in music, art and science not only because of its practical use but also it leads to the Golden Ratio!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,817評(píng)論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,016評(píng)論 0 23
  • 第一件: 學(xué)習(xí)秋葉三分鐘教程; 第二件: 又找到一本好看的書,如獲至寶,黑塞《荒原狼》; 第三件: 晚上播種了我們...
    若蘭素兮閱讀 213評(píng)論 0 1
  • 文/歲月削 【1】 跟顧城的再次相遇是在放假回家的大巴上。 他一眼認(rèn)出了我,隔了老遠(yuǎn)沖我揮了揮手,然后從大巴的最后...
    歲月削閱讀 630評(píng)論 0 5
  • 隨著漢服的流行以及復(fù)古復(fù)興思想的不斷加強(qiáng),漢服普及的范圍也越來越廣,喜歡的人也越來越多,這對(duì)于漢服文化的傳承是...
    查理愛吃糖閱讀 6,877評(píng)論 0 1

友情鏈接更多精彩內(nèi)容