Jump to content

Fibonacci sequence: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+mention related Leonardo numbers. removed some actual typos. adjusted layout of some equations. checked some links.
Undid revision 913087004 by A876 (talk) there might be some good changes in there, but most of what I see are inappropriate cosmetic changes; please separate those out if you wish to keep them
Line 1: Line 1:
{{Redirect|Fibonacci Sequence|the chamber ensemble|Fibonacci Sequence (ensemble)}}
{{redirect|Fibonacci Sequence|the chamber ensemble|Fibonacci Sequence (ensemble)}}


[[File:34*21-FibonacciBlocks.png|thumb|300px|right|A tiling with squares whose side lengths are successive Fibonacci numbers]]
[[File:34*21-FibonacciBlocks.png|thumb|300px|right|A tiling with squares whose side lengths are successive Fibonacci numbers]]


In [[mathematics]], the '''Fibonacci numbers''', commonly denoted {{math|''F<sub>n</sub>''}} form a [[integer sequence|sequence]], called the '''Fibonacci sequence''', such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,{{Sfn|Lucas|1891|p=3}}
In [[mathematics]], the '''Fibonacci numbers''', commonly denoted {{math|''F<sub>n</sub>''}} form a [[integer sequence|sequence]], called the '''Fibonacci sequence''', such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,{{Sfn | Lucas | 1891 | p=3}}
:<math>F_0 = 0,\quad F_1 = 1,</math>
:<math>F_0=0,\quad F_1= 1,</math>
and
and
:<math>F_n = F_{n-1} + F_{n-2},</math>
:<math>F_n=F_{n-1} + F_{n-2},</math>
for {{math|''n'' > 1}}.
for {{math|''n'' > 1}}.


One has {{math|1=''F''<sub>2</sub> = 1}}. In some books, and particularly in old ones, {{math|''F''<sub>0</sub>}}, the "0" is omitted, and the Fibonacci sequence starts with {{math|1=''F''<sub>1</sub> = ''F''<sub>2</sub> = 1}}.{{Sfn|Beck|Geoghegan|2010}}{{Sfn|Bóna|2011|p=180}} The beginning of [[#Sequence properties|the sequence]] is thus:
One has {{math|1=''F''<sub>2</sub> = 1}}. In some books, and particularly in old ones, {{math|''F''<sub>0</sub>}}, the "0" is omitted, and the Fibonacci sequence starts with {{math|1=''F''<sub>1</sub> = ''F''<sub>2</sub> = 1}}.{{Sfn | Beck | Geoghegan | 2010}}{{Sfn | Bóna | 2011 | p=180}} The beginning of [[#Sequence properties|the sequence]] is thus:
:<math>(0,)\;1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\; \ldots</math><ref>{{cite OEIS|1=A000045}}</ref>
:<math>(0,)\;1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\; \ldots</math><ref>{{Cite OEIS|1=A000045}}</ref>


[[File:FibonacciSpiral.svg|right|thumb|The Fibonacci spiral: an approximation of the [[golden spiral]] created by drawing [[circular arc]]s connecting the opposite corners of squares in the Fibonacci tiling;<ref>{{cite book |url=https://books.google.com/books?id=CDEEAwAAQBAJ&pg=PA81 |title=Exploring the World of Mathematics: From Ancient Record Keeping to the Latest Advances in Computers |author=John Hudson Tiner |publisher=New Leaf Publishing Group |year=200 |isbn=978-1-61458-155-0}}</ref> this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13 and 21. ]]
[[File:FibonacciSpiral.svg|right|thumb|The Fibonacci spiral: an approximation of the [[golden spiral]] created by drawing [[circular arc]]s connecting the opposite corners of squares in the Fibonacci tiling;<ref>{{cite book | url=https://books.google.com/books?id=CDEEAwAAQBAJ&pg=PA81| title=Exploring the World of Mathematics: From Ancient Record Keeping to the Latest Advances in Computers | author=John Hudson Tiner | publisher=New Leaf Publishing Group | year=200 | isbn=978-1-61458-155-0 }}</ref> this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13 and 21. ]]


Fibonacci numbers are strongly related to the [[golden ratio]]: [[#Binet's formula|Binet's formula]] expresses the {{mvar|n}}th Fibonacci number in terms of {{mvar|n}} and the golden ratio, and implies that the ratio of two consecutive Fibonacci numbers tends to the golden ratio as {{mvar|n}} increases.
Fibonacci numbers are strongly related to the [[golden ratio]]: [[#Binet's formula|Binet's formula]] expresses the {{mvar|n}}th Fibonacci number in terms of {{mvar|n}} and the golden ratio, and implies that the ratio of two consecutive Fibonacci numbers tends to the golden ratio as {{mvar|n}} increases.


Fibonacci numbers are named after Italian mathematician Leonardo of Pisa, later known as [[Fibonacci]]. They appear to have first arisen as early as 200 BC in work by [[Pingala]] on enumerating possible patterns of poetry formed from syllables of two lengths. In his 1202 book ''[[Liber Abaci]]'', Fibonacci introduced the sequence to Western European mathematics,{{Sfn |Pisano |2002 |pp=404–5}} although the sequence had been described earlier in [[Indian mathematics]].<ref name="GlobalScience"/><ref name="HistoriaMathematica"/><ref name="Donald Knuth 2006 50"/>
Fibonacci numbers are named after Italian mathematician Leonardo of Pisa, later known as [[Fibonacci]]. They appear to have first arisen as early as 200 BC in work by [[Pingala]] on enumerating possible patterns of poetry formed from syllables of two lengths. In his 1202 book ''[[Liber Abaci]]'', Fibonacci introduced the sequence to Western European mathematics,{{Sfn | Pisano | 2002 | pp=404–5}} although the sequence had been described earlier in [[Indian mathematics]].<ref name="GlobalScience" /><ref name="HistoriaMathematica" /><ref name="Donald Knuth 2006 50" />


Fibonacci numbers appear unexpectedly often in mathematics, so much so that there is an entire journal dedicated to their study, the ''[[Fibonacci Quarterly]]''. Applications of Fibonacci numbers include computer algorithms such as the [[Fibonacci search technique]] and the [[Fibonacci heap]] data structure, and graphs called [[Fibonacci cube]]s used for interconnecting parallel and distributed systems.
Fibonacci numbers appear unexpectedly often in mathematics, so much so that there is an entire journal dedicated to their study, the ''[[Fibonacci Quarterly]]''. Applications of Fibonacci numbers include computer algorithms such as the [[Fibonacci search technique]] and the [[Fibonacci heap]] data structure, and graphs called [[Fibonacci cube]]s used for interconnecting parallel and distributed systems.


They also appear in biological settings, such as branching in trees, [[phyllotaxis|the arrangement of leaves on a stem]], the fruit sprouts of a [[pineapple]], the flowering of an [[artichoke]], an uncurling [[fern]] and the arrangement of a [[pine cone]]'s bracts.
They also appear in biological settings, such as branching in trees, [[phyllotaxis|the arrangement of leaves on a stem]], the fruit sprouts of a [[pineapple]], the flowering of an [[artichoke]], an uncurling [[fern]] and the arrangement of a [[pine cone]]'s bracts.
Line 24: Line 24:
Fibonacci numbers are also closely related to [[Lucas number]]s <math>L_n</math> in that they form a complementary pair of [[Lucas sequence]]s <math>U_n(1,-1)=F_n</math> and <math>V_n(1,-1)=L_n</math>. Lucas numbers are also intimately connected with the golden ratio.
Fibonacci numbers are also closely related to [[Lucas number]]s <math>L_n</math> in that they form a complementary pair of [[Lucas sequence]]s <math>U_n(1,-1)=F_n</math> and <math>V_n(1,-1)=L_n</math>. Lucas numbers are also intimately connected with the golden ratio.


==History==
== History ==
{{See also|Golden ratio#History}}
{{see also|Golden ratio#History}}
[[File:Thirteen ways of arranging long and short syllables in a cadence of length six.svg|thumb|Thirteen ways of arranging long and short syllables in a cadence of length six. Five end with a long syllable and eight end with a short syllable.]]
[[File:Thirteen ways of arranging long and short syllables in a cadence of length six.svg|thumb|Thirteen ways of arranging long and short syllables in a cadence of length six. Five end with a long syllable and eight end with a short syllable.]]
The Fibonacci sequence appears in [[Indian mathematics]] in connection with [[Sanskrit prosody]], as pointed out by Parmanand Singh in 1985.<ref name="HistoriaMathematica">{{Citation|first=Parmanand|last=Singh|title=The So-called Fibonacci numbers in ancient and medieval India|journal=Historia Mathematica|volume=12|issue=3|pages=229–44|year=1985|doi=10.1016/0315-0860(85)90021-7}}</ref><ref name="knuth-v1">{{Citation|title=The Art of Computer Programming|volume=1|first=Donald|last=Knuth |author-link=Donald Knuth |publisher=Addison Wesley|year=1968|isbn=978-81-7758-754-8|url=https://books.google.com/books?id=MooMkK6ERuYC&pg=PA100|page=100|quote=Before Fibonacci wrote his work, the sequence Fn had already been discussed by Indian scholars, who had long been interested in rhythmic patterns... both Gopala (before 1135&nbsp;AD) and Hemachandra (c.&nbsp;1150) mentioned the numbers 1,2,3,5,8,13,21 explicitly [see P. Singh Historia Math 12 (1985) 229–44]" p. 100 (3d ed)...}}</ref>{{sfn|Livio|2003|p=197}} In the Sanskrit poetic tradition, there was interest in enumerating all patterns of long (L) syllables of 2 units duration, juxtaposed with short (S) syllables of 1 unit duration. Counting the different patterns of successive L and S with a given total duration results in the Fibonacci numbers: the number of patterns of duration ''m'' units is ''F''<sub>''m''&nbsp;+&nbsp;1</sub>.<ref name="Donald Knuth 2006 50">{{Citation|title=The Art of Computer Programming |volume=4. Generating All Trees – History of Combinatorial Generation |first=Donald |last=Knuth |author-link=Donald Knuth |publisher=Addison–Wesley |year=2006 |isbn=978-0-321-33570-8 |page=50 |url=https://books.google.com/books?id=56LNfE2QGtYC&pg=PA50&dq=rhythms |quote=it was natural to consider the set of all sequences of [L] and [S] that have exactly m beats. ...there are exactly Fm+1 of them. For example the 21 sequences when ''m''&nbsp;=&nbsp;7 are: [gives list]. In this way Indian prosodists were led to discover the Fibonacci sequence, as we have observed in Section 1.2.8 (from v.1)}}</ref>
The Fibonacci sequence appears in [[Indian mathematics]] in connection with [[Sanskrit prosody]], as pointed out by Parmanand Singh in 1985.<ref name="HistoriaMathematica">{{Citation|first=Parmanand|last=Singh|title= The So-called Fibonacci numbers in ancient and medieval India|journal=Historia Mathematica|volume=12|issue=3|pages=229–44|year=1985|doi = 10.1016/0315-0860(85)90021-7}}</ref><ref name="knuth-v1">{{Citation|title=The Art of Computer Programming|volume=1|first=Donald|last=Knuth| author-link =Donald Knuth |publisher=Addison Wesley|year=1968|isbn=978-81-7758-754-8|url=https://books.google.com/books?id=MooMkK6ERuYC&pg=PA100|page=100|quote=Before Fibonacci wrote his work, the sequence Fn had already been discussed by Indian scholars, who had long been interested in rhythmic patterns... both Gopala (before 1135&nbsp;AD) and Hemachandra (c.&nbsp;1150) mentioned the numbers 1,2,3,5,8,13,21 explicitly [see P. Singh Historia Math 12 (1985) 229–44]" p. 100 (3d ed)...}}</ref>{{sfn|Livio|2003|p=197}} In the Sanskrit poetic tradition, there was interest in enumerating all patterns of long (L) syllables of 2 units duration, juxtaposed with short (S) syllables of 1 unit duration. Counting the different patterns of successive L and S with a given total duration results in the Fibonacci numbers: the number of patterns of duration ''m'' units is ''F''<sub>''m''&nbsp;+&nbsp;1</sub>.<ref name="Donald Knuth 2006 50">{{Citation|title = The Art of Computer Programming | volume = 4. Generating All Trees – History of Combinatorial Generation | first = Donald | last = Knuth | author-link = Donald Knuth |publisher= Addison–Wesley |year= 2006 | isbn= 978-0-321-33570-8 | page = 50 | url= https://books.google.com/books?id=56LNfE2QGtYC&pg=PA50&dq=rhythms | quote = it was natural to consider the set of all sequences of [L] and [S] that have exactly m beats. ...there are exactly Fm+1 of them. For example the 21 sequences when ''m''&nbsp;=&nbsp;7 are: [gives list]. In this way Indian prosodists were led to discover the Fibonacci sequence, as we have observed in Section 1.2.8 (from v.1)}}</ref>


Knowledge of the Fibonacci sequence was expressed as early as [[Pingala]] ({{circa}}&nbsp;450&nbsp;BC–200&nbsp;BC). Singh cites Pingala's cryptic formula ''misrau cha'' ("the two are mixed") and scholars who interpret it in context as saying that the number of patterns for ''m'' beats (''F''<sub>''m+1''</sub>) is obtained by adding one [S] to the ''F''<sub>''m''</sub> cases and one [L] to the ''F''<sub>''m''−1</sub> cases. <ref>{{Citation |last=Agrawala |first=VS |year=1969 |title=''Pāṇinikālīna Bhāratavarṣa'' (Hn.). Varanasi-I: TheChowkhamba Vidyabhawan |quote=SadgurushiShya writes that Pingala was a younger brother of Pāṇini [Agrawala 1969, lb]. There is an alternative opinion that he was a maternal uncle of Pāṇini [Vinayasagar 1965, Preface, 121]. ... Agrawala [1969, 463–76], after a careful investigation, in which he considered the views of earlier scholars, has concluded that Pāṇini lived between 480 and 410 BC}}</ref>
Knowledge of the Fibonacci sequence was expressed as early as [[Pingala]] ({{circa}}&nbsp;450&nbsp;BC–200&nbsp;BC). Singh cites Pingala's cryptic formula ''misrau cha'' ("the two are mixed") and scholars who interpret it in context as saying that the number of patterns for ''m'' beats (''F''<sub>''m+1''</sub>) is obtained by adding one [S] to the ''F''<sub>''m''</sub> cases and one [L] to the ''F''<sub>''m''−1</sub> cases. <ref>{{Citation | last = Agrawala | first = VS | year = 1969 | title = ''Pāṇinikālīna Bhāratavarṣa'' (Hn.). Varanasi-I: TheChowkhamba Vidyabhawan | quote = SadgurushiShya writes that Pingala was a younger brother of Pāṇini [Agrawala 1969, lb]. There is an alternative opinion that he was a maternal uncle of Pāṇini [Vinayasagar 1965, Preface, 121]. ... Agrawala [1969, 463–76], after a careful investigation, in which he considered the views of earlier scholars, has concluded that Pāṇini lived between 480 and 410 BC}}</ref>
[[Bharata Muni]] also expresses knowledge of the sequence in the ''[[Natya Shastra]]'' (c.&nbsp;100&nbsp;BC–c.&nbsp;350&nbsp;AD).<ref>{{cite journal|title=The So-called Fibonacci Numbers in Ancient and Medieval India|last=Singh|first=Parmanand|url=http://www.sfs.uni-tuebingen.de/~dg/sdarticle.pdf|journal=[[Historia Mathematica]]|year=1985|publisher=[[Academic Press]]|volume=12|issue=3|page=232|doi=10.1016/0315-0860(85)90021-7}}</ref><ref name=GlobalScience>{{Citation|title=Toward a Global Science|first=Susantha|last=Goonatilake|publisher=Indiana University Press|year=1998|page=126|isbn=978-0-253-33388-9|url=https://books.google.com/books?id=SI5ip95BbgEC&pg=PA126}}</ref>
[[Bharata Muni]] also expresses knowledge of the sequence in the ''[[Natya Shastra]]'' (c.&nbsp;100&nbsp;BC–c.&nbsp;350&nbsp;AD).<ref>{{cite journal|title=The So-called Fibonacci Numbers in Ancient and Medieval India|last=Singh|first=Parmanand|url=http://www.sfs.uni-tuebingen.de/~dg/sdarticle.pdf|journal=[[Historia Mathematica]]|year=1985|publisher=[[Academic Press]]|volume=12|issue=3|page=232|doi=10.1016/0315-0860(85)90021-7}}</ref><ref name=GlobalScience>{{Citation|title=Toward a Global Science|first=Susantha|last=Goonatilake|publisher=Indiana University Press|year=1998|page=126|isbn=978-0-253-33388-9|url=https://books.google.com/books?id=SI5ip95BbgEC&pg=PA126}}</ref>
However, the clearest exposition of the sequence arises in the work of [[Virahanka]] (c.&nbsp;700 AD), whose own work is lost, but is available in a quotation by Gopala (c.&nbsp;1135):{{sfn|Livio|2003|p=197}}
However, the clearest exposition of the sequence arises in the work of [[Virahanka]] (c.&nbsp;700 AD), whose own work is lost, but is available in a quotation by Gopala (c.&nbsp;1135):{{sfn|Livio|2003|p=197}}


<blockquote>Variations of two earlier meters [is the variation]... For example, for [a meter of length] four, variations of meters of two [and] three being mixed, five happens. [works out examples 8, 13, 21]... In this way, the process should be followed in all ''mātrā-vṛttas'' [prosodic combinations].{{efn|"For four, variations of meters of two [and] three being mixed, five happens. For five, variations of two earlier&nbsp;– three [and] four, being mixed, eight is obtained. In this way, for six, [variations] of four [and] of five being mixed, thirteen happens. And like that, variations of two earlier meters being mixed, seven [[mora (linguistics)|morae]] [is] twenty-one. In this way, the process should be followed in all mātrā-vṛttas" <ref>{{Citation|last=Velankar|first=HD|year=1962|title='Vṛttajātisamuccaya' of kavi Virahanka|publisher=Rajasthan Oriental Research Institute|location=Jodhpur|page=101}}</ref>}}</blockquote>
<blockquote>Variations of two earlier meters [is the variation]... For example, for [a meter of length] four, variations of meters of two [and] three being mixed, five happens. [works out examples 8, 13, 21]... In this way, the process should be followed in all ''mātrā-vṛttas'' [prosodic combinations].{{efn|"For four, variations of meters of two [and] three being mixed, five happens. For five, variations of two earlier&nbsp;– three [and] four, being mixed, eight is obtained. In this way, for six, [variations] of four [and] of five being mixed, thirteen happens. And like that, variations of two earlier meters being mixed, seven [[Mora (linguistics)|morae]] [is] twenty-one. In this way, the process should be followed in all mātrā-vṛttas" <ref>{{Citation|last=Velankar|first=HD|year=1962|title='Vṛttajātisamuccaya' of kavi Virahanka|publisher=Rajasthan Oriental Research Institute|location=Jodhpur|page=101}}</ref>}}</blockquote>


[[Hemachandra]] (c.&nbsp;1150) is credited with knowledge of the sequence as well,<ref name=GlobalScience/> writing that "the sum of the last and the one before the last is the number ... of the next mātrā-vṛtta."{{sfn|Livio|2003|p=197–8}}<ref>{{cite journal|last1=Shah|first1=Jayant|year=1991|title=A History of Piṅgala's Combinatorics|url=https://web.northeastern.edu/shah/papers/Pingala.pdf|journal=[[Northeastern University]]|volume=|issue=|page=41|doi=|access-date=4 January 2019}}</ref>
[[Hemachandra]] (c.&nbsp;1150) is credited with knowledge of the sequence as well,<ref name=GlobalScience/> writing that "the sum of the last and the one before the last is the number ... of the next mātrā-vṛtta."{{sfn|Livio|2003|p=197–8}}<ref>{{cite journal|last1=Shah|first1=Jayant|year=1991|title=A History of Piṅgala's Combinatorics|url=https://web.northeastern.edu/shah/papers/Pingala.pdf|journal=[[Northeastern University]]|volume=|issue=|page=41|doi=|access-date=4 January 2019}}</ref>
Line 39: Line 39:
[[File:Liber abbaci magliab f124r.jpg|thumb|A page of [[Fibonacci]]'s ''[[Liber Abaci]]'' from the [[National Central Library (Florence)|Biblioteca Nazionale di Firenze]] showing (in box on right) the Fibonacci sequence with the position in the sequence labeled in Latin and Roman numerals and the value in Hindu-Arabic numerals.]]
[[File:Liber abbaci magliab f124r.jpg|thumb|A page of [[Fibonacci]]'s ''[[Liber Abaci]]'' from the [[National Central Library (Florence)|Biblioteca Nazionale di Firenze]] showing (in box on right) the Fibonacci sequence with the position in the sequence labeled in Latin and Roman numerals and the value in Hindu-Arabic numerals.]]
[[File:FibonacciRabbit.svg|thumb|The number of rabbit pairs form the Fibonacci sequence]]
[[File:FibonacciRabbit.svg|thumb|The number of rabbit pairs form the Fibonacci sequence]]
Outside India, the Fibonacci sequence first appears in the book ''[[Liber Abaci]]'' (1202) by [[Fibonacci]].{{Sfn|Pisano|2002|pp=404–5}}<ref>{{cite web|url=https://www.math.utah.edu/~beebe/software/java/fibonacci/liber-abaci.html|title=Fibonacci's Liber Abaci (Book of Calculation)|date=13 December 2009|website=[[The University of Utah]]|accessdate=28 November 2018}}</ref> using it to calculate the growth of rabbit populations.<ref>{{cite book|last=Hemenway|first=Priya|title=Divine Proportion: Phi In Art, Nature, and Science|year=2005|publisher=Sterling|location=New York|isbn=1-4027-3522-7|pages=20–21}}</ref><ref>{{cite web|url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibnat.html#Rabbits|title=The Fibonacci Numbers and Golden section in Nature - 1|last=Knott|first=Dr. Ron|date=25 September 2016|website=[[University of Surrey]]|accessdate=27 November 2018}}</ref> Fibonacci considers the growth of a hypothetical, idealized (biologically unrealistic) [[rabbit]] population, assuming that: a newly born pair of rabbits, one male, one female, are put in a field; rabbits are able to mate at the age of one month so that at the end of its second month a female can produce another pair of rabbits; rabbits never die and a mating pair always produces one new pair (one male, one female) every month from the second month on. Fibonacci posed the puzzle: how many pairs will there be in one year?
Outside India, the Fibonacci sequence first appears in the book ''[[Liber Abaci]]'' (1202) by [[Fibonacci]].{{Sfn|Pisano|2002|pp=404–5}}<ref>{{cite web|url=https://www.math.utah.edu/~beebe/software/java/fibonacci/liber-abaci.html|title=Fibonacci's Liber Abaci (Book of Calculation)|date=13 December 2009|website=[[The University of Utah]]|accessdate=28 November 2018}}</ref> using it to calculate the growth of rabbit populations.<ref>{{Cite book|last=Hemenway|first=Priya|title=Divine Proportion: Phi In Art, Nature, and Science|year=2005|publisher=Sterling|location=New York|isbn=1-4027-3522-7|pages=20–21}}</ref><ref>{{cite web|url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibnat.html#Rabbits|title=The Fibonacci Numbers and Golden section in Nature - 1|last=Knott|first=Dr. Ron|date=25 September 2016|website=[[University of Surrey]]|accessdate=27 November 2018}}</ref> Fibonacci considers the growth of a hypothetical, idealized (biologically unrealistic) [[rabbit]] population, assuming that: a newly born pair of rabbits, one male, one female, are put in a field; rabbits are able to mate at the age of one month so that at the end of its second month a female can produce another pair of rabbits; rabbits never die and a mating pair always produces one new pair (one male, one female) every month from the second month on. Fibonacci posed the puzzle: how many pairs will there be in one year?


*At the end of the first month, they mate, but there is still only 1 pair.
* At the end of the first month, they mate, but there is still only 1 pair.
*At the end of the second month the female produces a new pair, so now there are 2 pairs of rabbits in the field.
* At the end of the second month the female produces a new pair, so now there are 2 pairs of rabbits in the field.
*At the end of the third month, the original female produces a second pair, making 3 pairs in all in the field.
* At the end of the third month, the original female produces a second pair, making 3 pairs in all in the field.
*At the end of the fourth month, the original female has produced yet another new pair, and the female born two months ago also produces her first pair, making 5 pairs.
* At the end of the fourth month, the original female has produced yet another new pair, and the female born two months ago also produces her first pair, making 5 pairs.


At the end of the ''n''th month, the number of pairs of rabbits is equal to the number of new pairs (that is, the number of pairs in month ''n''&nbsp;−&nbsp;2) plus the number of pairs alive last month (that is, ''n''&nbsp;−&nbsp;1). This is the ''n''th Fibonacci number.<ref>{{cite web |last=Knott |first=Ron |title=Fibonacci's Rabbits |url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibnat.html#Rabbits |publisher=[[University of Surrey]] Faculty of Engineering and Physical Sciences}}</ref>
At the end of the ''n''th month, the number of pairs of rabbits is equal to the number of new pairs (that is, the number of pairs in month ''n''&nbsp;−&nbsp;2) plus the number of pairs alive last month (that is, ''n''&nbsp;−&nbsp;1). This is the ''n''th Fibonacci number.<ref>{{cite web | last = Knott | first = Ron
| title = Fibonacci's Rabbits | url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibnat.html#Rabbits | publisher =[[University of Surrey]] Faculty of Engineering and Physical Sciences}}</ref>


The name "Fibonacci sequence" was first used by the 19th-century number theorist [[Édouard Lucas]].<ref>{{Citation |first=Martin |last=Gardner |author-link=Martin Gardner |title=Mathematical Circus |publisher=The Mathematical Association of America |year=1996 |isbn=978-0-88385-506-5 |quote=It is ironic that Leonardo, who made valuable contributions to mathematics, is remembered today mainly because a 19th-century French number theorist, Édouard Lucas... attached the name Fibonacci to a number sequence that appears in a trivial problem in Liber abaci |page=153}}</ref>
The name "Fibonacci sequence" was first used by the 19th-century number theorist [[Édouard Lucas]].<ref>{{Citation | first = Martin | last = Gardner | author-link = Martin Gardner |title=Mathematical Circus |publisher = The Mathematical Association of America |year=1996 |isbn= 978-0-88385-506-5 | quote = It is ironic that Leonardo, who made valuable contributions to mathematics, is remembered today mainly because a 19th-century French number theorist, Édouard Lucas... attached the name Fibonacci to a number sequence that appears in a trivial problem in Liber abaci | page = 153}}</ref>


==Applications==
== Applications ==
*The Fibonacci numbers are important in the computational run-time analysis of [[Euclidean algorithm|Euclid's algorithm]] to determine the [[greatest common divisor]] of two integers: the worst case input for this algorithm is a pair of consecutive Fibonacci numbers.<ref>{{Citation |first=Donald E |last=Knuth |authorlink=Donald Knuth |year=1997|title=The Art of Computer Programming |volume=1: Fundamental Algorithms|edition=3rd |publisher=Addison–Wesley |isbn=978-0-201-89683-1 |page=343}}</ref>
*The Fibonacci numbers are important in the computational run-time analysis of [[Euclidean algorithm|Euclid's algorithm]] to determine the [[greatest common divisor]] of two integers: the worst case input for this algorithm is a pair of consecutive Fibonacci numbers.<ref>{{Citation| first= Donald E |last= Knuth| authorlink= Donald Knuth | year =1997|title=The Art of Computer Programming | volume = 1: Fundamental Algorithms|edition= 3rd | publisher = Addison–Wesley |isbn=978-0-201-89683-1 | page = 343}}</ref>
*Brasch et al. 2012 show how a generalised Fibonacci sequence also can be connected to the field of economics.<ref name="Brasch et al. 2012">{{Citation |first1=T. von |last1=Brasch |first2=J. |last2=Byström |first3=L.P. |last3=Lystad |title=Optimal Control and the Fibonacci Sequence |journal=Journal of Optimization Theory and Applications |year=2012 |issue=3 |pages=857–78 |doi=10.1007/s10957-012-0061-2
*Brasch et al. 2012 show how a generalised Fibonacci sequence also can be connected to the field of economics.<ref name="Brasch et al. 2012">{{Citation| first1 =T. von | last1 = Brasch | first2 = J. | last2 = Byström | first3 = L.P. | last3 = Lystad| title= Optimal Control and the Fibonacci Sequence |journal = Journal of Optimization Theory and Applications |year=2012 |issue=3 |pages= 857–78 |doi = 10.1007/s10957-012-0061-2
|volume=154 |hdl=11250/180781 |url=http://hdl.handle.net/11250/2580549}}</ref> In particular, it is shown how a generalised Fibonacci sequence enters the control function of finite-horizon dynamic optimisation problems with one state and one control variable. The procedure is illustrated in an example often referred to as the Brock–Mirman economic growth model.
|volume=154 | hdl = 11250/180781 | url = http://hdl.handle.net/11250/2580549 }}</ref> In particular, it is shown how a generalised Fibonacci sequence enters the control function of finite-horizon dynamic optimisation problems with one state and one control variable. The procedure is illustrated in an example often referred to as the Brock–Mirman economic growth model.
*[[Yuri Matiyasevich]] was able to show that the Fibonacci numbers can be defined by a [[Diophantine equation]], which led to [[Matiyasevich's theorem|his solving]] [[Hilbert's tenth problem]].<ref>{{citation|title=Review of Yuri V. Matiyasevich, ''Hibert's Tenth Problem''|journal=Modern Logic|first=Valentina|last=Harizanov|volume=5|issue=3|year=1995|pages=345–355|url=https://projecteuclid.org/euclid.rml/1204900767}}.</ref>
*[[Yuri Matiyasevich]] was able to show that the Fibonacci numbers can be defined by a [[Diophantine equation]], which led to [[Matiyasevich's theorem|his solving]] [[Hilbert's tenth problem]].<ref>{{citation|title=Review of Yuri V. Matiyasevich, ''Hibert's Tenth Problem''|journal=Modern Logic|first=Valentina|last=Harizanov|volume=5|issue=3|year=1995|pages=345–355|url=http://projecteuclid.org/euclid.rml/1204900767}}.</ref>
*The Fibonacci numbers are also an example of a [[complete sequence]]. This means that every positive integer can be written as a sum of Fibonacci numbers, where any one number is used once at most.
*The Fibonacci numbers are also an example of a [[complete sequence]]. This means that every positive integer can be written as a sum of Fibonacci numbers, where any one number is used once at most.
*Moreover, every positive integer can be written in a unique way as the sum of ''one or more'' distinct Fibonacci numbers in such a way that the sum does not include any two consecutive Fibonacci numbers. This is known as [[Zeckendorf's theorem]], and a sum of Fibonacci numbers that satisfies these conditions is called a Zeckendorf representation. The Zeckendorf representation of a number can be used to derive its [[Fibonacci coding]].
*Moreover, every positive integer can be written in a unique way as the sum of ''one or more'' distinct Fibonacci numbers in such a way that the sum does not include any two consecutive Fibonacci numbers. This is known as [[Zeckendorf's theorem]], and a sum of Fibonacci numbers that satisfies these conditions is called a Zeckendorf representation. The Zeckendorf representation of a number can be used to derive its [[Fibonacci coding]].
*Fibonacci numbers are used by some [[pseudorandom number generator]]s.<!-- Knuth vol. 2 -->
*Fibonacci numbers are used by some [[pseudorandom number generators]].<!-- Knuth vol. 2 -->
*They are also used in [[planning poker]], which is a step in estimating in software development projects that use the [[Scrum (software development)|Scrum]] methodology.
*They are also used in [[planning poker]], which is a step in estimating in software development projects that use the [[Scrum (software development)|Scrum]] methodology.
*Fibonacci numbers are used in a polyphase version of the [[merge sort]] algorithm in which an unsorted list is divided into two lists whose lengths correspond to sequential Fibonacci numbers&nbsp;– by dividing the list so that the two parts have lengths in the approximate proportion ''φ''. A tape-drive implementation of the [[polyphase merge sort]] was described in ''[[The Art of Computer Programming]]''.
*Fibonacci numbers are used in a polyphase version of the [[merge sort]] algorithm in which an unsorted list is divided into two lists whose lengths correspond to sequential Fibonacci numbers&nbsp;– by dividing the list so that the two parts have lengths in the approximate proportion ''φ''. A tape-drive implementation of the [[polyphase merge sort]] was described in ''[[The Art of Computer Programming]]''.
*Fibonacci numbers arise in the analysis of the [[Fibonacci heap]] data structure.
*Fibonacci numbers arise in the analysis of the [[Fibonacci heap]] data structure.
*The [[Fibonacci cube]] is an [[undirected graph]] with a Fibonacci number of nodes that has been proposed as a [[network topology]] for [[parallel computing]].
*The [[Fibonacci cube]] is an [[undirected graph]] with a Fibonacci number of nodes that has been proposed as a [[network topology]] for [[parallel computing]].
*A one-dimensional optimization method, called the [[Fibonacci search technique]], uses Fibonacci numbers.<ref>{{Citation |first1=M |last1=Avriel |first2=DJ |last2=Wilde |title=Optimality of the Symmetric Fibonacci Search Technique |journal=Fibonacci Quarterly|year=1966 |issue=3 |pages=265–9}}</ref>
*A one-dimensional optimization method, called the [[Fibonacci search technique]], uses Fibonacci numbers.<ref>{{Citation| first1 = M | last1 = Avriel | first2 = DJ | last2 = Wilde | title= Optimality of the Symmetric Fibonacci Search Technique |journal=Fibonacci Quarterly|year=1966 |issue=3 |pages= 265–9}}</ref>
*The Fibonacci number series is used for optional [[lossy compression]] in the [[Interchange File Format|IFF]] [[8SVX]] audio file format used on [[Amiga]] computers. The number series [[companding|compands]] the original audio wave similar to logarithmic methods such as [[µ-law]].<ref>{{Citation |title=Amiga ROM Kernel Reference Manual |publisher=Addison–Wesley |year=1991}}</ref><ref>{{Citation |url=https://wiki.multimedia.cx/index.php?title=IFF#Fibonacci_Delta_Compression |contribution=IFF |title=Multimedia Wiki}}</ref>
*The Fibonacci number series is used for optional [[lossy compression]] in the [[Interchange File Format|IFF]] [[8SVX]] audio file format used on [[Amiga]] computers. The number series [[companding|compands]] the original audio wave similar to logarithmic methods such as [[µ-law]].<ref>{{Citation | title = Amiga ROM Kernel Reference Manual | publisher = Addison–Wesley | year = 1991}}</ref><ref>{{Citation | url = http://wiki.multimedia.cx/index.php?title=IFF#Fibonacci_Delta_Compression | contribution = IFF | title = Multimedia Wiki}}</ref>
*Since the [[conversion of units|conversion]] factor 1.609344 for miles to kilometers is close to the golden ratio, the decomposition of distance in miles into a sum of Fibonacci numbers becomes nearly the kilometer sum when the Fibonacci numbers are replaced by their successors. This method amounts to a [[radix]] 2 number [[processor register|register]] in [[golden ratio base]] ''φ'' being shifted. To convert from kilometers to miles, shift the register down the Fibonacci sequence instead.<ref>{{Citation |url=https://www.encyclopediaofmath.org/index.php/Zeckendorf_representation |contribution=Zeckendorf representation |title=Encyclopedia of Math}}</ref>
*Since the [[conversion of units|conversion]] factor 1.609344 for miles to kilometers is close to the golden ratio, the decomposition of distance in miles into a sum of Fibonacci numbers becomes nearly the kilometer sum when the Fibonacci numbers are replaced by their successors. This method amounts to a [[radix]] 2 number [[processor register|register]] in [[golden ratio base]] ''φ'' being shifted. To convert from kilometers to miles, shift the register down the Fibonacci sequence instead.<ref>{{Citation | url = http://www.encyclopediaofmath.org/index.php/Zeckendorf_representation | contribution = Zeckendorf representation | title = Encyclopedia of Math}}</ref>
*In [[optics]], when a beam of light shines at an angle through two stacked transparent plates of different materials of different [[refractive index]]es, it may reflect off three surfaces: the top, middle, and bottom surfaces of the two plates. The number of different beam paths that have {{mvar|k}} reflections, for {{math|''k'' > 1}}, is the <math>k</math>th Fibonacci number. (However, when {{math|1=''k'' = 1}}, there are three reflection paths, not two, one for each of the three surfaces.){{sfn|Livio|2003|pp=98–9}}
*In [[optics]], when a beam of light shines at an angle through two stacked transparent plates of different materials of different [[refractive index]]es, it may reflect off three surfaces: the top, middle, and bottom surfaces of the two plates. The number of different beam paths that have {{mvar|k}} reflections, for {{math|''k'' > 1}}, is the <math>k</math>th Fibonacci number. (However, when {{math|1=''k'' = 1}}, there are three reflection paths, not two, one for each of the three surfaces.){{sfn|Livio|2003|pp=98–9}}
*[[Mario Merz]] included the Fibonacci sequence in some of his works beginning in 1970.{{sfn|Livio|2003|p=176}}
*[[Mario Merz]] included the Fibonacci sequence in some of his works beginning in 1970.{{sfn|Livio|2003|p=176}}
*[[Fibonacci retracement]] levels are widely used in [[technical analysis]] for financial market trading.
* [[Fibonacci retracement]] levels are widely used in [[technical analysis]] for financial market trading.


===Music===
=== Music ===
{{See also|Golden ratio#Music}}
{{see also|Golden ratio#Music}}
[[Joseph Schillinger]] (1895–1943) developed a [[Schillinger System|system of composition]] which uses Fibonacci intervals in some of its melodies; he viewed these as the musical counterpart to the elaborate harmony evident within nature.{{sfn|Livio|2003|p=193}}
[[Joseph Schillinger]] (1895–1943) developed a [[Schillinger System|system of composition]] which uses Fibonacci intervals in some of its melodies; he viewed these as the musical counterpart to the elaborate harmony evident within nature.{{sfn|Livio|2003|p=193}}


===Nature===
=== Nature ===
{{Further |Patterns in nature}}
{{Further |Patterns in nature}}
{{See also|Golden ratio#Nature}}
{{see also|Golden ratio#Nature}}
[[File:FibonacciChamomile.PNG|thumb|[[Yellow chamomile]] head showing the arrangement in 21 (blue) and 13 (aqua) spirals. Such arrangements involving consecutive Fibonacci numbers appear in a wide variety of plants.]]
[[File:FibonacciChamomile.PNG|thumb|[[Yellow chamomile]] head showing the arrangement in 21 (blue) and 13 (aqua) spirals. Such arrangements involving consecutive Fibonacci numbers appear in a wide variety of plants.]]


Fibonacci sequences appear in biological settings,<ref>{{Citation |first1=S |last1=Douady |first2=Y |last2=Couder |title=Phyllotaxis as a Dynamical Self Organizing Process |journal=Journal of Theoretical Biology |year=1996 |issue=3 |pages=255–74 |url=http://www.math.ntnu.no/~jarlet/Douady96.pdf |doi=10.1006/jtbi.1996.0026 |volume=178 |deadurl=yes |archiveurl=https://web.archive.org/web/20060526054108/http://www.math.ntnu.no/~jarlet/Douady96.pdf |archivedate=2006-05-26 |df=}}</ref> such as branching in trees, [[phyllotaxis|arrangement of leaves on a stem]], the fruitlets of a [[pineapple]],<ref>{{Citation |first1=Judy |last1=Jones |first2=William |last2=Wilson |title=An Incomplete Education |publisher=Ballantine Books |year=2006 |isbn=978-0-7394-7582-9 |page=544 |chapter=Science}}</ref> the flowering of [[artichoke]], an uncurling fern and the arrangement of a [[pine cone]],<ref>{{Citation |first=A |last=Brousseau |title=Fibonacci Statistics in Conifers |journal=[[Fibonacci Quarterly]] |year=1969 |issue=7 |pages=525–32}}</ref> and the family tree of honeybees.<ref>{{cite web|url=http://www.cs4fn.org/maths/bee-davinci.php |work=Maths |publisher=Computer Science For Fun: CS4FN |title=Marks for the da Vinci Code: B–}}</ref><ref>{{Citation|first1=T.C.|last1=Scott|first2=P.|last2=Marketos |url=http://www-history.mcs.st-andrews.ac.uk/Publications/fibonacci.pdf |title=On the Origin of the Fibonacci Sequence |publisher=[[MacTutor History of Mathematics archive]], University of St Andrews |date=March 2014}}</ref> [[Kepler]] pointed out the presence of the Fibonacci sequence in nature, using it to explain the ([[golden ratio]]-related) pentagonal form of some flowers.{{sfn|Livio|2003|p=110}} Field [[Leucanthemum vulgare|daisies]] most often have petals in counts of Fibonacci numbers.{{sfn|Livio|2003|pp=112–13}} In 1754, [[Charles Bonnet]] discovered that the spiral phyllotaxis of plants were frequently expressed in Fibonacci number series.<ref>{{cite web|url=http://www.amnh.org:80/learn-teach/young-naturalist-awards/winning-essays/2011/the-secret-of-the-fibonacci-sequence-in-trees|title=The Secret of the Fibonacci Sequence in Trees|year=2011|website=[[American Museum of Natural History]]|archiveurl=https://web.archive.org/web/20130504125059/http://www.amnh.org:80/learn-teach/young-naturalist-awards/winning-essays/2011/the-secret-of-the-fibonacci-sequence-in-trees|archivedate=4 May 2013|accessdate=4 February 2019}}</ref>
Fibonacci sequences appear in biological settings,<ref>{{Citation |first1=S |last1=Douady |first2=Y |last2=Couder |title=Phyllotaxis as a Dynamical Self Organizing Process |journal=Journal of Theoretical Biology |year=1996 |issue=3 |pages=255–74 |url=http://www.math.ntnu.no/~jarlet/Douady96.pdf |doi=10.1006/jtbi.1996.0026 |volume=178 |deadurl=yes |archiveurl=https://web.archive.org/web/20060526054108/http://www.math.ntnu.no/~jarlet/Douady96.pdf |archivedate=2006-05-26 |df= }}</ref> such as branching in trees, [[Phyllotaxis|arrangement of leaves on a stem]], the fruitlets of a [[pineapple]],<ref>{{Citation | first1=Judy |last1=Jones | first2=William | last2=Wilson |title=An Incomplete Education |publisher=Ballantine Books |year=2006 |isbn=978-0-7394-7582-9 |page=544 |chapter=Science}}</ref> the flowering of [[artichoke]], an uncurling fern and the arrangement of a [[pine cone]],<ref>{{Citation| first=A | last=Brousseau |title=Fibonacci Statistics in Conifers | journal=[[Fibonacci Quarterly]] |year=1969 |issue=7 |pages=525–32}}</ref> and the family tree of honeybees.<ref>{{cite web|url = http://www.cs4fn.org/maths/bee-davinci.php |work = Maths | publisher = Computer Science For Fun: CS4FN |title = Marks for the da Vinci Code: B–}}</ref><ref>{{Citation|first1=T.C.|last1=Scott|first2=P.|last2=Marketos| url = http://www-history.mcs.st-andrews.ac.uk/Publications/fibonacci.pdf | title = On the Origin of the Fibonacci Sequence | publisher = [[MacTutor History of Mathematics archive]], University of St Andrews| date = March 2014}}</ref> [[Kepler]] pointed out the presence of the Fibonacci sequence in nature, using it to explain the ([[golden ratio]]-related) pentagonal form of some flowers.{{sfn|Livio|2003|p=110}} Field [[Leucanthemum vulgare|daisies]] most often have petals in counts of Fibonacci numbers.{{sfn|Livio|2003|pp=112–13}} In 1754, [[Charles Bonnet]] discovered that the spiral phyllotaxis of plants were frequently expressed in Fibonacci number series.<ref>{{cite web|url=http://www.amnh.org:80/learn-teach/young-naturalist-awards/winning-essays/2011/the-secret-of-the-fibonacci-sequence-in-trees|title=The Secret of the Fibonacci Sequence in Trees|year=2011|website=[[American Museum of Natural History]]|archiveurl=https://web.archive.org/web/20130504125059/http://www.amnh.org:80/learn-teach/young-naturalist-awards/winning-essays/2011/the-secret-of-the-fibonacci-sequence-in-trees|archivedate=4 May 2013|accessdate=4 February 2019}}</ref>


[[Przemysław Prusinkiewicz]] advanced the idea that real instances can in part be understood as the expression of certain algebraic constraints on [[free group]]s, specifically as certain [[L-system|Lindenmayer grammars]].<ref>{{Citation|first1=Przemyslaw |last1=Prusinkiewicz |first2=James |last2=Hanan |title=Lindenmayer Systems, Fractals, and Plants (Lecture Notes in Biomathematics) |publisher=[[Springer Science+Business Media|Springer-Verlag]] |year=1989 |isbn=978-0-387-97092-9}}</ref>
[[Przemysław Prusinkiewicz]] advanced the idea that real instances can in part be understood as the expression of certain algebraic constraints on [[free group]]s, specifically as certain [[L-system|Lindenmayer grammars]].<ref>{{Citation|first1 = Przemyslaw |last1 = Prusinkiewicz | first2 = James | last2 = Hanan| title = Lindenmayer Systems, Fractals, and Plants (Lecture Notes in Biomathematics) |publisher= [[Springer Science+Business Media|Springer-Verlag]] |year=1989 |isbn=978-0-387-97092-9}}</ref>


[[File:SunflowerModel.svg|thumb|Illustration of Vogel's model for {{math|''n'' {{=}} 1 ... 500}}]]
[[File:SunflowerModel.svg|thumb|Illustration of Vogel's model for {{math|''n'' {{=}} 1 ... 500}}]]
A model for the pattern of [[floret]]s in the head of a [[sunflower]] was proposed by {{Interlanguage link|Helmut Vogel|de|Helmut Vogel (Physiker)}} in 1979.<ref>{{Citation |last=Vogel |first=Helmut |title=A better way to construct the sunflower head |journal=Mathematical Biosciences |issue=3–4 |pages=179–89 |year=1979 |doi=10.1016/0025-5564(79)90080-4 |volume=44}}</ref> This has the form
A model for the pattern of [[floret]]s in the head of a [[sunflower]] was proposed by {{ill|Helmut Vogel|de|Helmut Vogel (Physiker)}} in 1979.<ref>{{Citation | last =Vogel | first =Helmut | title =A better way to construct the sunflower head | journal = Mathematical Biosciences | issue =3–4 | pages = 179–89 | year = 1979 | doi = 10.1016/0025-5564(79)90080-4 | volume = 44}}</ref> This has the form

:<math>\theta = \frac{2\pi}{\phi^2} n,\ r = c \sqrt{n}</math>
:<math>\theta = \frac{2\pi}{\phi^2} n,\ r = c \sqrt{n}</math>


where ''n'' is the index number of the floret and ''c'' is a constant scaling factor; the florets thus lie on [[Fermat's spiral]]. The divergence angle, approximately 137.51°, is the [[golden angle]], dividing the circle in the golden ratio. Because this ratio is irrational, no floret has a neighbor at exactly the same angle from the center, so the florets pack efficiently. Because the rational approximations to the golden ratio are of the form ''F''(''j''):''F''(''j''&nbsp;+&nbsp;1), the nearest neighbors of floret number ''n'' are those at ''n''&nbsp;±&nbsp;''F''(''j'') for some index ''j'', which depends on ''r'', the distance from the center. Sunflowers and similar flowers most commonly have spirals of florets in clockwise and counter-clockwise directions in the amount of adjacent Fibonacci numbers,{{sfn|Livio|2003|p=112}} typically counted by the outermost range of radii.<ref>{{Citation |last1=Prusinkiewicz |first1=Przemyslaw |author1-link=Przemyslaw Prusinkiewicz |author2-link=Aristid Lindenmayer |last2=Lindenmayer |first2=Aristid |title=The Algorithmic Beauty of Plants |publisher=Springer-Verlag |year=1990 |pages=101–107 |chapter=4 |chapter-url=http://algorithmicbotany.org/papers/#webdocs |isbn=978-0-387-97297-8}}</ref>
where ''n'' is the index number of the floret and ''c'' is a constant scaling factor; the florets thus lie on [[Fermat's spiral]]. The divergence angle, approximately 137.51°, is the [[golden angle]], dividing the circle in the golden ratio. Because this ratio is irrational, no floret has a neighbor at exactly the same angle from the center, so the florets pack efficiently. Because the rational approximations to the golden ratio are of the form ''F''(''j''):''F''(''j''&nbsp;+&nbsp;1), the nearest neighbors of floret number ''n'' are those at ''n''&nbsp;±&nbsp;''F''(''j'') for some index ''j'', which depends on ''r'', the distance from the center. Sunflowers and similar flowers most commonly have spirals of florets in clockwise and counter-clockwise directions in the amount of adjacent Fibonacci numbers,{{sfn|Livio|2003|p=112}} typically counted by the outermost range of radii.<ref>{{Citation | last1 =Prusinkiewicz | first1 = Przemyslaw | author1-link = Przemyslaw Prusinkiewicz | author2-link = Aristid Lindenmayer| last2 = Lindenmayer | first2 = Aristid | title = The Algorithmic Beauty of Plants | publisher =Springer-Verlag | year= 1990 | pages =101–107 | chapter = 4 | chapter-url = http://algorithmicbotany.org/papers/#webdocs | isbn = 978-0-387-97297-8}}</ref>


Fibonacci numbers also appear in the pedigrees of idealized honeybees, according to the following rules:
Fibonacci numbers also appear in the pedigrees of idealized honeybees, according to the following rules:
*If an egg is laid by an unmated female, it hatches a male or [[drone (bee)|drone bee]].
*If, however, an egg was fertilized by a male, it hatches a female.


* If an egg is laid by an unmated female, it hatches a male or [[Drone (bee)|drone bee]].
Thus, a male bee always has one parent, and a female bee has two. If one traces the pedigree of any male bee (1 bee), he has 1 parent (1 bee), 2 grandparents, 3 great-grandparents, 5 great-great-grandparents, and so on. This sequence of numbers of parents is the Fibonacci sequence. The number of ancestors at each level, ''F''<sub>''n''</sub>, is the number of female ancestors, which is ''F''<sub>''n''−1</sub>, plus the number of male ancestors, which is ''F''<sub>''n''−2</sub>.<ref>{{Citation |url=http://www.fq.math.ca/Scanned/1-1/basin.pdf |title=The Fibonacci sequence as it appears in nature |journal=The Fibonacci Quarterly |volume=1 |number=1 |pages=53–56 |year=1963}}</ref> This is under the unrealistic assumption that the ancestors at each level are otherwise unrelated.
* If, however, an egg was fertilized by a male, it hatches a female.

Thus, a male bee always has one parent, and a female bee has two. If one traces the pedigree of any male bee (1 bee), he has 1 parent (1 bee), 2 grandparents, 3 great-grandparents, 5 great-great-grandparents, and so on. This sequence of numbers of parents is the Fibonacci sequence. The number of ancestors at each level, ''F''<sub>''n''</sub>, is the number of female ancestors, which is ''F''<sub>''n''−1</sub>, plus the number of male ancestors, which is ''F''<sub>''n''−2</sub>.<ref>{{Citation | url = http://www.fq.math.ca/Scanned/1-1/basin.pdf | title = The Fibonacci sequence as it appears in nature | journal = The Fibonacci Quarterly | volume = 1 | number = 1 | pages = 53–56 | year = 1963}}</ref> This is under the unrealistic assumption that the ancestors at each level are otherwise unrelated.


[[File:X chromosome ancestral line Fibonacci sequence.svg|thumb|360px|The number of possible ancestors on the X chromosome inheritance line at a given ancestral generation follows the Fibonacci sequence. (After Hutchison, L. "Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships".<ref name="xcs"/>)]]
[[File:X chromosome ancestral line Fibonacci sequence.svg|thumb|360px|The number of possible ancestors on the X chromosome inheritance line at a given ancestral generation follows the Fibonacci sequence. (After Hutchison, L. "Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships".<ref name="xcs"/>)]]


[[Luke Hutchison]] noticed that the number of possible ancestors on the human [[X chromosome]] inheritance line at a given ancestral generation also follows the Fibonacci sequence.<ref name="xcs">{{cite journal|last=Hutchison|first=Luke|date=September 2004|title=Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships|url=http://fhtw.byu.edu/static/conf/2005/hutchison-growing-fhtw2005.pdf|journal=Proceedings of the First Symposium on Bioinformatics and Biotechnology (BIOT-04)|volume=|issue=|doi=|pmid=|access-date=2016-09-03|via=}}</ref> A male individual has an X chromosome, which he received from his mother, and a [[Y chromosome]], which he received from his father. The male counts as the "origin" of his own X chromosome (<math>F_1=1</math>), and at his parents' generation, his X chromosome came from a single parent (<math>F_2=1</math>). The male's mother received one X chromosome from her mother (the son's maternal grandmother), and one from her father (the son's maternal grandfather), so two grandparents contributed to the male descendant's X chromosome (<math>F_3=2</math>). The maternal grandfather received his X chromosome from his mother, and the maternal grandmother received X chromosomes from both of her parents, so three great-grandparents contributed to the male descendant's X chromosome (<math>F_4=3</math>). Five great-great-grandparents contributed to the male descendant's X chromosome (<math>F_5=5</math>), etc. (This assumes that all ancestors of a given descendant are independent, but if any genealogy is traced far enough back in time, ancestors begin to appear on multiple lines of the genealogy, until eventually a [[founder effect|population founder]] appears on all lines of the genealogy.)
[[Luke Hutchison]] noticed that the number of possible ancestors on the human [[X chromosome]] inheritance line at a given ancestral generation also follows the Fibonacci sequence.<ref name="xcs">{{Cite journal|last=Hutchison|first=Luke|date=September 2004|title=Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships|url=http://fhtw.byu.edu/static/conf/2005/hutchison-growing-fhtw2005.pdf|journal=Proceedings of the First Symposium on Bioinformatics and Biotechnology (BIOT-04)|volume=|issue=|doi=|pmid=|access-date=2016-09-03|via=}}</ref> A male individual has an X chromosome, which he received from his mother, and a [[Y chromosome]], which he received from his father. The male counts as the "origin" of his own X chromosome (<math>F_1=1</math>), and at his parents' generation, his X chromosome came from a single parent (<math>F_2=1</math>). The male's mother received one X chromosome from her mother (the son's maternal grandmother), and one from her father (the son's maternal grandfather), so two grandparents contributed to the male descendant's X chromosome (<math>F_3=2</math>). The maternal grandfather received his X chromosome from his mother, and the maternal grandmother received X chromosomes from both of her parents, so three great-grandparents contributed to the male descendant's X chromosome (<math>F_4=3</math>). Five great-great-grandparents contributed to the male descendant's X chromosome (<math>F_5=5</math>), etc. (This assumes that all ancestors of a given descendant are independent, but if any genealogy is traced far enough back in time, ancestors begin to appear on multiple lines of the genealogy, until eventually a [[Founder effect|population founder]] appears on all lines of the genealogy.)


The pathways of [[tubulin]]s on intracellular [[microtubule]]s arrange in patterns of 3, 5, 8 and 13.<ref>{{cite journal|title=Consciousness in the universe: A review of the 'Orch OR' theory|last1=Hameroff|first1=Stuart|last2=Penrose|first2=Roger|date=March 2014|journal=Physics of Life Reviews|publisher=Elsevier|volume=11|issue=1|pages=39–78|doi=10.1016/j.plrev.2013.08.002|pmid=24070914|bibcode=2014PhLRv..11...39H}}</ref>
The pathways of [[tubulin]]s on intracellular [[microtubule]]s arrange in patterns of 3, 5, 8 and 13.<ref>{{cite journal|title=Consciousness in the universe: A review of the 'Orch OR' theory|last1=Hameroff|first1=Stuart|last2=Penrose|first2=Roger|date=March 2014|journal=Physics of Life Reviews|publisher=Elsevier|volume=11|issue=1|pages=39–78|doi=10.1016/j.plrev.2013.08.002|pmid=24070914|bibcode=2014PhLRv..11...39H}}</ref>


==Mathematics==
== Mathematics ==
[[File:PascalTriangleFibanacci.svg|thumb|right|360px|The Fibonacci numbers are the sums of the "shallow" diagonals (shown in red) of [[Pascal's triangle]].]]
[[File:PascalTriangleFibanacci.svg|thumb|right|360px|The Fibonacci numbers are the sums of the "shallow" diagonals (shown in red) of [[Pascal's triangle]].]]
The Fibonacci numbers occur in the sums of "shallow" diagonals in [[Pascal's triangle]] (see [[binomial coefficient]]):{{Sfn |Lucas |1891 |p=7}}
The Fibonacci numbers occur in the sums of "shallow" diagonals in [[Pascal's triangle]] (see [[binomial coefficient]]):{{Sfn | Lucas | 1891 | p = 7}}

:<math>F_n = \sum_{k=0}^{\left\lfloor\frac{n-1}{2}\right\rfloor} \binom{n-k-1}{k}.</math>
:<math>F_n = \sum_{k=0}^{\left\lfloor\frac{n-1}{2}\right\rfloor} \binom{n-k-1}{k}.</math>


These numbers also give the solution to certain enumerative problems,<ref>{{cite book|last=Stanley|first=Richard|title=Enumerative Combinatorics I (2nd ed.)|year=2011|publisher=Cambridge Univ. Press|isbn=978-1-107-60262-5|page=121, Ex 1.35}}</ref> the most common of which is that of counting the number of ways of writing a given number ''n'' as an ordered sum of 1s and 2s (called [[composition (combinatorics)|compositions]]); there are ''F''<sub>''n''+1</sub> ways to do this. For example, if ''n'' = 5, then ''F''<sub>''n''+1</sub> = ''F''<sub>6</sub> = 8 counts the eight compositions summing to 5:
These numbers also give the solution to certain enumerative problems,<ref>{{cite book|last=Stanley|first=Richard|title=Enumerative Combinatorics I (2nd ed.)|year=2011|publisher=Cambridge Univ. Press|isbn=978-1-107-60262-5|page=121, Ex 1.35}}</ref> the most common of which is that of counting the number of ways of writing a given number ''n'' as an ordered sum of 1s and 2s (called [[Composition (combinatorics)|compositions]]); there are ''F''<sub>''n''+1</sub> ways to do this. For example, if ''n'' = 5, then ''F''<sub>''n''+1</sub> = ''F''<sub>6</sub> = 8 counts the eight compositions summing to 5:

:5 = 1+1+1+1+1 = 1+1+1+2 = 1+1+2+1 = 1+2+1+1 = 2+1+1+1 = 2+2+1 = 2+1+2 = 1+2+2.
:5 = 1+1+1+1+1 = 1+1+1+2 = 1+1+2+1 = 1+2+1+1 = 2+1+1+1 = 2+2+1 = 2+1+2 = 1+2+2.


The Fibonacci numbers can be found in different ways among the set of [[binary numeral system|binary]] [[string (computer science)|strings]], or equivalently, among the [[subset]]s of a given set.
The Fibonacci numbers can be found in different ways among the set of [[binary numeral system|binary]] [[String (computer science)|strings]], or equivalently, among the [[subset]]s of a given set.


*The number of binary strings of length ''n'' without consecutive 1s is the Fibonacci number ''F''<sub>''n''+2</sub>. For example, out of the 16 binary strings of length 4, there are ''F''<sub>6</sub> = 8 without consecutive 1s&nbsp;– they are 0000, 0001, 0010, 0100, 0101, 1000, 1001, and 1010. Equivalently, ''F''<sub>''n''+2</sub> is the number of subsets ''S'' of {{mset|1, ..., ''n''}} without consecutive integers, that is, those ''S'' for which {{mset|''i'', ''i'' + 1}} ⊈ ''S'' for every ''i''.
* The number of binary strings of length ''n'' without consecutive 1s is the Fibonacci number ''F''<sub>''n''+2</sub>. For example, out of the 16 binary strings of length 4, there are ''F''<sub>6</sub> = 8 without consecutive 1s&nbsp;– they are 0000, 0001, 0010, 0100, 0101, 1000, 1001, and 1010. Equivalently, ''F''<sub>''n''+2</sub> is the number of subsets ''S'' of {{mset|1, ..., ''n''}} without consecutive integers, that is, those ''S'' for which {{mset|''i'', ''i'' + 1}} ⊈ ''S'' for every ''i''.
*The number of binary strings of length ''n'' without an odd number of consecutive 1s is the Fibonacci number ''F''<sub>''n+1''</sub>. For example, out of the 16 binary strings of length 4, there are ''F''<sub>5</sub> = 5 without an odd number of consecutive 1s&nbsp;– they are 0000, 0011, 0110, 1100, 1111. Equivalently, the number of subsets ''S'' of {{mset|1, ..., ''n''}} without an odd number of consecutive integers is ''F''<sub>''n''+1</sub>.
* The number of binary strings of length ''n'' without an odd number of consecutive 1s is the Fibonacci number ''F''<sub>''n+1''</sub>. For example, out of the 16 binary strings of length 4, there are ''F''<sub>5</sub> = 5 without an odd number of consecutive 1s&nbsp;– they are 0000, 0011, 0110, 1100, 1111. Equivalently, the number of subsets ''S'' of {{mset|1, ..., ''n''}} without an odd number of consecutive integers is ''F''<sub>''n''+1</sub>.
*The number of binary strings of length ''n'' without an even number of consecutive 0s or 1s is 2''F''<sub>''n''</sub>. For example, out of the 16 binary strings of length 4, there are 2''F''<sub>4</sub> = 6 without an even number of consecutive 0s or 1s&nbsp;– they are 0001, 0111, 0101, 1000, 1010, 1110. There is an equivalent statement about subsets.
* The number of binary strings of length ''n'' without an even number of consecutive 0s or 1s is 2''F''<sub>''n''</sub>. For example, out of the 16 binary strings of length 4, there are 2''F''<sub>4</sub> = 6 without an even number of consecutive 0s or 1s&nbsp;– they are 0001, 0111, 0101, 1000, 1010, 1110. There is an equivalent statement about subsets.


===Sequence properties===
=== Sequence properties ===
The first 21 Fibonacci numbers ''F<sub>n</sub>'' for ''n''&nbsp;=&nbsp;0,&nbsp;1,&nbsp;2, ..., 20 are:<ref>{{Citation |url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibtable.html |publisher=Surrey |place=UK |first=R |last=Knott |title=Fibonacci |contribution=Fib table}} has the first 300 F<sub>''n''</sub> factored into primes and links to more extensive tables.</ref>
The first 21 Fibonacci numbers ''F<sub>n</sub>'' for ''n''&nbsp;=&nbsp;0,&nbsp;1,&nbsp;2, ..., 20 are:<ref>{{Citation | url = http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibtable.html | publisher = Surrey | place = UK | first = R | last = Knott | title = Fibonacci | contribution = Fib table}} has the first 300 F<sub>''n''</sub> factored into primes and links to more extensive tables.</ref>
:{| class="wikitable" style="text-align:right"
:{| class="wikitable" style="text-align:right"
|-
|-
Line 164: Line 169:


The sequence can also be extended to negative index ''n'' using the re-arranged recurrence relation
The sequence can also be extended to negative index ''n'' using the re-arranged recurrence relation

:<math>F_{n-2} = F_n - F_{n-1},</math>
:<math>F_{n-2} = F_n - F_{n-1},</math>


{{Anchor|Negafibonacci}} which yields the sequence of "negafibonacci" numbers<ref>{{Citation |last=Knuth |first=Donald |contribution=Negafibonacci Numbers and the Hyperbolic Plane |title=Annual meeting |publisher=The Mathematical Association of America |place=The Fairmont Hotel, San Jose, CA |date=2008-12-11 |url=http://research.allacademic.com/meta/p206842_index.html}}</ref> satisfying
{{anchor |Negafibonacci}} which yields the sequence of "negafibonacci" numbers<ref>{{Citation | last = Knuth | first = Donald | contribution = Negafibonacci Numbers and the Hyperbolic Plane | title = Annual meeting | publisher = The Mathematical Association of America | place = The Fairmont Hotel, San Jose, CA | date = 2008-12-11 | url = http://research.allacademic.com/meta/p206842_index.html}}</ref> satisfying
:<math>F_{-n} = (-1)^{n+1} F_n.</math>
:<math>F_{-n} = (-1)^{n+1} F_n.</math>


Line 210: Line 216:
|}
|}


===Relation to the golden ratio===
=== Relation to the golden ratio ===
{{Main|Golden ratio}}
{{main|Golden ratio}}
==== {{anchor|Binet's formula}}Closed-form expression ====
Like every sequence defined by a [[Constant-recursive sequence|linear recurrence with constant coefficients]], the Fibonacci numbers have a [[closed form expression|closed-form solution]]. It has become known as "[[Jacques Philippe Marie Binet|Binet]]'s formula", though it was already known by [[Abraham de Moivre]] and [[Daniel Bernoulli]]:<ref>{{MathWorld|title=Binet's Fibonacci Number Formula|urlname=BinetsFibonacciNumberFormula}}</ref>


===={{Anchor|Binet's formula}}Closed-form expression====
Like every sequence defined by a [[constant-recursive sequence|linear recurrence with constant coefficients]], the Fibonacci numbers have a [[closed form expression|closed-form solution]]. It has become known as "[[Jacques Philippe Marie Binet|Binet]]'s formula", though it was already known by [[Abraham de Moivre]] and [[Daniel Bernoulli]]:<ref>{{MathWorld|title=Binet's Fibonacci Number Formula|urlname=BinetsFibonacciNumberFormula}}</ref>
:<math>F_n = \frac{\varphi^n-\psi^n}{\varphi-\psi} = \frac{\varphi^n-\psi^n}{\sqrt 5}</math>
:<math>F_n = \frac{\varphi^n-\psi^n}{\varphi-\psi} = \frac{\varphi^n-\psi^n}{\sqrt 5}</math>


where
where

:<math>\varphi = \frac{1 + \sqrt{5}}{2} \approx 1.61803\,39887\ldots</math>
:<math>\varphi = \frac{1 + \sqrt{5}}{2} \approx 1.61803\,39887\ldots</math>


is the [[golden ratio]] ({{OEIS2C|id=A001622}}), and
is the [[golden ratio]] ({{OEIS2C|id=A001622}}), and
:<math>\psi = \frac{1 - \sqrt{5}}{2} = 1 - \varphi = - {1 \over \varphi} \approx -0.61803\,39887\ldots.</math>{{Sfn |Ball |2003 |p = 156}}
:<math>\psi = \frac{1 - \sqrt{5}}{2} = 1 - \varphi = - {1 \over \varphi} \approx -0.61803\,39887\ldots.</math>{{Sfn | Ball | 2003 | p = 156}}


Since <math>\psi = -\varphi^{-1}</math>, this formula can also be written as
Since <math>\psi = -\varphi^{-1}</math>, this formula can also be written as
:<math>F_n = \frac{\varphi^n-(-\varphi)^{-n}}{\sqrt 5} = \frac{\varphi^n-(-\varphi)^{-n}}{2 \varphi - 1}</math>


<math>F_n = \frac{\varphi^n-(-\varphi)^{-n}}{\sqrt 5} = \frac{\varphi^n-(-\varphi)^{-n}}{2 \varphi - 1}</math>
To see this,{{Sfn |Ball |2003 |pp = 155–6}} note that {{mvar|φ}} and {{mvar|ψ}} are both solutions of the equations

To see this,{{Sfn | Ball | 2003 | pp = 155–6}} note that {{mvar|φ}} and {{mvar|ψ}} are both solutions of the equations

:<math>x^2 = x + 1 \quad\text{and}\quad x^n = x^{n-1} + x^{n-2},</math>
:<math>x^2 = x + 1 \quad\text{and}\quad x^n = x^{n-1} + x^{n-2},</math>


so the powers of {{mvar|φ}} and {{mvar|ψ}} satisfy the Fibonacci recursion. In other words,
so the powers of {{mvar|φ}} and {{mvar|ψ}} satisfy the Fibonacci recursion. In other words,

:<math>\varphi^n = \varphi^{n-1} + \varphi^{n-2}</math>
:<math>\varphi^n = \varphi^{n-1} + \varphi^{n-2}</math>


Line 250: Line 260:


Taking the starting values ''U''<sub>0</sub> and ''U''<sub>1</sub> to be arbitrary constants, a more general solution is:
Taking the starting values ''U''<sub>0</sub> and ''U''<sub>1</sub> to be arbitrary constants, a more general solution is:

:<math> U_n=a\varphi^n+b\psi^n </math>
:<math> U_n=a\varphi^n+b\psi^n </math>
where
where

:<math> a=\frac{U_1-U_0\psi}{\sqrt 5}</math>
:<math> a=\frac{U_1-U_0\psi}{\sqrt 5}</math>
:<math> b=\frac{U_0\varphi-U_1}{\sqrt 5}</math>.
:<math> b=\frac{U_0\varphi-U_1}{\sqrt 5}</math>.


====Computation by rounding====
==== Computation by rounding ====
Since
Since
:<math>\left|\frac{\psi^{n}}{\sqrt 5}\right| < \frac{1}{2}</math>
:<math>\left|\frac{\psi^{n}}{\sqrt 5}\right| < \frac{1}{2}</math>


for all ''n'' ≥ 0, the number ''F''<sub>''n''</sub> is the closest integer to <math>\frac{\varphi^n}{\sqrt 5}</math>. Therefore, it can be found by [[Rrounding#Exact computation with rounded arithmetic|rounding]], that is by the use of the nearest integer function:
for all ''n'' ≥ 0, the number ''F''<sub>''n''</sub> is the closest integer to <math>\frac{\varphi^n}{\sqrt 5}</math>. Therefore, it can be found by [[Rounding#Exact computation with rounded arithmetic|rounding]], that is by the use of the nearest integer function:
:<math>F_n=\left[\frac{\varphi^n}{\sqrt 5}\right],\ n \geq 0,</math>
:<math>F_n=\left[\frac{\varphi^n}{\sqrt 5}\right],\ n \geq 0,</math>


Line 271: Line 283:
For example, <math>\log_\varphi(x) = \ln(x)/\ln(\varphi) = \log_{10}(x)/\log_{10}(\varphi)</math>.
For example, <math>\log_\varphi(x) = \ln(x)/\ln(\varphi) = \log_{10}(x)/\log_{10}(\varphi)</math>.


====Limit of consecutive quotients====
==== Limit of consecutive quotients ====
[[Johannes Kepler]] observed that the ratio of consecutive Fibonacci numbers converges. He wrote that "as 5 is to 8 so is 8 to 13, practically, and as 8 is to 13, so is 13 to 21 almost", and concluded that these ratios approach the golden ratio <math>\varphi\colon</math><ref>{{Citation|last=Kepler |first=Johannes |title=A New Year Gift: On Hexagonal Snow |year=1966 |isbn=978-0-19-858120-8 |publisher=Oxford University Press |page=92}}</ref><ref>{{Citation |title=Strena seu de Nive Sexangula |year=1611}}</ref>
[[Johannes Kepler]] observed that the ratio of consecutive Fibonacci numbers converges. He wrote that "as 5 is to 8 so is 8 to 13, practically, and as 8 is to 13, so is 13 to 21 almost", and concluded that these ratios approach the golden ratio <math>\varphi\colon</math><ref>{{Citation|last=Kepler |first=Johannes |title=A New Year Gift: On Hexagonal Snow |year=1966 |isbn=978-0-19-858120-8 |publisher=Oxford University Press |page= 92}}</ref><ref>{{Citation | title = Strena seu de Nive Sexangula | year = 1611}}</ref>
:<math>\lim_{n\to\infty}\frac{F_{n+1}}{F_n}=\varphi.</math>
:<math>\lim_{n\to\infty}\frac{F_{n+1}}{F_n}=\varphi.</math>


Line 279: Line 291:
[[File:Fibonacci tiling of the plane and approximation to Golden Ratio.gif|thumb|400px|center|Successive tilings of the plane and a graph of approximations to the golden ratio calculated by dividing each Fibonacci number by the previous]]
[[File:Fibonacci tiling of the plane and approximation to Golden Ratio.gif|thumb|400px|center|Successive tilings of the plane and a graph of approximations to the golden ratio calculated by dividing each Fibonacci number by the previous]]


====Decomposition of powers====
==== Decomposition of powers ====
Since the golden ratio satisfies the equation
Since the golden ratio satisfies the equation
:<math>\varphi^2 = \varphi + 1,</math>
:<math>\varphi^2 = \varphi + 1,</math>
Line 285: Line 297:
this expression can be used to decompose higher powers <math>\varphi^n</math> as a linear function of lower powers, which in turn can be decomposed all the way down to a linear combination of <math>\varphi</math> and 1. The resulting [[recurrence relation]]ships yield Fibonacci numbers as the linear coefficients:
this expression can be used to decompose higher powers <math>\varphi^n</math> as a linear function of lower powers, which in turn can be decomposed all the way down to a linear combination of <math>\varphi</math> and 1. The resulting [[recurrence relation]]ships yield Fibonacci numbers as the linear coefficients:
:<math>\varphi^n = F_n\varphi + F_{n-1}.</math>
:<math>\varphi^n = F_n\varphi + F_{n-1}.</math>
This equation can be proved by [[mathematical induction|induction]] on ''n''.
This equation can be proved by [[Mathematical induction|induction]] on ''n''.


This expression is also true for ''n'' < 1 if the Fibonacci sequence ''F<sub>n</sub>'' is [[Generalizations of Fibonacci numbers#Extension to negative integers|extended to negative integers]] using the Fibonacci rule <math>F_n = F_{n-1} + F_{n-2}.</math>
This expression is also true for ''n'' < 1 if the Fibonacci sequence ''F<sub>n</sub>'' is [[Generalizations of Fibonacci numbers#Extension to negative integers|extended to negative integers]] using the Fibonacci rule <math>F_n = F_{n-1} + F_{n-2}.</math>


===Matrix form===
=== Matrix form ===
A 2-dimensional system of linear [[difference equations]] that describes the Fibonacci sequence is
A 2-dimensional system of linear [[difference equations]] that describes the Fibonacci sequence is

:<math> {F_{k+2} \choose F_{k+1}} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} {F_{k+1} \choose F_{k}} </math>
:<math> {F_{k+2} \choose F_{k+1}} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} {F_{k+1} \choose F_{k}} </math>
alternatively denoted
alternatively denoted
:<math> \vec F_{k+1} = \mathbf{A} \vec F_{k},</math>
:<math> \vec F_{k+1} = \mathbf{A} \vec F_{k},</math>


which yields <math>\vec F_{n} = \mathbf{A}^n \vec F_{0}</math>. The [[eigenvalue]]s of the matrix {{math|'''A'''}} are <math>\varphi=\frac12(1+\sqrt5)</math> and <math>-\varphi^{-1}=\frac12(1-\sqrt5)</math> corresponding to the respective [[eigenvector]]s
which yields <math>\vec F_{n} = \mathbf{A}^n \vec F_{0}</math>. The [[eigenvalue]]s of the matrix {{math|'''A'''}} are <math>\varphi=\frac12(1+\sqrt5)</math> and <math>-\varphi^{-1}=\frac12(1-\sqrt5)</math> corresponding to the respective [[eigenvector]]s
:<math>\vec \mu={\varphi \choose 1}</math>
:<math>\vec \mu={\varphi \choose 1}</math>
and
and
:<math>\vec\nu={-\varphi^{-1} \choose 1}.</math>
:<math>\vec\nu={-\varphi^{-1} \choose 1}.</math>
As the initial value is
As the initial value is
:<math>\vec F_0={1 \choose 0}=\frac{1}{\sqrt{5}}\vec{\mu}-\frac{1}{\sqrt{5}}\vec{\nu},</math>
:<math>\vec F_0={1 \choose 0}=\frac{1}{\sqrt{5}}\vec{\mu}-\frac{1}{\sqrt{5}}\vec{\nu},</math>
it follows that the {{mvar|n}}th term is
it follows that the {{mvar|n}}th term is
:<math>\begin{align}\vec F_{n} &= \frac{1}{\sqrt{5}}A^n\vec\mu-\frac{1}{\sqrt{5}}A^n\vec\nu \\
:<math>\begin{align}\vec F_{n} &= \frac{1}{\sqrt{5}}A^n\vec\mu-\frac{1}{\sqrt{5}}A^n\vec\nu \\
Line 310: Line 323:
:<math>F_{n} = \cfrac{1}{\sqrt{5}}\left(\cfrac{1+\sqrt{5}}{2}\right)^n-\cfrac{1}{\sqrt{5}}\left(\cfrac{1-\sqrt{5}}{2}\right)^n.</math>
:<math>F_{n} = \cfrac{1}{\sqrt{5}}\left(\cfrac{1+\sqrt{5}}{2}\right)^n-\cfrac{1}{\sqrt{5}}\left(\cfrac{1-\sqrt{5}}{2}\right)^n.</math>


Equivalently, the same computation may performed by [[diagonalizable matrix#Diagonalization|diagonalization]] of {{math|'''A'''}} through use of its [[eigendecomposition]]:
Equivalently, the same computation may performed by [[Diagonalizable matrix#Diagonalization|diagonalization]] of {{math|'''A'''}} through use of its [[eigendecomposition]]:
:<math>\begin{align} A & = S\Lambda S^{-1} ,\\
:<math>\begin{align} A & = S\Lambda S^{-1} ,\\
A^n & = S\Lambda^n S^{-1},
A^n & = S\Lambda^n S^{-1},
\end{align}</math>
\end{align}</math>
where <math>\Lambda=\begin{pmatrix} \varphi & 0 \\ 0 & -\varphi^{-1} \end{pmatrix}</math> and <math>S=\begin{pmatrix} \varphi & -\varphi^{-1} \\ 1 & 1 \end{pmatrix}.</math>
where <math>\Lambda=\begin{pmatrix} \varphi & 0 \\ 0 & -\varphi^{-1} \end{pmatrix}</math> and <math>S=\begin{pmatrix} \varphi & -\varphi^{-1} \\ 1 & 1 \end{pmatrix}.</math>

The closed-form expression for the {{mvar|n}}th element in the Fibonacci series is therefore given by
The closed-form expression for the {{mvar|n}}th element in the Fibonacci series is therefore given by

:<math>\begin{align} {F_{n+1} \choose F_{n}} & = A^{n} {F_1 \choose F_0} \\
:<math>\begin{align} {F_{n+1} \choose F_{n}} & = A^{n} {F_1 \choose F_0} \\
& = S \Lambda^n S^{-1} {F_1 \choose F_0} \\
& = S \Lambda^n S^{-1} {F_1 \choose F_0} \\
Line 331: Line 344:


This property can be understood in terms of the [[continued fraction]] representation for the golden ratio:
This property can be understood in terms of the [[continued fraction]] representation for the golden ratio:

:<math>\varphi = 1 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{1 + \ddots}}}.</math>
:<math>\varphi = 1 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{1 + \ddots}}}.</math>


The Fibonacci numbers occur as the ratio of successive convergents of the continued fraction for {{mvar|φ}}, and the matrix formed from successive convergents of any continued fraction has a determinant of +1 or −1. The matrix representation gives the following closed-form expression for the Fibonacci numbers:
The Fibonacci numbers occur as the ratio of successive convergents of the continued fraction for {{mvar|φ}}, and the matrix formed from successive convergents of any continued fraction has a determinant of +1 or −1. The matrix representation gives the following closed-form expression for the Fibonacci numbers:

:<math>\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n = \begin{pmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{pmatrix}.</math>
:<math>\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n = \begin{pmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{pmatrix}.</math>


Line 339: Line 354:
:<math>(-1)^n = F_{n+1}F_{n-1} - F_n^2.</math>
:<math>(-1)^n = F_{n+1}F_{n-1} - F_n^2.</math>


Moreover, since {{math|'''A'''<sup>''n''</sup> '''A'''<sup>''m''</sup> {{=}} '''A'''<sup>''n''+''m''</sup>}} for any square matrix {{math|'''A'''}}, the following identities can be derived (they are obtained from two different coefficients of the matrix product, and one may easily deduce the second one from the first one by changing {{math|''n''}} into {{math|''n'' + 1}}),
Moreover, since {{math| '''A'''<sup>''n''</sup> '''A'''<sup>''m''</sup> {{=}} '''A'''<sup>''n''+''m''</sup>}} for any square matrix {{math|'''A'''}}, the following identities can be derived (they are obtained from two different coefficients of the matrix product, and one may easily deduce the second one from the first one by changing {{math|''n''}} into {{math|''n'' + 1}}),
:<math>\begin{align}
:<math>\begin{align}
{F_m}{F_n} + {F_{m-1}}{F_{n-1}} &= F_{m+n-1},\\
{F_m}{F_n} + {F_{m-1}}{F_{n-1}} &= F_{m+n-1},\\
Line 351: Line 366:
\end{align}</math>
\end{align}</math>


These last two identities provide a way to compute Fibonacci numbers [[recursion (computer science)|recursively]] in {{math|''O''(log(''n''))}} arithmetic operations and in time {{math|''O''(''M''(''n'')&nbsp;log(''n''))}}, where {{math|''M''(''n'')}} is the time for the multiplication of two numbers of {{math|''n''}} digits. This matches the time for computing the {{math|''n''}}th Fibonacci number from the closed-form matrix formula, but with fewer redundant steps if one avoids recomputing an already computed Fibonacci number (recursion with [[memoization]]).<ref>{{citation|title=In honour of Fibonacci|first=Edsger W.|last=Dijkstra|authorlink=Edsger W. Dijkstra|year=1978|url=http://www.cs.utexas.edu/users/EWD/ewd06xx/EWD654.PDF}}</ref>
These last two identities provide a way to compute Fibonacci numbers [[Recursion (computer science)|recursively]] in {{math|''O''(log(''n''))}} arithmetic operations and in time {{math|''O''(''M''(''n'')&nbsp;log(''n''))}}, where {{math|''M''(''n'')}} is the time for the multiplication of two numbers of {{math|''n''}} digits. This matches the time for computing the {{math|''n''}}th Fibonacci number from the closed-form matrix formula, but with fewer redundant steps if one avoids recomputing an already computed Fibonacci number (recursion with [[memoization]]).<ref>{{citation|title=In honour of Fibonacci|first=Edsger W.|last=Dijkstra|authorlink=Edsger W. Dijkstra|year=1978|url=http://www.cs.utexas.edu/users/EWD/ewd06xx/EWD654.PDF}}</ref>

=== Identification ===
The question may arise whether a positive integer ''x'' is a Fibonacci number. This is true if and only if one or both of <math>5x^2+4</math> or <math>5x^2-4</math> is a [[Square number|perfect square]].<ref>{{Citation | title = Fibonacci is a Square | last1 = Gessel | first1 = Ira | journal = [[The Fibonacci Quarterly]] | volume = 10 | issue = 4 | pages = 417–19 |date=October 1972 | url = http://www.fq.math.ca/Scanned/10-4/advanced10-4.pdf | accessdate = April 11, 2012 }}</ref> This is because Binet's formula [[#Binet's formula|above]] can be rearranged to give


===Identification===
The question may arise whether a positive integer ''x'' is a Fibonacci number. This is true if and only if one or both of <math>5x^2+4</math> or <math>5x^2-4</math> is a [[square number|perfect square]].<ref>{{Citation |title=Fibonacci is a Square |last1=Gessel |first1=Ira |journal=[[The Fibonacci Quarterly]] |volume=10 |issue=4 |pages=417–19 |date=October 1972 |url=http://www.fq.math.ca/Scanned/10-4/advanced10-4.pdf |accessdate=April 11, 2012}}</ref> This is because Binet's formula [[#Binet's formula|above]] can be rearranged to give
:<math>n = \log_{\varphi}\left(\frac{F_n\sqrt{5} + \sqrt{5F_n^2 \pm 4}}{2}\right)</math>,
:<math>n = \log_{\varphi}\left(\frac{F_n\sqrt{5} + \sqrt{5F_n^2 \pm 4}}{2}\right)</math>,


Line 361: Line 377:
This formula must return an integer for all ''n'', so the radical expression must be an integer (otherwise the [[logarithm]] does not even return a rational number).
This formula must return an integer for all ''n'', so the radical expression must be an integer (otherwise the [[logarithm]] does not even return a rational number).


===Combinatorial identities===
=== Combinatorial identities ===
Most identities involving Fibonacci numbers can be proved using [[combinatorial proof|combinatorial arguments]] using the fact that ''F''<sub>''n''</sub> can be interpreted as the number of sequences of 1s and 2s that sum to ''n''&nbsp;−&nbsp;1. This can be taken as the definition of ''F''<sub>''n''</sub>, with the convention that ''F''<sub>0</sub>&nbsp;=&nbsp;0, meaning no sum adds up to −1, and that ''F''<sub>1</sub>&nbsp;=&nbsp;1, meaning the empty sum "adds up" to 0. Here, the order of the summand matters. For example, 1&nbsp;+&nbsp;2 and 2&nbsp;+&nbsp;1 are considered two different sums.
Most identities involving Fibonacci numbers can be proved using [[combinatorial proof|combinatorial arguments]] using the fact that ''F''<sub>''n''</sub> can be interpreted as the number of sequences of 1s and 2s that sum to ''n''&nbsp;−&nbsp;1. This can be taken as the definition of ''F''<sub>''n''</sub>, with the convention that ''F''<sub>0</sub>&nbsp;=&nbsp;0, meaning no sum adds up to −1, and that ''F''<sub>1</sub>&nbsp;=&nbsp;1, meaning the empty sum "adds up" to 0. Here, the order of the summand matters. For example, 1&nbsp;+&nbsp;2 and 2&nbsp;+&nbsp;1 are considered two different sums.


For example, the recurrence relation
For example, the recurrence relation

:<math>F_{n} = F_{n-1} + F_{n-2},</math>
: <math>F_{n} = F_{n-1} + F_{n-2},</math>
or in words, the ''n''th Fibonacci number is the sum of the previous two Fibonacci numbers, may be shown by dividing the ''F''<sub>''n''</sub> sums of 1s and 2s that add to ''n''&nbsp;−&nbsp;1 into two non-overlapping groups. One group contains those sums whose first term is 1 and the other those sums whose first term is 2. In the first group the remaining terms add to ''n''&nbsp;−&nbsp;2, so it has ''F''<sub>''n''-1</sub> sums, and in the second group the remaining terms add to ''n''&nbsp;−&nbsp;3, so there are ''F''<sub>''n''−2</sub> sums. So there are a total of ''F''<sub>''n''−1</sub> + ''F''<sub>''n''−2</sub> sums altogether, showing this is equal to ''F''<sub>''n''</sub>.
or in words, the ''n''th Fibonacci number is the sum of the previous two Fibonacci numbers, may be shown by dividing the ''F''<sub>''n''</sub> sums of 1s and 2s that add to ''n''&nbsp;−&nbsp;1 into two non-overlapping groups. One group contains those sums whose first term is 1 and the other those sums whose first term is 2. In the first group the remaining terms add to ''n''&nbsp;−&nbsp;2, so it has ''F''<sub>''n''-1</sub> sums, and in the second group the remaining terms add to ''n''&nbsp;−&nbsp;3, so there are ''F''<sub>''n''−2</sub> sums. So there are a total of ''F''<sub>''n''−1</sub> + ''F''<sub>''n''−2</sub> sums altogether, showing this is equal to ''F''<sub>''n''</sub>.


Similarly, it may be shown that the sum of the first Fibonacci numbers up to the ''n''th is equal to the (''n'' + 2)-nd Fibonacci number minus 1.{{Sfn |Lucas |1891 |p=4}} In symbols:
Similarly, it may be shown that the sum of the first Fibonacci numbers up to the ''n''th is equal to the (''n'' + 2)-nd Fibonacci number minus 1.{{Sfn | Lucas | 1891 | p = 4}} In symbols:
:<math>\sum_{i=1}^n F_i = F_{n+2} - 1</math>
:<math>\sum_{i=1}^n F_i = F_{n+2} - 1</math>


Line 377: Line 394:
and
and
:<math>\sum_{i=1}^{n} F_{2i} = F_{2n+1}-1.</math>
:<math>\sum_{i=1}^{n} F_{2i} = F_{2n+1}-1.</math>
In words, the sum of the first Fibonacci numbers with odd index up to ''F''<sub>2''n''−1</sub> is the (2''n'')th Fibonacci number, and the sum of the first Fibonacci numbers with even index up to ''F''<sub>2''n''</sub> is the (2''n''&nbsp;+&nbsp;1)th Fibonacci number minus&nbsp;1.<ref>{{Citation|title=Fibonacci Numbers |last=Vorobiev |first=Nikolaĭ Nikolaevich |first2=Mircea|last2= Martin |publisher=Birkhäuser |year=2002 |isbn=978-3-7643-6135-8 |chapter=Chapter 1 |pages=5–6}}</ref>
In words, the sum of the first Fibonacci numbers with odd index up to ''F''<sub>2''n''−1</sub> is the (2''n'')th Fibonacci number, and the sum of the first Fibonacci numbers with even index up to ''F''<sub>2''n''</sub> is the (2''n''&nbsp;+&nbsp;1)th Fibonacci number minus&nbsp;1.<ref>{{Citation|title = Fibonacci Numbers |last = Vorobiev |first = Nikolaĭ Nikolaevich |first2 = Mircea|last2= Martin |publisher = Birkhäuser |year = 2002 |isbn = 978-3-7643-6135-8 |chapter=Chapter 1 |pages = 5–6}}</ref>


A different trick may be used to prove
A different trick may be used to prove
Line 383: Line 400:
or in words, the sum of the squares of the first Fibonacci numbers up to ''F''<sub>''n''</sub> is the product of the ''n''th and (''n''&nbsp;+&nbsp;1)th Fibonacci numbers. In this case Fibonacci rectangle of size ''F''<sub>''n''</sub> by ''F''(''n''&nbsp;+&nbsp;1) can be decomposed into squares of size ''F''<sub>''n''</sub>, ''F''<sub>''n''−1</sub>, and so on to ''F''<sub>1</sub>&nbsp;=&nbsp;1, from which the identity follows by comparing areas.
or in words, the sum of the squares of the first Fibonacci numbers up to ''F''<sub>''n''</sub> is the product of the ''n''th and (''n''&nbsp;+&nbsp;1)th Fibonacci numbers. In this case Fibonacci rectangle of size ''F''<sub>''n''</sub> by ''F''(''n''&nbsp;+&nbsp;1) can be decomposed into squares of size ''F''<sub>''n''</sub>, ''F''<sub>''n''−1</sub>, and so on to ''F''<sub>1</sub>&nbsp;=&nbsp;1, from which the identity follows by comparing areas.


====Symbolic method====
==== Symbolic method ====

The sequence <math>(F_n)_{n\in\mathbb N}</math> is also considered using the [[symbolic method (combinatorics)|symbolic method]].<ref>{{cite book |last1=Flajolet |first1=Philippe |last2=Sedgewick |first2=Robert |title=Analytic Combinatorics |date=2009 |publisher=Cambridge University Press |isbn=978-0521898065 |page=42}}</ref> More precisely, this sequence corresponds to a [[specifiable combinatorial class]]. The specification of this sequence is <math>\operatorname{Seq}(\mathcal{Z+Z^2})</math>. Indeed, as stated above, the <math>n</math>-th Fibonacci numbes equals the number of way to partition <math>n</math> using segments of size 1 or 2.
The sequence <math>(F_n)_{n\in\mathbb N}</math> is also considered using the [[symbolic method (combinatorics)|symbolic method]].<ref>{{cite book |last1=Flajolet |first1=Philippe |last2=Sedgewick |first2=Robert |title=Analytic Combinatorics |date=2009 |publisher=Cambridge University Press |isbn=978-0521898065 |page=42}}</ref> More precisely, this sequence corresponds to a [[specifiable combinatorial class]]. The specification of this sequence is <math>\operatorname{Seq}(\mathcal{Z+Z^2})</math>. Indeed, as stated above, the <math>n</math>-th Fibonacci numbes equals the number of way to partition <math>n</math> using segments of size 1 or 2.


It follows that the [[ordinary generating function]] of the Fibonacci sequence, i.e. <math>\sum_{i=0}^\infty F_iz^i</math>, is the complex function <math>\frac{z}{1-z-z^2}</math>.
It follows that the [[ordinary generating function]] of the Fibonacci sequence, i.e. <math>\sum_{i=0}^\infty F_iz^i</math>, is the complex function <math>\frac{z}{1-z-z^2}</math>.


===Other identities===
=== Other identities ===
Numerous other identities can be derived using various methods. Some of the most noteworthy are:<ref name="MathWorld">{{MathWorld|urlname=FibonacciNumber |title=Fibonacci Number}}</ref>
Numerous other identities can be derived using various methods. Some of the most noteworthy are:<ref name="MathWorld">{{MathWorld|urlname=FibonacciNumber |title=Fibonacci Number}}</ref>


====Cassini's and Catalan's identities====
==== Cassini's and Catalan's identities ====
{{Main|Cassini and Catalan identities}}
{{Main|Cassini and Catalan identities}}
Cassini's identity states that
Cassini's identity states that
Line 398: Line 416:
:<math>F_n^2 - F_{n+r}F_{n-r} = (-1)^{n-r}F_r^2</math>
:<math>F_n^2 - F_{n+r}F_{n-r} = (-1)^{n-r}F_r^2</math>


====d'Ocagne's identity====
==== d'Ocagne's identity ====
:<math>F_m F_{n+1} - F_{m+1} F_n = (-1)^n F_{m-n}</math>
:<math>F_m F_{n+1} - F_{m+1} F_n = (-1)^n F_{m-n}</math>
:<math>F_{2n} = F_{n+1}^2 - F_{n-1}^2 = F_n \left (F_{n+1}+F_{n-1} \right ) = F_nL_n</math>
:<math>F_{2n} = F_{n+1}^2 - F_{n-1}^2 = F_n \left (F_{n+1}+F_{n-1} \right ) = F_nL_n</math>
where ''L''<sub>''n''</sub> is the ''n''th [[Lucas number]]. The last is an identity for doubling ''n''; other identities of this type are
where ''L''<sub>''n''</sub> is the ''n'''th [[Lucas number]]. The last is an identity for doubling ''n''; other identities of this type are
:<math>F_{3n} = 2F_n^3 + 3F_n F_{n+1} F_{n-1} = 5F_n^3 + 3 (-1)^n F_n</math>
:<math>F_{3n} = 2F_n^3 + 3F_n F_{n+1} F_{n-1} = 5F_n^3 + 3 (-1)^n F_n</math>
by Cassini's identity.
by Cassini's identity.
Line 408: Line 426:
:<math>F_{3n+2} = F_{n+1}^3 + 3 F_{n+1}^2F_n + F_n^3</math>
:<math>F_{3n+2} = F_{n+1}^3 + 3 F_{n+1}^2F_n + F_n^3</math>
:<math>F_{4n} = 4F_nF_{n+1} \left (F_{n+1}^2 + 2F_n^2 \right ) - 3F_n^2 \left (F_n^2 + 2F_{n+1}^2 \right )</math>
:<math>F_{4n} = 4F_nF_{n+1} \left (F_{n+1}^2 + 2F_n^2 \right ) - 3F_n^2 \left (F_n^2 + 2F_{n+1}^2 \right )</math>
These can be found experimentally using [[lattice reduction]], and are useful in setting up the [[special number field sieve]] to [[factorization|factorize]] a Fibonacci number.
These can be found experimentally using [[lattice reduction]], and are useful in setting up the [[special number field sieve]] to [[Factorization|factorize]] a Fibonacci number.

More generally,<ref name="MathWorld" />


More generally,<ref name="MathWorld"/>
:<math>F_{kn+c} = \sum_{i=0}^k {k\choose i} F_{c-i} F_n^i F_{n+1}^{k-i}.</math>
:<math>F_{kn+c} = \sum_{i=0}^k {k\choose i} F_{c-i} F_n^i F_{n+1}^{k-i}.</math>


Putting {{math|1=''k'' = 2}} in this formula, one gets again the formulas of the end of above section [[#Matrix form|Matrix form]].
Putting {{math|1=''k'' = 2}} in this formula, one gets again the formulas of the end of above section [[#Matrix form|Matrix form]].


===Power series===
=== Power series ===
The [[generating function]] of the Fibonacci sequence is the [[power series]]
The [[generating function]] of the Fibonacci sequence is the [[power series]]
:<math>s(x)=\sum_{k=0}^{\infty} F_k x^k.</math>
:<math>s(x)=\sum_{k=0}^{\infty} F_k x^k.</math>


This series is convergent for <math>|x| < \frac{1}{\varphi},</math> and its sum has a simple closed-form:<ref>{{Citation |last=Glaister |first=P |title=Fibonacci power series |journal=The Mathematical Gazette |year=1995 |doi=10.2307/3618079 |volume=79 |issue=486 |pages=521–525 |jstor=3618079}}</ref>
This series is convergent for <math>|x| < \frac{1}{\varphi},</math> and its sum has a simple closed-form:<ref>{{Citation | last = Glaister | first = P | title = Fibonacci power series | journal = The Mathematical Gazette | year = 1995 | doi = 10.2307/3618079 | volume = 79 | issue = 486| pages = 521–525 | jstor = 3618079 }}</ref>
:<math>s(x)=\frac{x}{1-x-x^2}</math>
:<math>s(x)=\frac{x}{1-x-x^2}</math>


Line 429: Line 448:
&= x + x\sum_{k=0}^{\infty} F_k x^k + x^2\sum_{k=0}^{\infty} F_k x^k \\
&= x + x\sum_{k=0}^{\infty} F_k x^k + x^2\sum_{k=0}^{\infty} F_k x^k \\
&= x + x s(x) + x^2 s(x).
&= x + x s(x) + x^2 s(x).
\end{align}</math>
\end{align}</math>


Solving the equation
Solving the equation

:<math>s(x)=x+xs(x)+x^2s(x)</math>
:<math>s(x)=x+xs(x)+x^2s(x)</math>


Line 443: Line 463:
for all positive integers {{mvar|m}}.
for all positive integers {{mvar|m}}.


Some math puzzle-books present as curious the particular value that comes from {{math|1=''m'' = 1}}, which is <math>\frac{s(1/10)}{10}=\frac{1}{89} = 0.011235\ldots</math><ref>{{Citation |title=Generating functions of Fibonacci-like sequences and decimal expansions of some fractions |last=Köhler |first=Günter |journal=[[The Fibonacci Quarterly]] |volume=23 |issue=1 |pages=29–35 |date=February 1985 |url=http://www.fq.math.ca/Scanned/23-1/kohler.pdf |accessdate=December 31, 2011}}</ref> Similarly, {{math|1=''m'' = 2}} gives
Some math puzzle-books present as curious the particular value that comes from {{math|1=''m'' = 1}}, which is <math>\frac{s(1/10)}{10}=\frac{1}{89} = .011235\ldots</math><ref>{{Citation | title = Generating functions of Fibonacci-like sequences and decimal expansions of some fractions | last = Köhler | first = Günter | journal = [[The Fibonacci Quarterly]] | volume = 23 | issue = 1 | pages = 29–35 |date=February 1985 | url = http://www.fq.math.ca/Scanned/23-1/kohler.pdf | accessdate = December 31, 2011}}</ref> Similarly, {{math|1=''m'' = 2}} gives

:<math>\frac{s(1/100)}{100}=\frac{1}{9899} = 0.0001010203050813213455\ldots</math>
:<math>\frac{s(1/100)}{100}=\frac{1}{9899} = .0001010203050813213455\ldots</math>


===Reciprocal sums===
=== Reciprocal sums ===
<!--
<!--
{{Citation
{{Citation
|last=Borwein
| last =Borwein
|first=Jonathan M.
| first =Jonathan M.
|authorlink=Jonathan Borwein
| authorlink =Jonathan Borwein
|authorlink2=Peter Borwein|first2=Peter B.|last2=Borwein]]
| authorlink2=Peter Borwein|first2=Peter B.|last2= Borwein]]
|title=Pi and the AGM: A Study in Analytic Number Theory and Computational Complexity
| title =Pi and the AGM: A Study in Analytic Number Theory and Computational Complexity
|pages=91–101
| pages =91–101
|publisher=Wiley
| publisher =Wiley
|date=July 1998
|date=July 1998
|url=https://www.wiley.com/WileyCDA/WileyTitle/productCd-047131515X.html
| url =http://www.wiley.com/WileyCDA/WileyTitle/productCd-047131515X.html
|isbn=978-0-471-31515-5}}
| isbn = 978-0-471-31515-5 }}
It credits some formulae to {{Citation |author=Landau, E. |title=Sur la Série des Invers de Nombres de Fibonacci |journal=Bull. Soc. Math. France |volume=27 |year=1899 |pages=298–300}}
It credits some formulae to {{Citation | author = Landau, E. | title = Sur la Série des Invers de Nombres de Fibonacci | journal = Bull. Soc. Math. France | volume = 27 | year = 1899 | pages = 298–300}}
-->
-->
Infinite sums over reciprocal Fibonacci numbers can sometimes be evaluated in terms of [[theta function]]s. For example, we can write the sum of every odd-indexed reciprocal Fibonacci number as
Infinite sums over reciprocal Fibonacci numbers can sometimes be evaluated in terms of [[theta function]]s. For example, we can write the sum of every odd-indexed reciprocal Fibonacci number as
Line 477: Line 498:


is known, but the number has been proved [[irrational number|irrational]] by [[Richard André-Jeannin]].<ref>{{citation
is known, but the number has been proved [[irrational number|irrational]] by [[Richard André-Jeannin]].<ref>{{citation
|last=André-Jeannin
| last = André-Jeannin
|first=Richard
| first = Richard
|title=Irrationalité de la somme des inverses de certaines suites récurrentes
| title = Irrationalité de la somme des inverses de certaines suites récurrentes
|journal=[[Comptes Rendus de l'Académie des Sciences, Série I]]
| journal = [[Comptes Rendus de l'Académie des Sciences, Série I]]
|volume=308
| volume = 308
|year=1989
| year = 1989
|issue=19
| issue = 19
|pages=539–541
| pages = 539–541
|mr=0999451}}</ref>
|mr=0999451}}</ref>


The '''Millin series''' gives the identity<ref>{{MathWorld |title=Millin Series |urlname=MillinSeries}}</ref>
The '''Millin series''' gives the identity<ref>{{MathWorld |title=Millin Series |urlname=MillinSeries}}</ref>
Line 492: Line 513:
:<math>\sum_{n=0}^N \frac{1}{F_{2^n}} = 3 - \frac{F_{2^N-1}}{F_{2^N}}.</math>
:<math>\sum_{n=0}^N \frac{1}{F_{2^n}} = 3 - \frac{F_{2^N-1}}{F_{2^N}}.</math>


===Primes and divisibility===
=== Primes and divisibility ===
====Divisibility properties====
==== Divisibility properties ====
Every third number of the sequence is even and more generally, every ''k''th number of the sequence is a multiple of ''F<sub>k</sub>''. Thus the Fibonacci sequence is an example of a [[divisibility sequence]]. In fact, the Fibonacci sequence satisfies the stronger divisibility property<ref>{{Citation |first=Paulo |last=Ribenboim |author-link=Paulo Ribenboim |title=My Numbers, My Friends |publisher=Springer-Verlag |year=2000}}</ref><ref>{{Citation |last1=Su |first1=Francis E |others=et al |publisher=HMC |url=https://www.math.hmc.edu/funfacts/ffiles/20004.5.shtml |contribution=Fibonacci GCD's, please |year=2000 |title=Mudd Math Fun Facts}}</ref>
Every third number of the sequence is even and more generally, every ''k''th number of the sequence is a multiple of ''F<sub>k</sub>''. Thus the Fibonacci sequence is an example of a [[divisibility sequence]]. In fact, the Fibonacci sequence satisfies the stronger divisibility property<ref>{{Citation | first = Paulo | last = Ribenboim | author-link = Paulo Ribenboim | title = My Numbers, My Friends | publisher = Springer-Verlag | year = 2000}}</ref><ref>{{Citation | last1 = Su | first1 = Francis E | others = et al | publisher = HMC | url = http://www.math.hmc.edu/funfacts/ffiles/20004.5.shtml | contribution = Fibonacci GCD's, please | year = 2000 | title = Mudd Math Fun Facts}}</ref>
:<math>\gcd(F_m,F_n) = F_{\gcd(m,n)}.</math>
:<math>\gcd(F_m,F_n) = F_{\gcd(m,n)}.</math>


Any three consecutive Fibonacci numbers are pairwise [[coprime integers|coprime]], which means that, for every ''n'',
Any three consecutive Fibonacci numbers are pairwise [[Coprime integers|coprime]], which means that, for every ''n'',
:[[greatest common divisor|gcd]](''F''<sub>''n''</sub>, ''F''<sub>''n''+1</sub>) = gcd(''F''<sub>''n''</sub>, ''F''<sub>''n''+2</sub>) = gcd(''F''<sub>''n''+1</sub>, ''F''<sub>''n''+2</sub>) = 1.
:[[greatest common divisor|gcd]](''F''<sub>''n''</sub>, ''F''<sub>''n''+1</sub>) = gcd(''F''<sub>''n''</sub>, ''F''<sub>''n''+2</sub>) = gcd(''F''<sub>''n''+1</sub>, ''F''<sub>''n''+2</sub>) = 1.


Every prime number ''p'' divides a Fibonacci number that can be determined by the value of ''p'' modulo&nbsp;5. If ''p'' is congruent to 1 or 4 (mod 5), then ''p'' divides ''F''<sub>''p''&nbsp;−&nbsp;1</sub>, and if ''p'' is congruent to 2 or 3 (mod 5), then, ''p'' divides ''F''<sub>''p''&nbsp;+&nbsp;1</sub>. The remaining case is that ''p''&nbsp;=&nbsp;5, and in this case ''p'' divides ''F''<sub>p</sub>.
Every prime number ''p'' divides a Fibonacci number that can be determined by the value of ''p'' modulo&nbsp;5. If ''p'' is congruent to 1 or 4 (mod 5), then ''p'' divides ''F''<sub>''p''&nbsp;−&nbsp;1</sub>, and if ''p'' is congruent to 2 or 3 (mod 5), then, ''p'' divides ''F''<sub>''p''&nbsp;+&nbsp;1</sub>. The remaining case is that ''p''&nbsp;=&nbsp;5, and in this case ''p'' divides ''F''<sub>p</sub>.

:<math>\begin{cases} p =5 & \Rightarrow p \mid F_{p}, \\ p \equiv \pm1 \pmod 5 & \Rightarrow p \mid F_{p-1}, \\ p \equiv \pm2 \pmod 5 & \Rightarrow p \mid F_{p+1}.\end{cases}</math>
:<math>\begin{cases} p =5 & \Rightarrow p \mid F_{p}, \\ p \equiv \pm1 \pmod 5 & \Rightarrow p \mid F_{p-1}, \\ p \equiv \pm2 \pmod 5 & \Rightarrow p \mid F_{p+1}.\end{cases}</math>
These cases can be combined into a single formula, using the [[Legendre symbol]]:<ref>{{citation
These cases can be combined into a single formula, using the [[Legendre symbol]]:<ref>{{citation
|last=Williams |first=H. C.
| last = Williams | first = H. C.
|doi=10.4153/CMB-1982-053-0
| doi = 10.4153/CMB-1982-053-0
|issue=3
| issue = 3
|journal=Canadian Mathematical Bulletin
| journal = Canadian Mathematical Bulletin
|mr=668957
| mr = 668957
|pages=366–370
| pages = 366–370
|title=A note on the Fibonacci quotient <math>F_{p-\varepsilon}/p</math>
| title = A note on the Fibonacci quotient <math>F_{p-\varepsilon}/p</math>
|volume=25
| volume = 25
|year=1982 |hdl=10338.dmlcz/137492
| year = 1982| hdl = 10338.dmlcz/137492
}}. Williams calls this property "well known".</ref>
}}. Williams calls this property "well known".</ref>
:<math>p \mid F_{p-\left(\frac{5}{p}\right)}.</math>
:<math>p \mid F_{p-\left(\frac{5}{p}\right)}.</math>


====Primality testing====
==== Primality testing ====
The above formula can be used as a primality test in the sense that if
The above formula can be used as a primality test in the sense that if
:<math>n \mid F_{n-\left(\frac{5}{n}\right)},</math>
:<math>n \mid F_{n-\left(\frac{5}{n}\right)},</math>
Line 521: Line 543:


:<math> \begin{pmatrix} F_{m+1} & F_m \\ F_m & F_{m-1} \end{pmatrix} \equiv \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^m \pmod n.</math>
:<math> \begin{pmatrix} F_{m+1} & F_m \\ F_m & F_{m-1} \end{pmatrix} \equiv \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^m \pmod n.</math>
Here the matrix power ''A''<sup>''m''</sup> is calculated using [[modular exponentiation]], which can be [[modular exponentiation#Matrices|adapted to matrices]].<ref>''Prime Numbers'', Richard Crandall, Carl Pomerance, Springer, second edition, 2005, p.142.</ref>
Here the matrix power ''A''<sup>''m''</sup> is calculated using [[modular exponentiation]], which can be [[Modular exponentiation#Matrices|adapted to matrices]].<ref>''Prime Numbers'', Richard Crandall, Carl Pomerance, Springer, second edition, 2005, p.142.</ref>


====Fibonacci primes====
==== Fibonacci primes ====
{{Main|Fibonacci prime}}
{{Main|Fibonacci prime}}
A ''Fibonacci prime'' is a Fibonacci number that is [[prime number|prime]]. The first few are:
A ''Fibonacci prime'' is a Fibonacci number that is [[prime number|prime]]. The first few are:

:2, 3, 5, 13, 89, 233, 1597, 28657, 514229, ... {{OEIS2C|id=A005478}}.
: 2, 3, 5, 13, 89, 233, 1597, 28657, 514229, ... {{OEIS2C|id=A005478}}.


Fibonacci primes with thousands of digits have been found, but it is not known whether there are infinitely many.<ref>{{MathWorld |urlname=FibonacciPrime |title=Fibonacci Prime}}</ref>
Fibonacci primes with thousands of digits have been found, but it is not known whether there are infinitely many.<ref>{{MathWorld |urlname=FibonacciPrime |title=Fibonacci Prime}}</ref>


''F''<sub>''kn''</sub> is divisible by ''F''<sub>''n''</sub>, so, apart from ''F''<sub>4</sub> = 3, any Fibonacci prime must have a prime index. As there are [[arbitrarily large|arbitrarily long]] runs of [[composite number]]s, there are therefore also arbitrarily long runs of composite Fibonacci numbers.
''F''<sub>''kn''</sub> is divisible by ''F''<sub>''n''</sub>, so, apart from ''F''<sub>4</sub> = 3, any Fibonacci prime must have a prime index. As there are [[Arbitrarily large|arbitrarily long]] runs of [[composite number]]s, there are therefore also arbitrarily long runs of composite Fibonacci numbers.


No Fibonacci number greater than ''F''<sub>6</sub> = 8 is one greater or one less than a prime number.<ref>{{Citation |first=Ross |last=Honsberger |title=Mathematical Gems III |journal=AMS Dolciani Mathematical Expositions |year=1985 |isbn=978-0-88385-318-4 |page=133 |issue=9}}</ref>
No Fibonacci number greater than ''F''<sub>6</sub> = 8 is one greater or one less than a prime number.<ref>{{Citation | first = Ross | last = Honsberger | title = Mathematical Gems III | journal = AMS Dolciani Mathematical Expositions | year = 1985 | isbn = 978-0-88385-318-4 | page = 133 | issue = 9}}</ref>


The only nontrivial [[square number|square]] Fibonacci number is 144.<ref>{{Citation|title=Square Fibonacci Numbers etc |first=JHE |last=Cohn |journal=Fibonacci Quarterly |volume=2 |year=1964 |pages=109–13 |url=https://math.la.asu.edu/~checkman/SquareFibonacci.html}}</ref> Attila Pethő proved in 2001 that there is only a finite number of perfect power Fibonacci numbers.<ref>{{Citation |first=Attila |last=Pethő |title=Diophantine properties of linear recursive sequences II |journal=Acta Mathematica Academiae Paedagogicae Nyíregyháziensis |volume=17 |year=2001 |pages=81–96}}</ref> In 2006, Y. Bugeaud, M. Mignotte, and S. Siksek proved that 8 and 144 are the only such non-trivial perfect powers.<ref>{{Citation|first1=Y|last1=Bugeaud|first2=M|last2=Mignotte|first3=S|last3=Siksek|title=Classical and modular approaches to exponential Diophantine equations. I. Fibonacci and Lucas perfect powers |journal=Ann. Math.|volume=2 |year=2006 |pages=969–1018 |issue=163 |bibcode=2004math......3046B |arxiv=math/0403046 |doi=10.4007/annals.2006.163.969}}</ref>
The only nontrivial [[square number|square]] Fibonacci number is 144.<ref>{{Citation|title=Square Fibonacci Numbers etc | first = JHE | last = Cohn |journal= Fibonacci Quarterly |volume= 2 |year= 1964 |pages=109–13 |url= http://math.la.asu.edu/~checkman/SquareFibonacci.html}}</ref> Attila Pethő proved in 2001 that there is only a finite number of perfect power Fibonacci numbers.<ref>{{Citation | first = Attila | last = Pethő | title = Diophantine properties of linear recursive sequences II | journal = Acta Mathematica Academiae Paedagogicae Nyíregyháziensis | volume = 17 | year = 2001 | pages = 81–96}}</ref> In 2006, Y. Bugeaud, M. Mignotte, and S. Siksek proved that 8 and 144 are the only such non-trivial perfect powers.<ref>{{Citation|first1=Y|last1=Bugeaud|first2=M|last2= Mignotte|first3=S|last3=Siksek|title = Classical and modular approaches to exponential Diophantine equations. I. Fibonacci and Lucas perfect powers | journal = Ann. Math.|volume = 2 | year = 2006 | pages = 969–1018 | issue = 163 | bibcode = 2004math......3046B | arxiv = math/0403046| doi = 10.4007/annals.2006.163.969}}</ref>


1, 3, 21, 55 are the only triangular Fibonacci numbers, which was conjectured by Vern Hoggatt and proved by Luo Ming.<ref>{{Citation|first=Luo|last=Ming|title=On triangular Fibonacci numbers |journal=Fibonacci Quart. |volume=27 |issue=2 |year=1989 |pages=98–108 |url=http://www.fq.math.ca/Scanned/27-2/ming.pdf}}</ref>
1, 3, 21, 55 are the only triangular Fibonacci numbers, which was conjectured by Vern Hoggatt and proved by Luo Ming.<ref>{{Citation|first=Luo|last=Ming|title = On triangular Fibonacci numbers | journal = Fibonacci Quart. | volume = 27 | issue = 2 | year = 1989 | pages = 98–108 | url = http://www.fq.math.ca/Scanned/27-2/ming.pdf }}</ref>


No Fibonacci number can be a [[perfect number]].<ref name="Luca2000">{{cite journal |first=Florian |last=Luca |title=Perfect Fibonacci and Lucas numbers |journal=Rendiconti del Circolo Matematico di Palermo |year=2000 |volume=49 |issue=2 |pages=313–318 |doi=10.1007/BF02904236 |mr=1765401 |issn=1973-4409}}</ref> More generally, no Fibonaci number other than 1 can be [[multiply perfect number|multiply perfect]],<ref name="BGLLHT2011">{{cite journal |first1=Kevin A. |last1=Broughan |first2=Marcos J. |last2=González |first3=Ryan H. |last3=Lewis |first4=Florian |last4=Luca |first5=V. Janitzio |last5=Mejía Huguet |first6=Alain |last6=Togbé |title=There are no multiply-perfect Fibonacci numbers |journal=Integers |year=2011 |volume=11a |pages=A7 |url=http://math.colgate.edu/~integers/vol11a.html |mr=2988067}}</ref> and no ratio of two Fibonacci numbers can be perfect.<ref name="LucaMH2010">{{cite journal |first1=Florian |last1=Luca |first2=V. Janitzio |last2=Mejía Huguet |title=On Perfect numbers which are ratios of two Fibonacci numbers |journal=Annales Mathematicae at Informaticae |year=2010 |volume=37 |pages=107–124 |url=http://ami.ektf.hu/index.php?vol=37 |mr=2753031 |issn=1787-6117}}</ref>
No Fibonacci number can be a [[perfect number]].<ref name="Luca2000">{{cite journal | first=Florian | last=Luca | title=Perfect Fibonacci and Lucas numbers | journal=Rendiconti del Circolo Matematico di Palermo | year=2000 | volume=49 | issue=2 | pages=313–318 | doi=10.1007/BF02904236 | mr=1765401 | issn=1973-4409 }}</ref> More generally, no Fibonaci number other than 1 can be [[multiply perfect number|multiply perfect]],<ref name="BGLLHT2011">{{cite journal | first1=Kevin A. | last1=Broughan | first2=Marcos J. | last2=González | first3=Ryan H. | last3=Lewis | first4=Florian | last4=Luca | first5=V. Janitzio | last5=Mejía Huguet | first6=Alain | last6=Togbé | title=There are no multiply-perfect Fibonacci numbers | journal=Integers | year=2011 | volume=11a | pages=A7 | url=http://math.colgate.edu/~integers/vol11a.html | mr=2988067 }}</ref> and no ratio of two Fibonacci numbers can be perfect.<ref name="LucaMH2010">{{cite journal | first1=Florian | last1=Luca | first2= V. Janitzio | last2=Mejía Huguet | title=On Perfect numbers which are ratios of two Fibonacci numbers | journal=Annales Mathematicae at Informaticae | year=2010 | volume=37 | pages=107–124 | url=http://ami.ektf.hu/index.php?vol=37 | mr=2753031 | issn=1787-6117 }}</ref>


====Prime divisors====
==== Prime divisors ====
With the exceptions of 1, 8 and 144 (''F''<sub>1</sub> = ''F''<sub>2</sub>, ''F''<sub>6</sub> and ''F''<sub>12</sub>) every Fibonacci number has a prime factor that is not a factor of any smaller Fibonacci number ([[Carmichael's theorem]]).<ref>{{Citation |first=Ron |last=Knott |url=http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibtable.html |title=The Fibonacci numbers |publisher=Surrey |place=UK}}</ref> As a result, 8 and 144 (''F''<sub>6</sub> and ''F''<sub>12</sub>) are the only Fibonacci numbers that are the product of other Fibonacci numbers {{OEIS2C|id=A235383}}.
With the exceptions of 1, 8 and 144 (''F''<sub>1</sub> = ''F''<sub>2</sub>, ''F''<sub>6</sub> and ''F''<sub>12</sub>) every Fibonacci number has a prime factor that is not a factor of any smaller Fibonacci number ([[Carmichael's theorem]]).<ref>{{Citation | first = Ron | last = Knott | url = http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibtable.html | title = The Fibonacci numbers | publisher = Surrey | place = UK}}</ref> As a result, 8 and 144 (''F''<sub>6</sub> and ''F''<sub>12</sub>) are the only Fibonacci numbers that are the product of other Fibonacci numbers {{OEIS2C|id=A235383}}.


The divisibility of Fibonacci numbers by a prime ''p'' is related to the [[Legendre symbol]] <math>\left(\tfrac{p}{5}\right)</math> which is evaluated as follows:
The divisibility of Fibonacci numbers by a prime ''p'' is related to the [[Legendre symbol]] <math>\left(\tfrac{p}{5}\right)</math> which is evaluated as follows:
Line 547: Line 570:


If ''p'' is a prime number then
If ''p'' is a prime number then
:<math> F_p \equiv \left(\frac{p}{5}\right) \pmod p \quad \text{and}\quad F_{p-\left(\frac{p}{5}\right)} \equiv 0 \pmod p.</math><ref>{{Citation |first=Paulo |last=Ribenboim |author-link=Paulo Ribenboim |year=1996 |title=The New Book of Prime Number Records |place=New York |publisher=Springer |isbn=978-0-387-94457-9 |page=64}}</ref>{{Sfn |Lemmermeyer |2000 |loc=ex. 2.25–28 |pp=73–4}}
:<math> F_p \equiv \left(\frac{p}{5}\right) \pmod p \quad \text{and}\quad F_{p-\left(\frac{p}{5}\right)} \equiv 0 \pmod p.</math><ref>{{Citation | first = Paulo | last = Ribenboim | author-link = Paulo Ribenboim | year = 1996 | title = The New Book of Prime Number Records | place = New York | publisher = Springer | isbn = 978-0-387-94457-9 | page = 64}}</ref>{{Sfn | Lemmermeyer | 2000 | loc = ex. 2.25–28 | pp = 73–4}}


For example,
For example,
Line 559: Line 582:


It is not known whether there exists a prime ''p'' such that
It is not known whether there exists a prime ''p'' such that

:<math>F_{p-\left(\frac{p}{5}\right)} \equiv 0 \pmod{p^2}.</math>
:<math>F_{p-\left(\frac{p}{5}\right)} \equiv 0 \pmod{p^2}.</math>


Such primes (if there are any) would be called [[Wall–Sun–Sun prime]]s.
Such primes (if there are any) would be called [[Wall–Sun–Sun prime]]s.


Also, if ''p'' ≠ 5 is an odd prime number then:{{Sfn |Lemmermeyer |2000 |loc=ex. 2.28 |pp=73–4}}
Also, if ''p'' ≠ 5 is an odd prime number then:{{Sfn | Lemmermeyer | 2000 | loc = ex. 2.28 | pp = 73–4}}
:<math>5F^2_{\frac{p \pm 1}{2}} \equiv \begin{cases}
:<math>5F^2_{\frac{p \pm 1}{2}} \equiv \begin{cases}
\tfrac{1}{2} \left (5\left(\frac{p}{5}\right)\pm 5 \right ) \pmod p & \text{if } p \equiv 1 \pmod 4\\
\tfrac{1}{2} \left (5\left(\frac{p}{5}\right)\pm 5 \right ) \pmod p & \text{if } p \equiv 1 \pmod 4\\
Line 589: Line 613:
:<math>5F_{14}^2=710645\equiv 0 \pmod {29} \;\;\text{ and }\;\;5F_{15}^2=1860500\equiv 5 \pmod {29}</math>
:<math>5F_{14}^2=710645\equiv 0 \pmod {29} \;\;\text{ and }\;\;5F_{15}^2=1860500\equiv 5 \pmod {29}</math>


For odd ''n'', all odd prime divisors of ''F''<sub>''n''</sub> are congruent to 1 modulo 4, implying that all odd divisors of ''F''<sub>''n''</sub> (as the products of odd prime divisors) are congruent to 1 modulo 4.{{Sfn |Lemmermeyer |2000 |loc = ex. 2.27 |p = 73}}
For odd ''n'', all odd prime divisors of ''F''<sub>''n''</sub> are congruent to 1 modulo 4, implying that all odd divisors of ''F''<sub>''n''</sub> (as the products of odd prime divisors) are congruent to 1 modulo 4.{{Sfn | Lemmermeyer | 2000 | loc = ex. 2.27 | p = 73}}


For example,
For example,
:<math>F_1 = 1, F_3 = 2, F_5 = 5, F_7 = 13, F_9 = 34 = 2 \cdot 17, F_{11} = 89, F_{13} = 233, F_{15} = 610 = 2 \cdot 5 \cdot 61.</math>
:<math>F_1 = 1, F_3 = 2, F_5 = 5, F_7 = 13, F_9 = 34 = 2 \cdot 17, F_{11} = 89, F_{13} = 233, F_{15} = 610 = 2 \cdot 5 \cdot 61.</math>


All known factors of Fibonacci numbers ''F''(''i'') for all ''i'' < 50000 are collected at the relevant repositories.<ref>{{Citation |url=http://mersennus.net/fibonacci/ |title=Fibonacci and Lucas factorizations |publisher=Mersennus}} collects all known factors of ''F''(''i'') with ''i'' < 10000.</ref><ref>{{Citation |url=http://fibonacci.redgolpe.com/ |title=Factors of Fibonacci and Lucas numbers |publisher=Red golpe}} collects all known factors of ''F''(''i'') with 10000 < ''i'' < 50000.</ref>
All known factors of Fibonacci numbers ''F''(''i'') for all ''i'' < 50000 are collected at the relevant repositories.<ref>{{Citation | url = http://mersennus.net/fibonacci/ | title = Fibonacci and Lucas factorizations | publisher = Mersennus}} collects all known factors of ''F''(''i'') with ''i'' < 10000.</ref><ref>{{Citation | url =http://fibonacci.redgolpe.com/ | title = Factors of Fibonacci and Lucas numbers | publisher = Red golpe}} collects all known factors of ''F''(''i'') with 10000 < ''i'' < 50000.</ref>


====Periodicity modulo ''n''====
==== Periodicity modulo ''n'' ====
{{Main|Pisano period}}
{{Main|Pisano period}}


If the members of the Fibonacci sequence are taken mod&nbsp;''n'', the resulting sequence is [[periodic sequence|periodic]] with period at most&nbsp;''6n''.<ref>{{Citation |title=Problems and Solutions: Solutions: E3410 |last1=Freyd |first1=Peter |last2=Brown |first2=Kevin S. |journal=The American Mathematical Monthly |volume=99 |issue=3 |pages=278–279 |date=1993 |doi=10.2307/2325076 |jstor=2325076}}</ref> The lengths of the periods for various ''n'' form the so-called [[Pisano period]]s {{OEIS2C|id=A001175}}. Determining a general formula for the Pisano periods is an open problem, which includes as a subproblem a special instance of the problem of finding the [[multiplicative order]] of a [[modular arithmetic|modular integer]] or of an element in a [[finite field]]. However, for any particular ''n'', the Pisano period may be found as an instance of [[cycle detection]].
If the members of the Fibonacci sequence are taken mod&nbsp;''n'', the resulting sequence is [[periodic sequence|periodic]] with period at most&nbsp;''6n''.<ref>{{Citation | title = Problems and Solutions: Solutions: E3410 | last1 = Freyd | first1 = Peter | last2 = Brown | first2 = Kevin S. | journal = The American Mathematical Monthly | volume = 99 | issue = 3 | pages = 278–279 |date= 1993 | doi=10.2307/2325076| jstor = 2325076 }}</ref> The lengths of the periods for various ''n'' form the so-called [[Pisano period]]s {{OEIS2C|id=A001175}}. Determining a general formula for the Pisano periods is an open problem, which includes as a subproblem a special instance of the problem of finding the [[multiplicative order]] of a [[modular arithmetic|modular integer]] or of an element in a [[finite field]]. However, for any particular ''n'', the Pisano period may be found as an instance of [[cycle detection]].


===Right triangles===
=== Right triangles ===
Starting with 5, every second Fibonacci number is the length of the hypotenuse of a right triangle with integer sides, or in other words, the largest number in a [[Pythagorean triple]]. The length of the longer leg of this triangle is equal to the sum of the three sides of the preceding triangle in this series of triangles, and the shorter leg is equal to the difference between the preceding bypassed Fibonacci number and the shorter leg of the preceding triangle.
Starting with 5, every second Fibonacci number is the length of the hypotenuse of a right triangle with integer sides, or in other words, the largest number in a [[Pythagorean triple]]. The length of the longer leg of this triangle is equal to the sum of the three sides of the preceding triangle in this series of triangles, and the shorter leg is equal to the difference between the preceding bypassed Fibonacci number and the shorter leg of the preceding triangle.


Line 620: Line 644:


:<math>\begin{align}
:<math>\begin{align}
a &= F_n F_{n+3} \\
a &= F_n F_{n+3} \\
b &= 2 F_{n+1} F_{n+2} \\
b &= 2 F_{n+1} F_{n+2} \\
c &= F_{n+1}^2 + F_{n+2}^2.
c &= F_{n+1}^2 + F_{n+2}^2.
\end{align}</math>
\end{align}</math>


===Magnitude===
=== Magnitude ===
Since ''F<sub>n</sub>'' is [[asymptotic analysis|asymptotic]] to <math>\varphi^n/\sqrt5</math>, the number of digits in ''F''<sub>''n''</sub> is asymptotic to <math>n\log_{10}\varphi\approx 0.2090\, n</math>. As a consequence, for every integer ''d'' > 1 there are either 4 or 5 Fibonacci numbers with ''d'' decimal digits.
Since ''F<sub>n</sub>'' is [[Asymptotic analysis|asymptotic]] to <math>\varphi^n/\sqrt5</math>, the number of digits in ''F''<sub>''n''</sub> is asymptotic to <math>n\log_{10}\varphi\approx 0.2090\, n</math>. As a consequence, for every integer ''d'' > 1 there are either 4 or 5 Fibonacci numbers with ''d'' decimal digits.


More generally, in the base ''b'' representation, the number of digits in ''F''<sub>''n''</sub> is asymptotic to <math>n\log_b\varphi.</math>
More generally, in the base ''b'' representation, the number of digits in ''F''<sub>''n''</sub> is asymptotic to <math>n\log_b\varphi.</math>


===Generalizations===
=== Generalizations ===
{{Main|Generalizations of Fibonacci numbers}}
{{Main|Generalizations of Fibonacci numbers}}


Line 636: Line 660:


Some specific examples that are close, in some sense, from Fibonacci sequence include:
Some specific examples that are close, in some sense, from Fibonacci sequence include:
*Generalizing the index to negative integers to produce the [[#Negafibonacci|negafibonacci]] numbers.
* Generalizing the index to negative integers to produce the [[#Negafibonacci|negafibonacci]] numbers.
*Generalizing the index to real numbers using a modification of Binet's formula.<ref name="MathWorld"/>
* Generalizing the index to real numbers using a modification of Binet's formula.<ref name="MathWorld" />
*Starting with other integers. [[Lucas number]]s have ''L''<sub>1</sub> = 1, ''L''<sub>2</sub> = 3, and ''L<sub>n</sub>'' = ''L''<sub>''n''−1</sub> + ''L''<sub>''n''−2</sub>. [[Primefree sequence]]s use the Fibonacci recursion with other starting points to generate sequences in which all numbers are [[composite number|composite]].
* Starting with other integers. [[Lucas number]]s have ''L''<sub>1</sub> = 1, ''L''<sub>2</sub> = 3, and ''L<sub>n</sub>'' = ''L''<sub>''n''−1</sub> + ''L''<sub>''n''−2</sub>. [[Primefree sequence]]s use the Fibonacci recursion with other starting points to generate sequences in which all numbers are [[composite number|composite]].
*Letting a number be a linear function (other than the sum) of the 2 preceding numbers. The [[Pell number]]s have ''P<sub>n</sub>'' = 2''P''<sub>''n'' − 1</sub> + ''P''<sub>''n'' − 2</sub>. If the coefficient of the preceding value is assigned a variable value ''x'', the result is the sequence of [[Fibonacci polynomials]].
* Letting a number be a linear function (other than the sum) of the 2 preceding numbers. The [[Pell number]]s have ''P<sub>n</sub>'' = 2''P''<sub>''n'' − 1</sub> + ''P''<sub>''n'' − 2</sub>. If the coefficient of the preceding value is assigned a variable value ''x'', the result is the sequence of [[Fibonacci polynomials]].
*Not adding the immediately preceding numbers. The [[Padovan sequence]] and [[Perrin number]]s have ''P''(''n'') = ''P''(''n'' − 2) + ''P''(''n'' − 3).
* Not adding the immediately preceding numbers. The [[Padovan sequence]] and [[Perrin number]]s have ''P''(''n'') = ''P''(''n'' − 2) + ''P''(''n'' − 3).
*Generating the next number by adding 3 numbers (tribonacci numbers), 4 numbers (tetranacci numbers), or more. The resulting sequences are known as ''n-Step Fibonacci numbers''.<ref>{{MathWorld|urlname=Fibonaccin-StepNumber |title=Fibonacci ''n''-Step Number}}</ref>
* Generating the next number by adding 3 numbers (tribonacci numbers), 4 numbers (tetranacci numbers), or more. The resulting sequences are known as ''n-Step Fibonacci numbers''.<ref>{{MathWorld|urlname=Fibonaccin-StepNumber |title=Fibonacci ''n''-Step Number}}</ref>
*Adding a constant at each step: [[Leonardo number]]s, <math>L_n = L_{n-1} + L_{n-2} + 1</math>


==See also==
== See also ==
{{Div col}}
{{Div col}}
*[[Elliott wave principle]]
*[[Elliott wave principle]]
Line 656: Line 679:
{{Div col end}}
{{Div col end}}


==References==
== References ==
'''Footnotes'''
'''Footnotes'''
{{Notelist}}
{{notelist}}


'''Citations'''
'''Citations'''
Line 664: Line 687:


===Works cited===
===Works cited===
*{{Citation |title=Strange Curves, Counting Rabbits, and Other Mathematical Explorations |first=Keith M |last=Ball |publisher=[[Princeton University Press]] |place=Princeton, NJ |year=2003 |chapter=8: Fibonacci's Rabbits Revisited |isbn=978-0-691-11321-0}}.
* {{Citation | title= Strange Curves, Counting Rabbits, and Other Mathematical Explorations | first= Keith M | last = Ball |publisher= [[Princeton University Press]]| place= Princeton, NJ | year= 2003 | chapter= 8: Fibonacci's Rabbits Revisited |isbn= 978-0-691-11321-0}}.
*{{Citation |title=The Art of Proof: Basic Training for Deeper Mathematics |first1=Matthias |last1=Beck |first2=Ross |last2=Geoghegan |publisher=Springer |place=New York |year=2010 |isbn=978-1-4419-7022-0}}.
* {{Citation |title= The Art of Proof: Basic Training for Deeper Mathematics |first1= Matthias |last1= Beck |first2 = Ross |last2=Geoghegan |publisher=Springer |place=New York |year= 2010 |isbn=978-1-4419-7022-0}}.
*{{Citation |title=A Walk Through Combinatorics |edition=3rd |first=Miklós |last=Bóna |authorlink=Miklós Bóna |publisher=World Scientific |place=New Jersey |year=2011 |isbn=978-981-4335-23-2}}.
* {{Citation |title=A Walk Through Combinatorics |edition= 3rd |first= Miklós |last= Bóna |authorlink=Miklós Bóna |publisher= World Scientific | place=New Jersey |year= 2011 |isbn= 978-981-4335-23-2}}.
**{{Citation |title=A Walk Through Combinatorics |edition=4th Revised |first=Miklós |last=Bóna |publisher=World Scientific |place=New Jersey |year=2016 |isbn=978-981-3148-84-0}}.
** {{Citation |title=A Walk Through Combinatorics |edition= 4th Revised |first= Miklós |last= Bóna |publisher= World Scientific | place=New Jersey |year= 2016 |isbn= 978-981-3148-84-0}}.
*{{Citation |first=Franz |last=Lemmermeyer |year=2000 |title=Reciprocity Laws: From Euler to Eisenstein |series=Springer Monographs in Mathematics |place=New York |publisher=Springer |isbn=978-3-540-66957-9}}.
* {{Citation | first = Franz | last = Lemmermeyer | year = 2000 | title = Reciprocity Laws: From Euler to Eisenstein | series = Springer Monographs in Mathematics | place = New York | publisher = Springer | isbn = 978-3-540-66957-9}}.
*{{cite book |last=Livio |first=Mario |authorlink=Mario Livio |title=The Golden Ratio: The Story of Phi, the World's Most Astonishing Number |url=https://books.google.com/books?id=bUARfgWRH14C |origyear=2002 |edition=First trade paperback |year=2003 |publisher=[[Random House|Broadway Books]] |location=New York City |isbn=0-7679-0816-3 |ref=harv}}
* {{Cite book | last = Livio | first = Mario | authorlink = Mario Livio | title = The Golden Ratio: The Story of Phi, the World's Most Astonishing Number | url = https://books.google.com/books?id=bUARfgWRH14C | origyear = 2002 | edition = First trade paperback | year = 2003 | publisher = [[Random House|Broadway Books]] | location = New York City | isbn = 0-7679-0816-3 | ref = harv}}
*{{Citation |title=Théorie des nombres |first=Édouard |last=Lucas |publisher=Gauthier-Villars|year=1891 |volume=1 |language=French |place=Paris |url=https://archive.org/details/thoriedesnombr01lucauoft |id={{Google books|_hsPAAAAIAAJ|Théorie des nombres|plainurl=yes}}}}.
* {{Citation |title=Théorie des nombres |first= Édouard |last= Lucas |publisher= Gauthier-Villars|year= 1891 | volume = 1 | language = French | place = Paris | url = https://archive.org/details/thoriedesnombr01lucauoft | id = {{Google books|_hsPAAAAIAAJ|Théorie des nombres|plainurl=yes}} }}.
*{{Citation |first=Leonardo |last=Pisano |title=Fibonacci's Liber Abaci: A Translation into Modern English of the Book of Calculation |others=Sigler, Laurence E, trans |series=Sources and Studies in the History of Mathematics and Physical Sciences |publisher=Springer |year=2002 |isbn=978-0-387-95419-6}}
* {{Citation | first = Leonardo | last = Pisano | title = Fibonacci's Liber Abaci: A Translation into Modern English of the Book of Calculation | others = Sigler, Laurence E, trans |series=Sources and Studies in the History of Mathematics and Physical Sciences | publisher=Springer | year=2002 | isbn=978-0-387-95419-6}}


==External links==
== External links ==
{{Wikiquote}}
{{Wikiquote}}
{{Wikibooks|Fibonacci number program}}
{{Wikibooks|Fibonacci number program}}
Line 688: Line 711:
| and link back to that category using the {{dmoz}} template. |
| and link back to that category using the {{dmoz}} template. |
======================= {{No more links}} =====================-->
======================= {{No more links}} =====================-->
*[https://www.mathpages.com/home/kmath078/kmath078.htm Periods of Fibonacci Sequences Mod m] at MathPages
* [http://www.mathpages.com/home/kmath078/kmath078.htm Periods of Fibonacci Sequences Mod m] at MathPages
*[https://phys.org/news/2007-05-scientists-clues-formation-fibonacci-spirals.html Scientists find clues to the formation of Fibonacci spirals in nature]
* [http://www.physorg.com/news97227410.html Scientists find clues to the formation of Fibonacci spirals in nature]
*{{In Our Time|Fibonacci Sequence|b008ct2j|Fibonacci_Sequence}}
* {{In Our Time|Fibonacci Sequence|b008ct2j|Fibonacci_Sequence}}
*{{SpringerEOM|title=Fibonacci numbers|id=p/f040020}}
* {{springer|title=Fibonacci numbers|id=p/f040020}}
*{{OEIS el|sequencenumber=A000045|name=Fibonacci numbers|formalname=Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1}}
* {{OEIS el|sequencenumber=A000045|name=Fibonacci numbers|formalname=Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1}}


{{Classes of natural numbers}}
{{Classes of natural numbers}}

Revision as of 20:10, 29 August 2019

A tiling with squares whose side lengths are successive Fibonacci numbers

In mathematics, the Fibonacci numbers, commonly denoted Fn form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,[1]

and

for n > 1.

One has F2 = 1. In some books, and particularly in old ones, F0, the "0" is omitted, and the Fibonacci sequence starts with F1 = F2 = 1.[2][3] The beginning of the sequence is thus:

[4]
The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling;[5] this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13 and 21.

Fibonacci numbers are strongly related to the golden ratio: Binet's formula expresses the nth Fibonacci number in terms of n and the golden ratio, and implies that the ratio of two consecutive Fibonacci numbers tends to the golden ratio as n increases.

Fibonacci numbers are named after Italian mathematician Leonardo of Pisa, later known as Fibonacci. They appear to have first arisen as early as 200 BC in work by Pingala on enumerating possible patterns of poetry formed from syllables of two lengths. In his 1202 book Liber Abaci, Fibonacci introduced the sequence to Western European mathematics,[6] although the sequence had been described earlier in Indian mathematics.[7][8][9]

Fibonacci numbers appear unexpectedly often in mathematics, so much so that there is an entire journal dedicated to their study, the Fibonacci Quarterly. Applications of Fibonacci numbers include computer algorithms such as the Fibonacci search technique and the Fibonacci heap data structure, and graphs called Fibonacci cubes used for interconnecting parallel and distributed systems.

They also appear in biological settings, such as branching in trees, the arrangement of leaves on a stem, the fruit sprouts of a pineapple, the flowering of an artichoke, an uncurling fern and the arrangement of a pine cone's bracts.

Fibonacci numbers are also closely related to Lucas numbers in that they form a complementary pair of Lucas sequences and . Lucas numbers are also intimately connected with the golden ratio.

History

Thirteen ways of arranging long and short syllables in a cadence of length six. Five end with a long syllable and eight end with a short syllable.

The Fibonacci sequence appears in Indian mathematics in connection with Sanskrit prosody, as pointed out by Parmanand Singh in 1985.[8][10][11] In the Sanskrit poetic tradition, there was interest in enumerating all patterns of long (L) syllables of 2 units duration, juxtaposed with short (S) syllables of 1 unit duration. Counting the different patterns of successive L and S with a given total duration results in the Fibonacci numbers: the number of patterns of duration m units is Fm + 1.[9]

Knowledge of the Fibonacci sequence was expressed as early as Pingala (c. 450 BC–200 BC). Singh cites Pingala's cryptic formula misrau cha ("the two are mixed") and scholars who interpret it in context as saying that the number of patterns for m beats (Fm+1) is obtained by adding one [S] to the Fm cases and one [L] to the Fm−1 cases. [12] Bharata Muni also expresses knowledge of the sequence in the Natya Shastra (c. 100 BC–c. 350 AD).[13][7] However, the clearest exposition of the sequence arises in the work of Virahanka (c. 700 AD), whose own work is lost, but is available in a quotation by Gopala (c. 1135):[11]

Variations of two earlier meters [is the variation]... For example, for [a meter of length] four, variations of meters of two [and] three being mixed, five happens. [works out examples 8, 13, 21]... In this way, the process should be followed in all mātrā-vṛttas [prosodic combinations].[a]

Hemachandra (c. 1150) is credited with knowledge of the sequence as well,[7] writing that "the sum of the last and the one before the last is the number ... of the next mātrā-vṛtta."[15][16]

A page of Fibonacci's Liber Abaci from the Biblioteca Nazionale di Firenze showing (in box on right) the Fibonacci sequence with the position in the sequence labeled in Latin and Roman numerals and the value in Hindu-Arabic numerals.
The number of rabbit pairs form the Fibonacci sequence

Outside India, the Fibonacci sequence first appears in the book Liber Abaci (1202) by Fibonacci.[6][17] using it to calculate the growth of rabbit populations.[18][19] Fibonacci considers the growth of a hypothetical, idealized (biologically unrealistic) rabbit population, assuming that: a newly born pair of rabbits, one male, one female, are put in a field; rabbits are able to mate at the age of one month so that at the end of its second month a female can produce another pair of rabbits; rabbits never die and a mating pair always produces one new pair (one male, one female) every month from the second month on. Fibonacci posed the puzzle: how many pairs will there be in one year?

  • At the end of the first month, they mate, but there is still only 1 pair.
  • At the end of the second month the female produces a new pair, so now there are 2 pairs of rabbits in the field.
  • At the end of the third month, the original female produces a second pair, making 3 pairs in all in the field.
  • At the end of the fourth month, the original female has produced yet another new pair, and the female born two months ago also produces her first pair, making 5 pairs.

At the end of the nth month, the number of pairs of rabbits is equal to the number of new pairs (that is, the number of pairs in month n − 2) plus the number of pairs alive last month (that is, n − 1). This is the nth Fibonacci number.[20]

The name "Fibonacci sequence" was first used by the 19th-century number theorist Édouard Lucas.[21]

Applications

  • The Fibonacci numbers are important in the computational run-time analysis of Euclid's algorithm to determine the greatest common divisor of two integers: the worst case input for this algorithm is a pair of consecutive Fibonacci numbers.[22]
  • Brasch et al. 2012 show how a generalised Fibonacci sequence also can be connected to the field of economics.[23] In particular, it is shown how a generalised Fibonacci sequence enters the control function of finite-horizon dynamic optimisation problems with one state and one control variable. The procedure is illustrated in an example often referred to as the Brock–Mirman economic growth model.
  • Yuri Matiyasevich was able to show that the Fibonacci numbers can be defined by a Diophantine equation, which led to his solving Hilbert's tenth problem.[24]
  • The Fibonacci numbers are also an example of a complete sequence. This means that every positive integer can be written as a sum of Fibonacci numbers, where any one number is used once at most.
  • Moreover, every positive integer can be written in a unique way as the sum of one or more distinct Fibonacci numbers in such a way that the sum does not include any two consecutive Fibonacci numbers. This is known as Zeckendorf's theorem, and a sum of Fibonacci numbers that satisfies these conditions is called a Zeckendorf representation. The Zeckendorf representation of a number can be used to derive its Fibonacci coding.
  • Fibonacci numbers are used by some pseudorandom number generators.
  • They are also used in planning poker, which is a step in estimating in software development projects that use the Scrum methodology.
  • Fibonacci numbers are used in a polyphase version of the merge sort algorithm in which an unsorted list is divided into two lists whose lengths correspond to sequential Fibonacci numbers – by dividing the list so that the two parts have lengths in the approximate proportion φ. A tape-drive implementation of the polyphase merge sort was described in The Art of Computer Programming.
  • Fibonacci numbers arise in the analysis of the Fibonacci heap data structure.
  • The Fibonacci cube is an undirected graph with a Fibonacci number of nodes that has been proposed as a network topology for parallel computing.
  • A one-dimensional optimization method, called the Fibonacci search technique, uses Fibonacci numbers.[25]
  • The Fibonacci number series is used for optional lossy compression in the IFF 8SVX audio file format used on Amiga computers. The number series compands the original audio wave similar to logarithmic methods such as µ-law.[26][27]
  • Since the conversion factor 1.609344 for miles to kilometers is close to the golden ratio, the decomposition of distance in miles into a sum of Fibonacci numbers becomes nearly the kilometer sum when the Fibonacci numbers are replaced by their successors. This method amounts to a radix 2 number register in golden ratio base φ being shifted. To convert from kilometers to miles, shift the register down the Fibonacci sequence instead.[28]
  • In optics, when a beam of light shines at an angle through two stacked transparent plates of different materials of different refractive indexes, it may reflect off three surfaces: the top, middle, and bottom surfaces of the two plates. The number of different beam paths that have k reflections, for k > 1, is the th Fibonacci number. (However, when k = 1, there are three reflection paths, not two, one for each of the three surfaces.)[29]
  • Mario Merz included the Fibonacci sequence in some of his works beginning in 1970.[30]
  • Fibonacci retracement levels are widely used in technical analysis for financial market trading.

Music

Joseph Schillinger (1895–1943) developed a system of composition which uses Fibonacci intervals in some of its melodies; he viewed these as the musical counterpart to the elaborate harmony evident within nature.[31]

Nature

Yellow chamomile head showing the arrangement in 21 (blue) and 13 (aqua) spirals. Such arrangements involving consecutive Fibonacci numbers appear in a wide variety of plants.

Fibonacci sequences appear in biological settings,[32] such as branching in trees, arrangement of leaves on a stem, the fruitlets of a pineapple,[33] the flowering of artichoke, an uncurling fern and the arrangement of a pine cone,[34] and the family tree of honeybees.[35][36] Kepler pointed out the presence of the Fibonacci sequence in nature, using it to explain the (golden ratio-related) pentagonal form of some flowers.[37] Field daisies most often have petals in counts of Fibonacci numbers.[38] In 1754, Charles Bonnet discovered that the spiral phyllotaxis of plants were frequently expressed in Fibonacci number series.[39]

Przemysław Prusinkiewicz advanced the idea that real instances can in part be understood as the expression of certain algebraic constraints on free groups, specifically as certain Lindenmayer grammars.[40]

Illustration of Vogel's model for n = 1 ... 500

A model for the pattern of florets in the head of a sunflower was proposed by Helmut Vogel [de] in 1979.[41] This has the form

where n is the index number of the floret and c is a constant scaling factor; the florets thus lie on Fermat's spiral. The divergence angle, approximately 137.51°, is the golden angle, dividing the circle in the golden ratio. Because this ratio is irrational, no floret has a neighbor at exactly the same angle from the center, so the florets pack efficiently. Because the rational approximations to the golden ratio are of the form F(j):F(j + 1), the nearest neighbors of floret number n are those at n ± F(j) for some index j, which depends on r, the distance from the center. Sunflowers and similar flowers most commonly have spirals of florets in clockwise and counter-clockwise directions in the amount of adjacent Fibonacci numbers,[42] typically counted by the outermost range of radii.[43]

Fibonacci numbers also appear in the pedigrees of idealized honeybees, according to the following rules:

  • If an egg is laid by an unmated female, it hatches a male or drone bee.
  • If, however, an egg was fertilized by a male, it hatches a female.

Thus, a male bee always has one parent, and a female bee has two. If one traces the pedigree of any male bee (1 bee), he has 1 parent (1 bee), 2 grandparents, 3 great-grandparents, 5 great-great-grandparents, and so on. This sequence of numbers of parents is the Fibonacci sequence. The number of ancestors at each level, Fn, is the number of female ancestors, which is Fn−1, plus the number of male ancestors, which is Fn−2.[44] This is under the unrealistic assumption that the ancestors at each level are otherwise unrelated.

The number of possible ancestors on the X chromosome inheritance line at a given ancestral generation follows the Fibonacci sequence. (After Hutchison, L. "Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships".[45])

Luke Hutchison noticed that the number of possible ancestors on the human X chromosome inheritance line at a given ancestral generation also follows the Fibonacci sequence.[45] A male individual has an X chromosome, which he received from his mother, and a Y chromosome, which he received from his father. The male counts as the "origin" of his own X chromosome (), and at his parents' generation, his X chromosome came from a single parent (). The male's mother received one X chromosome from her mother (the son's maternal grandmother), and one from her father (the son's maternal grandfather), so two grandparents contributed to the male descendant's X chromosome (). The maternal grandfather received his X chromosome from his mother, and the maternal grandmother received X chromosomes from both of her parents, so three great-grandparents contributed to the male descendant's X chromosome (). Five great-great-grandparents contributed to the male descendant's X chromosome (), etc. (This assumes that all ancestors of a given descendant are independent, but if any genealogy is traced far enough back in time, ancestors begin to appear on multiple lines of the genealogy, until eventually a population founder appears on all lines of the genealogy.)

The pathways of tubulins on intracellular microtubules arrange in patterns of 3, 5, 8 and 13.[46]

Mathematics

The Fibonacci numbers are the sums of the "shallow" diagonals (shown in red) of Pascal's triangle.

The Fibonacci numbers occur in the sums of "shallow" diagonals in Pascal's triangle (see binomial coefficient):[47]

These numbers also give the solution to certain enumerative problems,[48] the most common of which is that of counting the number of ways of writing a given number n as an ordered sum of 1s and 2s (called compositions); there are Fn+1 ways to do this. For example, if n = 5, then Fn+1 = F6 = 8 counts the eight compositions summing to 5:

5 = 1+1+1+1+1 = 1+1+1+2 = 1+1+2+1 = 1+2+1+1 = 2+1+1+1 = 2+2+1 = 2+1+2 = 1+2+2.

The Fibonacci numbers can be found in different ways among the set of binary strings, or equivalently, among the subsets of a given set.

  • The number of binary strings of length n without consecutive 1s is the Fibonacci number Fn+2. For example, out of the 16 binary strings of length 4, there are F6 = 8 without consecutive 1s – they are 0000, 0001, 0010, 0100, 0101, 1000, 1001, and 1010. Equivalently, Fn+2 is the number of subsets S of {1, ..., n} without consecutive integers, that is, those S for which {i, i + 1} ⊈ S for every i.
  • The number of binary strings of length n without an odd number of consecutive 1s is the Fibonacci number Fn+1. For example, out of the 16 binary strings of length 4, there are F5 = 5 without an odd number of consecutive 1s – they are 0000, 0011, 0110, 1100, 1111. Equivalently, the number of subsets S of {1, ..., n} without an odd number of consecutive integers is Fn+1.
  • The number of binary strings of length n without an even number of consecutive 0s or 1s is 2Fn. For example, out of the 16 binary strings of length 4, there are 2F4 = 6 without an even number of consecutive 0s or 1s – they are 0001, 0111, 0101, 1000, 1010, 1110. There is an equivalent statement about subsets.

Sequence properties

The first 21 Fibonacci numbers Fn for n = 0, 1, 2, ..., 20 are:[49]

F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765

The sequence can also be extended to negative index n using the re-arranged recurrence relation

which yields the sequence of "negafibonacci" numbers[50] satisfying

Thus the bidirectional sequence is

F−8 F−7 F−6 F−5 F−4 F−3 F−2 F−1 F0 F1 F2 F3 F4 F5 F6 F7 F8
−21 13 −8 5 −3 2 −1 1 0 1 1 2 3 5 8 13 21

Relation to the golden ratio

Closed-form expression

Like every sequence defined by a linear recurrence with constant coefficients, the Fibonacci numbers have a closed-form solution. It has become known as "Binet's formula", though it was already known by Abraham de Moivre and Daniel Bernoulli:[51]

where

is the golden ratio (OEISA001622), and

[52]

Since , this formula can also be written as

To see this,[53] note that φ and ψ are both solutions of the equations

so the powers of φ and ψ satisfy the Fibonacci recursion. In other words,

and

It follows that for any values a and b, the sequence defined by

satisfies the same recurrence

If a and b are chosen so that U0 = 0 and U1 = 1 then the resulting sequence Un must be the Fibonacci sequence. This is the same as requiring a and b satisfy the system of equations:

which has solution

producing the required formula.

Taking the starting values U0 and U1 to be arbitrary constants, a more general solution is:

where

.

Computation by rounding

Since

for all n ≥ 0, the number Fn is the closest integer to . Therefore, it can be found by rounding, that is by the use of the nearest integer function:

or in terms of the floor function:

Similarly, if we already know that the number F > 1 is a Fibonacci number, we can determine its index within the sequence by

where can be computed using logarithms to other usual bases. For example, .

Limit of consecutive quotients

Johannes Kepler observed that the ratio of consecutive Fibonacci numbers converges. He wrote that "as 5 is to 8 so is 8 to 13, practically, and as 8 is to 13, so is 13 to 21 almost", and concluded that these ratios approach the golden ratio [54][55]

This convergence holds regardless of the starting values, excluding 0 and 0, or any pair in the conjugate golden ratio, [clarification needed] This can be verified using Binet's formula. For example, the initial values 3 and 2 generate the sequence 3, 2, 5, 7, 12, 19, 31, 50, 81, 131, 212, 343, 555, ... The ratio of consecutive terms in this sequence shows the same convergence towards the golden ratio.

Successive tilings of the plane and a graph of approximations to the golden ratio calculated by dividing each Fibonacci number by the previous

Decomposition of powers

Since the golden ratio satisfies the equation

this expression can be used to decompose higher powers as a linear function of lower powers, which in turn can be decomposed all the way down to a linear combination of and 1. The resulting recurrence relationships yield Fibonacci numbers as the linear coefficients:

This equation can be proved by induction on n.

This expression is also true for n < 1 if the Fibonacci sequence Fn is extended to negative integers using the Fibonacci rule

Matrix form

A 2-dimensional system of linear difference equations that describes the Fibonacci sequence is

alternatively denoted

which yields . The eigenvalues of the matrix A are and corresponding to the respective eigenvectors

and

As the initial value is

it follows that the nth term is

From this, the nth element in the Fibonacci series may be read off directly as a closed-form expression:

Equivalently, the same computation may performed by diagonalization of A through use of its eigendecomposition:

where and The closed-form expression for the nth element in the Fibonacci series is therefore given by

which again yields

The matrix A has a determinant of −1, and thus it is a 2×2 unimodular matrix.

This property can be understood in terms of the continued fraction representation for the golden ratio:

The Fibonacci numbers occur as the ratio of successive convergents of the continued fraction for φ, and the matrix formed from successive convergents of any continued fraction has a determinant of +1 or −1. The matrix representation gives the following closed-form expression for the Fibonacci numbers:

Taking the determinant of both sides of this equation yields Cassini's identity,

Moreover, since An Am = An+m for any square matrix A, the following identities can be derived (they are obtained from two different coefficients of the matrix product, and one may easily deduce the second one from the first one by changing n into n + 1),

In particular, with m = n,

These last two identities provide a way to compute Fibonacci numbers recursively in O(log(n)) arithmetic operations and in time O(M(n) log(n)), where M(n) is the time for the multiplication of two numbers of n digits. This matches the time for computing the nth Fibonacci number from the closed-form matrix formula, but with fewer redundant steps if one avoids recomputing an already computed Fibonacci number (recursion with memoization).[56]

Identification

The question may arise whether a positive integer x is a Fibonacci number. This is true if and only if one or both of or is a perfect square.[57] This is because Binet's formula above can be rearranged to give

,

which allows one to find the position in the sequence of a given Fibonacci number.

This formula must return an integer for all n, so the radical expression must be an integer (otherwise the logarithm does not even return a rational number).

Combinatorial identities

Most identities involving Fibonacci numbers can be proved using combinatorial arguments using the fact that Fn can be interpreted as the number of sequences of 1s and 2s that sum to n − 1. This can be taken as the definition of Fn, with the convention that F0 = 0, meaning no sum adds up to −1, and that F1 = 1, meaning the empty sum "adds up" to 0. Here, the order of the summand matters. For example, 1 + 2 and 2 + 1 are considered two different sums.

For example, the recurrence relation

or in words, the nth Fibonacci number is the sum of the previous two Fibonacci numbers, may be shown by dividing the Fn sums of 1s and 2s that add to n − 1 into two non-overlapping groups. One group contains those sums whose first term is 1 and the other those sums whose first term is 2. In the first group the remaining terms add to n − 2, so it has Fn-1 sums, and in the second group the remaining terms add to n − 3, so there are Fn−2 sums. So there are a total of Fn−1 + Fn−2 sums altogether, showing this is equal to Fn.

Similarly, it may be shown that the sum of the first Fibonacci numbers up to the nth is equal to the (n + 2)-nd Fibonacci number minus 1.[58] In symbols:

This is done by dividing the sums adding to n + 1 in a different way, this time by the location of the first 2. Specifically, the first group consists of those sums that start with 2, the second group those that start 1 + 2, the third 1 + 1 + 2, and so on, until the last group, which consists of the single sum where only 1's are used. The number of sums in the first group is F(n), F(n − 1) in the second group, and so on, with 1 sum in the last group. So the total number of sums is F(n) + F(n − 1) + ... + F(1) + 1 and therefore this quantity is equal to F(n + 2).

A similar argument, grouping the sums by the position of the first 1 rather than the first 2, gives two more identities:

and

In words, the sum of the first Fibonacci numbers with odd index up to F2n−1 is the (2n)th Fibonacci number, and the sum of the first Fibonacci numbers with even index up to F2n is the (2n + 1)th Fibonacci number minus 1.[59]

A different trick may be used to prove

or in words, the sum of the squares of the first Fibonacci numbers up to Fn is the product of the nth and (n + 1)th Fibonacci numbers. In this case Fibonacci rectangle of size Fn by F(n + 1) can be decomposed into squares of size Fn, Fn−1, and so on to F1 = 1, from which the identity follows by comparing areas.

Symbolic method

The sequence is also considered using the symbolic method.[60] More precisely, this sequence corresponds to a specifiable combinatorial class. The specification of this sequence is . Indeed, as stated above, the -th Fibonacci numbes equals the number of way to partition using segments of size 1 or 2.

It follows that the ordinary generating function of the Fibonacci sequence, i.e. , is the complex function .

Other identities

Numerous other identities can be derived using various methods. Some of the most noteworthy are:[61]

Cassini's and Catalan's identities

Cassini's identity states that

Catalan's identity is a generalization:

d'Ocagne's identity

where Ln is the n'th Lucas number. The last is an identity for doubling n; other identities of this type are

by Cassini's identity.

These can be found experimentally using lattice reduction, and are useful in setting up the special number field sieve to factorize a Fibonacci number.

More generally,[61]

Putting k = 2 in this formula, one gets again the formulas of the end of above section Matrix form.

Power series

The generating function of the Fibonacci sequence is the power series

This series is convergent for and its sum has a simple closed-form:[62]

This can be proved by using the Fibonacci recurrence to expand each coefficient in the infinite sum:

Solving the equation

for s(x) results in the above closed form.

Setting x = 1/k, the closed form of the series becomes

In particular, if k is an integer greater than 1, then this series converges. Further setting k = 10m yields

for all positive integers m.

Some math puzzle-books present as curious the particular value that comes from m = 1, which is [63] Similarly, m = 2 gives

Reciprocal sums

Infinite sums over reciprocal Fibonacci numbers can sometimes be evaluated in terms of theta functions. For example, we can write the sum of every odd-indexed reciprocal Fibonacci number as

and the sum of squared reciprocal Fibonacci numbers as

If we add 1 to each Fibonacci number in the first sum, there is also the closed form

and there is a nested sum of squared Fibonacci numbers giving the reciprocal of the golden ratio,

No closed formula for the reciprocal Fibonacci constant

is known, but the number has been proved irrational by Richard André-Jeannin.[64]

The Millin series gives the identity[65]

which follows from the closed form for its partial sums as N tends to infinity:

Primes and divisibility

Divisibility properties

Every third number of the sequence is even and more generally, every kth number of the sequence is a multiple of Fk. Thus the Fibonacci sequence is an example of a divisibility sequence. In fact, the Fibonacci sequence satisfies the stronger divisibility property[66][67]

Any three consecutive Fibonacci numbers are pairwise coprime, which means that, for every n,

gcd(Fn, Fn+1) = gcd(Fn, Fn+2) = gcd(Fn+1, Fn+2) = 1.

Every prime number p divides a Fibonacci number that can be determined by the value of p modulo 5. If p is congruent to 1 or 4 (mod 5), then p divides Fp − 1, and if p is congruent to 2 or 3 (mod 5), then, p divides Fp + 1. The remaining case is that p = 5, and in this case p divides Fp.

These cases can be combined into a single formula, using the Legendre symbol:[68]

Primality testing

The above formula can be used as a primality test in the sense that if

where the Legendre symbol has been replaced by the Jacobi symbol, then this is evidence that n is a prime, and if it fails to hold, then n is definitely not a prime. If n is composite and satisfies the formula, then n is a Fibonacci pseudoprime. When m is large—say a 500-bit number—then we can calculate Fm (mod n) efficiently using the matrix form. Thus

Here the matrix power Am is calculated using modular exponentiation, which can be adapted to matrices.[69]

Fibonacci primes

A Fibonacci prime is a Fibonacci number that is prime. The first few are:

2, 3, 5, 13, 89, 233, 1597, 28657, 514229, ... OEISA005478.

Fibonacci primes with thousands of digits have been found, but it is not known whether there are infinitely many.[70]

Fkn is divisible by Fn, so, apart from F4 = 3, any Fibonacci prime must have a prime index. As there are arbitrarily long runs of composite numbers, there are therefore also arbitrarily long runs of composite Fibonacci numbers.

No Fibonacci number greater than F6 = 8 is one greater or one less than a prime number.[71]

The only nontrivial square Fibonacci number is 144.[72] Attila Pethő proved in 2001 that there is only a finite number of perfect power Fibonacci numbers.[73] In 2006, Y. Bugeaud, M. Mignotte, and S. Siksek proved that 8 and 144 are the only such non-trivial perfect powers.[74]

1, 3, 21, 55 are the only triangular Fibonacci numbers, which was conjectured by Vern Hoggatt and proved by Luo Ming.[75]

No Fibonacci number can be a perfect number.[76] More generally, no Fibonaci number other than 1 can be multiply perfect,[77] and no ratio of two Fibonacci numbers can be perfect.[78]

Prime divisors

With the exceptions of 1, 8 and 144 (F1 = F2, F6 and F12) every Fibonacci number has a prime factor that is not a factor of any smaller Fibonacci number (Carmichael's theorem).[79] As a result, 8 and 144 (F6 and F12) are the only Fibonacci numbers that are the product of other Fibonacci numbers OEISA235383.

The divisibility of Fibonacci numbers by a prime p is related to the Legendre symbol which is evaluated as follows:

If p is a prime number then

[80][81]

For example,

It is not known whether there exists a prime p such that

Such primes (if there are any) would be called Wall–Sun–Sun primes.

Also, if p ≠ 5 is an odd prime number then:[82]

Example 1. p = 7, in this case p ≡ 3 (mod 4) and we have:

Example 2. p = 11, in this case p ≡ 3 (mod 4) and we have:

Example 3. p = 13, in this case p ≡ 1 (mod 4) and we have:

Example 4. p = 29, in this case p ≡ 1 (mod 4) and we have:

For odd n, all odd prime divisors of Fn are congruent to 1 modulo 4, implying that all odd divisors of Fn (as the products of odd prime divisors) are congruent to 1 modulo 4.[83]

For example,

All known factors of Fibonacci numbers F(i) for all i < 50000 are collected at the relevant repositories.[84][85]

Periodicity modulo n

If the members of the Fibonacci sequence are taken mod n, the resulting sequence is periodic with period at most 6n.[86] The lengths of the periods for various n form the so-called Pisano periods OEISA001175. Determining a general formula for the Pisano periods is an open problem, which includes as a subproblem a special instance of the problem of finding the multiplicative order of a modular integer or of an element in a finite field. However, for any particular n, the Pisano period may be found as an instance of cycle detection.

Right triangles

Starting with 5, every second Fibonacci number is the length of the hypotenuse of a right triangle with integer sides, or in other words, the largest number in a Pythagorean triple. The length of the longer leg of this triangle is equal to the sum of the three sides of the preceding triangle in this series of triangles, and the shorter leg is equal to the difference between the preceding bypassed Fibonacci number and the shorter leg of the preceding triangle.

The first triangle in this series has sides of length 5, 4, and 3. Skipping 8, the next triangle has sides of length 13, 12 (5 + 4 + 3), and 5 (8 − 3). Skipping 21, the next triangle has sides of length 34, 30 (13 + 12 + 5), and 16 (21 − 5). This series continues indefinitely. The triangle sides a, b, c can be calculated directly:

These formulas satisfy for all n, but they only represent triangle sides when n > 2.

Any four consecutive Fibonacci numbers Fn, Fn+1, Fn+2 and Fn+3 can also be used to generate a Pythagorean triple in a different way:[87]

Magnitude

Since Fn is asymptotic to , the number of digits in Fn is asymptotic to . As a consequence, for every integer d > 1 there are either 4 or 5 Fibonacci numbers with d decimal digits.

More generally, in the base b representation, the number of digits in Fn is asymptotic to

Generalizations

The Fibonacci sequence is one of the simplest and earliest known sequences defined by a recurrence relation, and specifically by a linear difference equation. All these sequences may be viewed as generalizations of the Fibonacci sequence. In particular, Binet's formula may be generalized to any sequence that is a solution of a homogeneous linear difference equation with constant coefficients.

Some specific examples that are close, in some sense, from Fibonacci sequence include:

  • Generalizing the index to negative integers to produce the negafibonacci numbers.
  • Generalizing the index to real numbers using a modification of Binet's formula.[61]
  • Starting with other integers. Lucas numbers have L1 = 1, L2 = 3, and Ln = Ln−1 + Ln−2. Primefree sequences use the Fibonacci recursion with other starting points to generate sequences in which all numbers are composite.
  • Letting a number be a linear function (other than the sum) of the 2 preceding numbers. The Pell numbers have Pn = 2Pn − 1 + Pn − 2. If the coefficient of the preceding value is assigned a variable value x, the result is the sequence of Fibonacci polynomials.
  • Not adding the immediately preceding numbers. The Padovan sequence and Perrin numbers have P(n) = P(n − 2) + P(n − 3).
  • Generating the next number by adding 3 numbers (tribonacci numbers), 4 numbers (tetranacci numbers), or more. The resulting sequences are known as n-Step Fibonacci numbers.[88]

See also

References

Footnotes

  1. ^ "For four, variations of meters of two [and] three being mixed, five happens. For five, variations of two earlier – three [and] four, being mixed, eight is obtained. In this way, for six, [variations] of four [and] of five being mixed, thirteen happens. And like that, variations of two earlier meters being mixed, seven morae [is] twenty-one. In this way, the process should be followed in all mātrā-vṛttas" [14]

Citations

  1. ^ Lucas 1891, p. 3.
  2. ^ Beck & Geoghegan 2010.
  3. ^ Bóna 2011, p. 180.
  4. ^ Sloane, N. J. A. (ed.). "Sequence A000045". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  5. ^ John Hudson Tiner (200). Exploring the World of Mathematics: From Ancient Record Keeping to the Latest Advances in Computers. New Leaf Publishing Group. ISBN 978-1-61458-155-0.
  6. ^ a b Pisano 2002, pp. 404–5.
  7. ^ a b c Goonatilake, Susantha (1998), Toward a Global Science, Indiana University Press, p. 126, ISBN 978-0-253-33388-9
  8. ^ a b Singh, Parmanand (1985), "The So-called Fibonacci numbers in ancient and medieval India", Historia Mathematica, 12 (3): 229–44, doi:10.1016/0315-0860(85)90021-7
  9. ^ a b Knuth, Donald (2006), The Art of Computer Programming, vol. 4. Generating All Trees – History of Combinatorial Generation, Addison–Wesley, p. 50, ISBN 978-0-321-33570-8, it was natural to consider the set of all sequences of [L] and [S] that have exactly m beats. ...there are exactly Fm+1 of them. For example the 21 sequences when m = 7 are: [gives list]. In this way Indian prosodists were led to discover the Fibonacci sequence, as we have observed in Section 1.2.8 (from v.1)
  10. ^ Knuth, Donald (1968), The Art of Computer Programming, vol. 1, Addison Wesley, p. 100, ISBN 978-81-7758-754-8, Before Fibonacci wrote his work, the sequence Fn had already been discussed by Indian scholars, who had long been interested in rhythmic patterns... both Gopala (before 1135 AD) and Hemachandra (c. 1150) mentioned the numbers 1,2,3,5,8,13,21 explicitly [see P. Singh Historia Math 12 (1985) 229–44]" p. 100 (3d ed)...
  11. ^ a b Livio 2003, p. 197.
  12. ^ Agrawala, VS (1969), Pāṇinikālīna Bhāratavarṣa (Hn.). Varanasi-I: TheChowkhamba Vidyabhawan, SadgurushiShya writes that Pingala was a younger brother of Pāṇini [Agrawala 1969, lb]. There is an alternative opinion that he was a maternal uncle of Pāṇini [Vinayasagar 1965, Preface, 121]. ... Agrawala [1969, 463–76], after a careful investigation, in which he considered the views of earlier scholars, has concluded that Pāṇini lived between 480 and 410 BC
  13. ^ Singh, Parmanand (1985). "The So-called Fibonacci Numbers in Ancient and Medieval India" (PDF). Historia Mathematica. 12 (3). Academic Press: 232. doi:10.1016/0315-0860(85)90021-7.
  14. ^ Velankar, HD (1962), 'Vṛttajātisamuccaya' of kavi Virahanka, Jodhpur: Rajasthan Oriental Research Institute, p. 101
  15. ^ Livio 2003, p. 197–8.
  16. ^ Shah, Jayant (1991). "A History of Piṅgala's Combinatorics" (PDF). Northeastern University: 41. Retrieved 4 January 2019.
  17. ^ "Fibonacci's Liber Abaci (Book of Calculation)". The University of Utah. 13 December 2009. Retrieved 28 November 2018.
  18. ^ Hemenway, Priya (2005). Divine Proportion: Phi In Art, Nature, and Science. New York: Sterling. pp. 20–21. ISBN 1-4027-3522-7.
  19. ^ Knott, Dr. Ron (25 September 2016). "The Fibonacci Numbers and Golden section in Nature - 1". University of Surrey. Retrieved 27 November 2018.
  20. ^ Knott, Ron. "Fibonacci's Rabbits". University of Surrey Faculty of Engineering and Physical Sciences.
  21. ^ Gardner, Martin (1996), Mathematical Circus, The Mathematical Association of America, p. 153, ISBN 978-0-88385-506-5, It is ironic that Leonardo, who made valuable contributions to mathematics, is remembered today mainly because a 19th-century French number theorist, Édouard Lucas... attached the name Fibonacci to a number sequence that appears in a trivial problem in Liber abaci
  22. ^ Knuth, Donald E (1997), The Art of Computer Programming, vol. 1: Fundamental Algorithms (3rd ed.), Addison–Wesley, p. 343, ISBN 978-0-201-89683-1
  23. ^ Brasch, T. von; Byström, J.; Lystad, L.P. (2012), "Optimal Control and the Fibonacci Sequence", Journal of Optimization Theory and Applications, 154 (3): 857–78, doi:10.1007/s10957-012-0061-2, hdl:11250/180781
  24. ^ Harizanov, Valentina (1995), "Review of Yuri V. Matiyasevich, Hibert's Tenth Problem", Modern Logic, 5 (3): 345–355.
  25. ^ Avriel, M; Wilde, DJ (1966), "Optimality of the Symmetric Fibonacci Search Technique", Fibonacci Quarterly (3): 265–9
  26. ^ Amiga ROM Kernel Reference Manual, Addison–Wesley, 1991
  27. ^ "IFF", Multimedia Wiki
  28. ^ "Zeckendorf representation", Encyclopedia of Math
  29. ^ Livio 2003, pp. 98–9.
  30. ^ Livio 2003, p. 176.
  31. ^ Livio 2003, p. 193.
  32. ^ Douady, S; Couder, Y (1996), "Phyllotaxis as a Dynamical Self Organizing Process" (PDF), Journal of Theoretical Biology, 178 (3): 255–74, doi:10.1006/jtbi.1996.0026, archived from the original (PDF) on 2006-05-26 {{citation}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  33. ^ Jones, Judy; Wilson, William (2006), "Science", An Incomplete Education, Ballantine Books, p. 544, ISBN 978-0-7394-7582-9
  34. ^ Brousseau, A (1969), "Fibonacci Statistics in Conifers", Fibonacci Quarterly (7): 525–32
  35. ^ "Marks for the da Vinci Code: B–". Maths. Computer Science For Fun: CS4FN.
  36. ^ Scott, T.C.; Marketos, P. (March 2014), On the Origin of the Fibonacci Sequence (PDF), MacTutor History of Mathematics archive, University of St Andrews
  37. ^ Livio 2003, p. 110.
  38. ^ Livio 2003, pp. 112–13.
  39. ^ "The Secret of the Fibonacci Sequence in Trees". American Museum of Natural History. 2011. Archived from the original on 4 May 2013. Retrieved 4 February 2019.
  40. ^ Prusinkiewicz, Przemyslaw; Hanan, James (1989), Lindenmayer Systems, Fractals, and Plants (Lecture Notes in Biomathematics), Springer-Verlag, ISBN 978-0-387-97092-9
  41. ^ Vogel, Helmut (1979), "A better way to construct the sunflower head", Mathematical Biosciences, 44 (3–4): 179–89, doi:10.1016/0025-5564(79)90080-4
  42. ^ Livio 2003, p. 112.
  43. ^ Prusinkiewicz, Przemyslaw; Lindenmayer, Aristid (1990), "4", The Algorithmic Beauty of Plants, Springer-Verlag, pp. 101–107, ISBN 978-0-387-97297-8
  44. ^ "The Fibonacci sequence as it appears in nature" (PDF), The Fibonacci Quarterly, 1 (1): 53–56, 1963
  45. ^ a b Hutchison, Luke (September 2004). "Growing the Family Tree: The Power of DNA in Reconstructing Family Relationships" (PDF). Proceedings of the First Symposium on Bioinformatics and Biotechnology (BIOT-04). Retrieved 2016-09-03.
  46. ^ Hameroff, Stuart; Penrose, Roger (March 2014). "Consciousness in the universe: A review of the 'Orch OR' theory". Physics of Life Reviews. 11 (1). Elsevier: 39–78. Bibcode:2014PhLRv..11...39H. doi:10.1016/j.plrev.2013.08.002. PMID 24070914.
  47. ^ Lucas 1891, p. 7.
  48. ^ Stanley, Richard (2011). Enumerative Combinatorics I (2nd ed.). Cambridge Univ. Press. p. 121, Ex 1.35. ISBN 978-1-107-60262-5.
  49. ^ Knott, R, "Fib table", Fibonacci, UK: Surrey has the first 300 Fn factored into primes and links to more extensive tables.
  50. ^ Knuth, Donald (2008-12-11), "Negafibonacci Numbers and the Hyperbolic Plane", Annual meeting, The Fairmont Hotel, San Jose, CA: The Mathematical Association of America
  51. ^ Weisstein, Eric W. "Binet's Fibonacci Number Formula". MathWorld.
  52. ^ Ball 2003, p. 156.
  53. ^ Ball 2003, pp. 155–6.
  54. ^ Kepler, Johannes (1966), A New Year Gift: On Hexagonal Snow, Oxford University Press, p. 92, ISBN 978-0-19-858120-8
  55. ^ Strena seu de Nive Sexangula, 1611
  56. ^ Dijkstra, Edsger W. (1978), In honour of Fibonacci (PDF)
  57. ^ Gessel, Ira (October 1972), "Fibonacci is a Square" (PDF), The Fibonacci Quarterly, 10 (4): 417–19, retrieved April 11, 2012
  58. ^ Lucas 1891, p. 4.
  59. ^ Vorobiev, Nikolaĭ Nikolaevich; Martin, Mircea (2002), "Chapter 1", Fibonacci Numbers, Birkhäuser, pp. 5–6, ISBN 978-3-7643-6135-8
  60. ^ Flajolet, Philippe; Sedgewick, Robert (2009). Analytic Combinatorics. Cambridge University Press. p. 42. ISBN 978-0521898065.
  61. ^ a b c Weisstein, Eric W. "Fibonacci Number". MathWorld.
  62. ^ Glaister, P (1995), "Fibonacci power series", The Mathematical Gazette, 79 (486): 521–525, doi:10.2307/3618079, JSTOR 3618079
  63. ^ Köhler, Günter (February 1985), "Generating functions of Fibonacci-like sequences and decimal expansions of some fractions" (PDF), The Fibonacci Quarterly, 23 (1): 29–35, retrieved December 31, 2011
  64. ^ André-Jeannin, Richard (1989), "Irrationalité de la somme des inverses de certaines suites récurrentes", Comptes Rendus de l'Académie des Sciences, Série I, 308 (19): 539–541, MR 0999451
  65. ^ Weisstein, Eric W. "Millin Series". MathWorld.
  66. ^ Ribenboim, Paulo (2000), My Numbers, My Friends, Springer-Verlag
  67. ^ Su, Francis E (2000), "Fibonacci GCD's, please", Mudd Math Fun Facts, et al, HMC
  68. ^ Williams, H. C. (1982), "A note on the Fibonacci quotient ", Canadian Mathematical Bulletin, 25 (3): 366–370, doi:10.4153/CMB-1982-053-0, hdl:10338.dmlcz/137492, MR 0668957. Williams calls this property "well known".
  69. ^ Prime Numbers, Richard Crandall, Carl Pomerance, Springer, second edition, 2005, p.142.
  70. ^ Weisstein, Eric W. "Fibonacci Prime". MathWorld.
  71. ^ Honsberger, Ross (1985), "Mathematical Gems III", AMS Dolciani Mathematical Expositions (9): 133, ISBN 978-0-88385-318-4
  72. ^ Cohn, JHE (1964), "Square Fibonacci Numbers etc", Fibonacci Quarterly, 2: 109–13
  73. ^ Pethő, Attila (2001), "Diophantine properties of linear recursive sequences II", Acta Mathematica Academiae Paedagogicae Nyíregyháziensis, 17: 81–96
  74. ^ Bugeaud, Y; Mignotte, M; Siksek, S (2006), "Classical and modular approaches to exponential Diophantine equations. I. Fibonacci and Lucas perfect powers", Ann. Math., 2 (163): 969–1018, arXiv:math/0403046, Bibcode:2004math......3046B, doi:10.4007/annals.2006.163.969
  75. ^ Ming, Luo (1989), "On triangular Fibonacci numbers" (PDF), Fibonacci Quart., 27 (2): 98–108
  76. ^ Luca, Florian (2000). "Perfect Fibonacci and Lucas numbers". Rendiconti del Circolo Matematico di Palermo. 49 (2): 313–318. doi:10.1007/BF02904236. ISSN 1973-4409. MR 1765401.
  77. ^ Broughan, Kevin A.; González, Marcos J.; Lewis, Ryan H.; Luca, Florian; Mejía Huguet, V. Janitzio; Togbé, Alain (2011). "There are no multiply-perfect Fibonacci numbers". Integers. 11a: A7. MR 2988067.
  78. ^ Luca, Florian; Mejía Huguet, V. Janitzio (2010). "On Perfect numbers which are ratios of two Fibonacci numbers". Annales Mathematicae at Informaticae. 37: 107–124. ISSN 1787-6117. MR 2753031.
  79. ^ Knott, Ron, The Fibonacci numbers, UK: Surrey
  80. ^ Ribenboim, Paulo (1996), The New Book of Prime Number Records, New York: Springer, p. 64, ISBN 978-0-387-94457-9
  81. ^ Lemmermeyer 2000, pp. 73–4, ex. 2.25–28.
  82. ^ Lemmermeyer 2000, pp. 73–4, ex. 2.28.
  83. ^ Lemmermeyer 2000, p. 73, ex. 2.27.
  84. ^ Fibonacci and Lucas factorizations, Mersennus collects all known factors of F(i) with i < 10000.
  85. ^ Factors of Fibonacci and Lucas numbers, Red golpe collects all known factors of F(i) with 10000 < i < 50000.
  86. ^ Freyd, Peter; Brown, Kevin S. (1993), "Problems and Solutions: Solutions: E3410", The American Mathematical Monthly, 99 (3): 278–279, doi:10.2307/2325076, JSTOR 2325076
  87. ^ Koshy, Thomas (2007), Elementary number theory with applications, Academic Press, p. 581, ISBN 978-0-12-372487-8
  88. ^ Weisstein, Eric W. "Fibonacci n-Step Number". MathWorld.

Works cited

External links