All Topics  
Fibonacci number

 

   Email Print
   Bookmark   Link






 

Fibonacci number



 
 
In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the Fibonacci numbers are a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
 of numbers named after Leonardo of Pisa, known as Fibonacci (a contraction of filius Bonaccio, "son of Bonaccio"). Fibonacci's 1202 book Liber Abaci
Liber Abaci

Liber Abaci is a historic book on arithmetic by Leonardo of Pisa, known later by his nickname Fibonacci. Its title has two common translations, The Book of the Abacus or The Book of Calculation....
 introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics
Indian mathematics

Indian mathematics—which here is the mathematics that emerged in South Asia from ancient times until the end of the 18th century—had its beginnings in the Bronze Age Indus Valley civilization and the Iron Age Vedic culture ....
.

The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, yielding the sequence 0, 1, 1, 2, 3, 5, 8, etc.






Discussion
Ask a question about 'Fibonacci number'
Start a new discussion about 'Fibonacci number'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the Fibonacci numbers are a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
 of numbers named after Leonardo of Pisa, known as Fibonacci (a contraction of filius Bonaccio, "son of Bonaccio"). Fibonacci's 1202 book Liber Abaci
Liber Abaci

Liber Abaci is a historic book on arithmetic by Leonardo of Pisa, known later by his nickname Fibonacci. Its title has two common translations, The Book of the Abacus or The Book of Calculation....
 introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics
Indian mathematics

Indian mathematics—which here is the mathematics that emerged in South Asia from ancient times until the end of the 18th century—had its beginnings in the Bronze Age Indus Valley civilization and the Iron Age Vedic culture ....
.

The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, yielding the sequence 0, 1, 1, 2, 3, 5, 8, etc. In mathematical terms, it is defined by the following recurrence relation
Recurrence relation

In mathematics, a recurrence relation is an equation that defines a sequence recursion: each term of the sequence is defined as a Function of the preceding terms....
:

That is, after two starting values, each number is the sum of the two preceding numbers. The first Fibonacci numbers , also denoted as Fn, for n = 0, 1, 2, … ,20 are:
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


Every 3rd 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

The sequence extended to negative index n satisfies Fn = Fn − 1 + Fn − 2 for all integers n,

and Fn = (−1)n + 1Fn:

.., −8, 5, −3, 2, −1, 1, followed by the sequence above.

Origins


The Fibonacci sequence was well known in ancient India
Ancient India

Ancient India may refer to:*The ancient History of India, which generally includes the ancient history of the whole Indian subcontinent ...
, where it was applied to the metrical sciences (prosody), long before it was known in Europe. Developments have been attributed to Pingala
Pingala

Pingala was an Ancient Indian writer, famous for his work, the Chandas Shastra , a Sanskrit treatise on prosody considered one of the Vedanga....
 (200 BC), Virahanka
Virahanka

Virahanka was an Indian prosody who is also known for his work on mathematics. He possibly lived in the 6th century AD, but it is also possible that this date may be as late as 8th century....
 (6th century AD), Gopala
Gopala (mathematician)

Gopala was an Indian mathematician, who studied the Fibonacci numbers in 1135, more than half a century before Fibonacci popularized these numbers in Europe....
 (c.1135 AD), and Hemachandra (c.1150 AD).

A pattern of length n can be formed by adding S to a pattern of length n - 1, or L to a pattern of length n - 2; and the prosodicists showed that the number of patterns of length n is the sum of the two previous numbers in the sequence. Donald Knuth
Donald Knuth

Donald Ervin Knuth is a renowned computer science and Emeritus of the Art of Computer Programming at Stanford University.Author of the seminal multi-volume work The Art of Computer Programming , Knuth has been called the "father" of the run-time analysis, contributing to the development of, and systematizing formal mathematical techn...
 reviews this work in The Art of Computer Programming
The Art of Computer Programming

The Art of Computer Programming is a comprehensive monograph written by Donald Knuth that covers many kinds of programming algorithms and their analysis....
.

In the West, the sequence was studied by Leonardo of Pisa, known as Fibonacci
Fibonacci

Leonardo of Pisa , also known as Leonardo Pisano, Leonardo Bonacci, Leonardo Fibonacci, or, most commonly, simply Fibonacci, was an Italy mathematician, considered by some "the most talented mathematician of the Middle Ages"....
, in his Liber Abaci
Liber Abaci

Liber Abaci is a historic book on arithmetic by Leonardo of Pisa, known later by his nickname Fibonacci. Its title has two common translations, The Book of the Abacus or The Book of Calculation....
 (1202). He considers the growth of an idealised (biologically unrealistic) rabbit population, assuming that:
  • In the "zeroth" month, there is one pair of rabbits (additional pairs of rabbits = 0).
  • In the first month, the first pair begets another pair (additional pairs of rabbits = 1).
  • In the second month, both pairs of rabbits have another pair, and the first pair dies (additional pairs of rabbits = 1).
  • In the third month, the second pair and the new two pairs have a total of three new pairs, and the older second pair dies (additional pairs of rabbits = 2).


The laws of this are that each pair of rabbits has 2 pairs in its lifetime, and dies.

Let the population at month n be F(n). At this time, only rabbits who were alive at month n - 2 are fertile and produce offspring, so F(n - 2) pairs are added to the current population of F(n - 1). Thus the total is F(n) = F(n - 1) + F(n - 2).

Relation to the golden ratio


Closed form expression


Like every sequence defined by linear recurrence
Recurrence relation

In mathematics, a recurrence relation is an equation that defines a sequence recursion: each term of the sequence is defined as a Function of the preceding terms....
, the Fibonacci numbers have a closed-form solution
Closed-form expression

In mathematics, an expression is said to be a closed-form expression if, and only if, it can be expressed analytically in terms of a bounded number of certain "well-known" function s....
. It has become known as Binet
Jacques Philippe Marie Binet

Jacques Philippe Marie Binet was a France mathematician, physicist and astronomer born in Rennes; he died in Paris, France, in 1856. He made significant contributions to number theory, and the mathematical foundations of matrix algebra which would later lead to important contributions by Cayley and others....
's formula, even though it was already known by Abraham de Moivre
Abraham de Moivre

Abraham de Moivre was a France mathematician famous for de Moivre's formula, which links complex numbers and trigonometry, and for his work on the normal distribution and probability theory....
: where is the golden ratio
Golden ratio

In mathematics and the arts, two quantities are in the golden ratio if the ratio between the sum of those quantities and the larger one is the same as the ratio between the larger one and the smaller....
(note, that , as can be seen from the defining equation below).

The Fibonacci recursion

is similar to the defining equation of the golden ratio in the form

which is also known as the generating polynomial of the recursion.

Proof by induction
Mathematical induction

Mathematical induction is a method of mathematical proof typically used to establish that a given statement is true of all natural numbers. It is done by proving that the first statement in the infinite sequence of statements is true, and then proving that if any one statement in the infinite sequence of statements is true, then...

Any root of the equation above satisfies and multiplying by shows:

By definition is a root of the equation, and the other root is . Therefore:

and

Both and are geometric series
Geometric series

In mathematics, a geometric series is a series with a constant ratio between successive term . For example, the seriesis geometric, because each term is equal to half of the previous term....
 (for n = 1, 2, 3, ...) that satisfy the Fibonacci recursion. The first series grows exponentially; the second exponentially tends to zero, with alternating signs. Because the Fibonacci recursion is linear, any linear combination
Linear combination

In mathematics, linear combinations are a concept central to linear algebra and related fields of mathematics.Most of this article deals with linear combinations in the context of a vector space over a field , with some generalisations given at the end of the article....
 of these two series will also satisfy the recursion. These linear combinations form a two-dimensional linear vector space; the original Fibonacci sequence can be found in this space.

Linear combinations of series and , with coefficients a and b, can be defined by for any real

All thus-defined series satisfy the Fibonacci recursion

Requiring that and yields and , resulting in the formula of Binet we started with. It has been shown that this formula satisfies the Fibonacci recursion. Furthermore, an explicit check can be made:

and

establishing the base cases of the induction, proving that for all

Therefore, for any two starting values, a combination can be found such that the function is the exact closed formula for the series.

Computation by rounding

Since for all , the number is the closest integer to Therefore it can be found by rounding
Rounding

Rounding involves reducing the number of significant digits in a number. The result of rounding is a "shorter" number having fewer non-zero digits yet similar in magnitude....
, or in terms of the floor function
Floor function

In mathematics and computer science, the floor and ceiling function s map a real number to the next smallest or next largest integer. More precisely, floor is the largest integer not greater than x and ceiling is the smallest integer not less than x....
:

Limit of consecutive quotients


Johannes Kepler
Johannes Kepler

Johannes Kepler was a Germans mathematician, astronomer and astrologer, and key figure in the 17th century Scientific revolution. He is best known for his eponymous Kepler's laws of planetary motion, codified by later astronomers based on his works Astronomia nova, Harmonices Mundi, and Epitome of Copernican Astrononomy....
 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 the limit approaches the golden ratio .

This convergence does not depend on the starting values chosen, excluding 0, 0.

Proof:

It follows from the explicit formula that for any real

because and thus

Decomposition of powers of the golden ratio


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 relation
Recurrence relation

In mathematics, a recurrence relation is an equation that defines a sequence recursion: each term of the sequence is defined as a Function of the preceding terms....
ships yield Fibonacci numbers as the linear coefficients, thus closing the loop: This expression is also true for if the Fibonacci sequence is extended to negative integers
Generalizations of Fibonacci numbers

In mathematics, the Fibonacci numbers form a sequence defined recursion by:The Fibonacci sequence has been studied extensively and generalized in many ways....
 using the Fibonacci rule

Matrix form

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

or

The eigenvalues of the matrix A are and , and the elements of the eigenvectors of A, and , are in the ratios and

This matrix has a determinant
Determinant

In algebra, a determinant is a function depending on n that associates a scalar , det, to an n?n square matrix A. The fundamental geometric meaning of a determinant is a scale factor for measure when A is regarded as a linear transformation....
 of −1, and thus it is a 2×2 unimodular matrix
Unimodular matrix

In mathematics, a unimodular matrix M is a square integer matrix with determinant +1 or −1. Equivalently, it is an integer matrix that is invertible over the integers: there is an integer matrix N which is its inverse ....
. This property can be understood in terms of the continued fraction
Continued fraction

In mathematics, a continued fraction is an expression such aswhere a0 is an integer and all the other numbers ai are positive integers....
 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 expression for the Fibonacci numbers:

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

Additionally, since for any square matrix , the following identities can be derived:

In particular, with , For another way to derive the formulas see the "EWD note" by Dijkstra
Dijkstra

Dijkstra is a Dutch language family name that may refer to:*Edsger W. Dijkstra , computing scientist*Rineke Dijkstra , photographer*Sjoukje Dijkstra , retired figure skater...
.

Recognizing Fibonacci numbers


The question may arise whether a positive integer is a Fibonacci number. Since is the closest integer to , the most straightforward, brute-force test is the identity which is true if and only if
If and only if

If and only if, in logic and fields that rely on it such as mathematics and philosophy, is a biconditional logical connective between statements....
  is a Fibonacci number. In this formula, F(n) can be computed rapidly using any of the previously discussed closed-form expressions.

Alternatively, a positive integer is a Fibonacci number if and only if one of or is a perfect square
Square number

In mathematics, a square number, sometimes also called a perfect square, is an integer that can be written as the square of some other integer; in other words, it is the product of some integer with itself....
.

A slightly more sophisticated test uses the fact that the convergent
Convergent (continued fraction)

A convergent is one of a sequence of values obtained by evaluating successive truncations of a continued fraction. The nth convergent is also known as the nth approximant of a continued fraction....
s of the continued fraction
Continued fraction

In mathematics, a continued fraction is an expression such aswhere a0 is an integer and all the other numbers ai are positive integers....
 representation of are ratios of successive Fibonacci numbers, that is the inequality (with coprime
Coprime

In mathematics, the integers a and b are said to be coprime or relatively prime if they have no common divisor other than 1 or, equivalently, if their greatest common divisor is 1....
 positive integers , ) is true if and only if and are successive Fibonacci numbers. From this one derives the criterion that is a Fibonacci number if and only if the closed interval contains a positive integer.

Identities


Most identities involving Fibonacci numbers draw from combinatorial arguments
Combinatorial proof

In mathematics, the term combinatorial proof is often used to mean either of two types of mathematical proof:* A proof by double counting ....
. F(n) can be interpreted as the number of ways summing 1s and 2s to n − 1, with the convention that F(0) = 0, meaning no sum will add up to −1, and that F(1) = 1, meaning the empty sum will "add up" to 0. Here the order of the summands matters. For example, 1 + 2 and 2 + 1 are considered two different sums and are counted twice.

First identity




The nth Fibonacci number is the sum of the previous two Fibonacci numbers.


Proof

We must establish that the sequence of numbers defined by the combinatorial interpretation above satisfy the same recurrence relation as the Fibonacci numbers (and so are indeed identical to the Fibonacci numbers).

The set of F(n + 1) ways of making ordered sums of 1's and 2's that sum to n may be divided into two non-overlapping sets. The first set contains those sums whose first summand is 1; the remainder sums to n−1, so there are F(n) sums in the first set. The second set contains those sums whose first summand is 2; the remainder sums to n−2, so there are F(n−1) sums in the second set. The first summand can only be 1 or 2, so these two sets exhaust the original set. Thus F(n+1) = F(n) + F(n−1).

Second identity


The sum of the first n Fibonacci numbers is the (n + 2)nd Fibonacci number minus 1.


Proof

We count the number of ways summing 1s and 2s to n + 1 such that at least one of the summands is 2.

As before, there are F(n + 2) ways summing 1s and 2s to n + 1 when n = 0. Since there is only one sum of n + 1 that does not use any 2, namely 1 + … + 1 (n + 1 terms), we subtract 1 from F(n + 2).

Equivalently, we can consider the first occurrence of 2 as a summand. If, in a sum, the first summand is 2, then there are F(n) ways to the complete the counting for n − 1. If the second summand is 2 but the first is 1, then there are F(n − 1) ways to complete the counting for n − 2. Proceed in this fashion. Eventually we consider the (n + 1)th summand. If it is 2 but all of the previous n summands are 1s, then there are F(0) ways to complete the counting for 0. If a sum contains 2 as a summand, the first occurrence of such summand must take place in between the first and (n + 1)th position. Thus F(n) + F(n − 1) + … + F(0) gives the desired counting.

Third identity


This identity has slightly different forms for Fk, depending on whether k is odd or even.

The sum of the first n − 1 Fibonacci numbers, Fj, such that j is odd, is the (2n)th Fibonacci number.
The sum of the first n Fibonacci numbers, Fj, such that j is even, is the (2n + 1)th Fibonacci number minus 1.


Proofs

By induction for F2n: A basis case for this could be F1 = F2.

By induction for F2n+1: A basis case for this could be F0 = F1−1.

Fourth identity


Proof

This identity can be established in two stages. First, we count the number of ways summing 1s and 2s to −1, 0, …, or n + 1 such that at least one of the summands is 2.

By our second identity, there are F(n + 2) − 1 ways summing to n + 1; F(n + 1) − 1 ways summing to n; …; and, eventually, F(2) − 1 way summing to 1. As F(1) − 1 = F(0) = 0, we can add up all n + 1 sums and apply the second identity again to obtain
   [F(n + 2) − 1] + [F(n + 1) − 1] + … + [F(2) − 1]
= [F(n + 2) − 1] + [F(n + 1) − 1] + … + [F(2) − 1] + [F(1) − 1] + F(0)
= F(n + 2) + [F(n + 1) + … + F(1) + F(0)] − (n + 2)
= F(n + 2) + [F(n + 3) − 1] − (n + 2)
= F(n + 2) + F(n + 3) − (n + 3).


On the other hand, we observe from the second identity that there are
  • F(0) + F(1) + … + F(n − 1) + F(n) ways summing to n + 1;
  • F(0) + F(1) + … + F(n − 1) ways summing to n;
……
  • F(0) way summing to −1.
Adding up all n + 1 sums, we see that there are
  • (n + 1) F(0) + n F(1) + … + F(n) ways summing to −1, 0, …, or n + 1.


Since the two methods of counting refer to the same number, we have
(n + 1) F(0) + n F(1) + … + F(n) = F(n + 2) + F(n + 3) − (n + 3)


Finally, we complete the proof by subtracting the above identity from n + 1 times the second identity.

Fifth identity


The sum of the squares of the first n Fibonacci numbers is the product of the nth and (n + 1)th Fibonacci numbers.


Identity for doubling n



Another identity

Another identity useful for calculating Fn for large values of n is

from which other identities for specific values of k, n, and c can be derived below, including

for all integers n and k. Dijkstra points out that doubling identities of this type can be used to calculate Fn using O(log n) long multiplication operations of size n bits. The number of bits of precision needed to perform each multiplication doubles at each step, so the performance is limited by the final multiplication; if the fast Schönhage-Strassen multiplication algorithm
Schönhage-Strassen algorithm

The Sch?nhage?Strassen algorithm is an asymptotically fast multiplication algorithm for large integers. It was developed by Arnold Sch?nhage and Volker Strassen in 1971....
 is used, this is O(n log n log log n) bit operations. Notice that, with the definition of Fibonacci numbers with negative n given in the introduction, this formula reduces to the double n formula when k = 0.

Other identities


Other identities include relationships to the Lucas number
Lucas number

The Lucas numbers are an integer sequence named after the mathematician Fran?ois ?douard Anatole Lucas , who studied both that sequence and the closely related Fibonacci numbers ....
s, which have the same recursive properties but start with L0=2 and L1=1. These properties include F2n=FnLn.

There are also scaling identities, which take you from Fn and Fn+1 to a variety of things of the form Fan+b; for instance

by Cassini's identity.

These can be found experimentally using lattice reduction
Lattice reduction

In mathematics, the goal of lattice basis reduction is given an integer lattice basis as input, to find a basis with short, nearly orthogonal vectors....
, and are useful in setting up the special number field sieve
Special number field sieve

The special number field sieve is a special-purpose integer factorization algorithm. The general number field sieve was derived from it.The special number field sieve is efficient for integers of the form re ± s, where r and s are small ....
 to factorize
Factorization

In mathematics, factorization or factoring is the decomposition of an object into a product of other objects, or factors, which when multiplication together give the original....
 a Fibonacci number. Such relations exist in a very general sense for numbers defined by recurrence relations, see the section on multiplication formulae under Perrin number
Perrin number

In mathematics, the Perrin numbers are defined by the recurrence relationandThe series beginsThe number of different maximal independent sets in an n-vertex cycle graph is counted by the nth Perrin number ....
s for details.

Power series

The generating function
Generating function

In mathematics a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers....
 of the Fibonacci sequence is the power series
Power series

In mathematics, a power series is an infinite series of the formwhere an represents the coefficient of the nth term, c is a constant, and x varies around c ....


This series has a simple and interesting closed-form solution for

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

Solving the equation for results in the closed form solution.

In particular, math puzzle-books note the curious value , or more generally

for all integers .

Conversely,

Reciprocal sums


Infinite sums over reciprocal Fibonacci numbers can sometimes be evaluated in terms of theta function
Theta function

In mathematics, theta functions are special functions of several complex variables. They are important in several areas, including the theories of abelian variety and moduli spaces, and of quadratic forms....
s. 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 nice nested sum of squared Fibonacci numbers giving the reciprocal of the golden ratio
Golden ratio

In mathematics and the arts, two quantities are in the golden ratio if the ratio between the sum of those quantities and the larger one is the same as the ratio between the larger one and the smaller....
,

Results such as these make it plausible that a closed formula for the plain sum of reciprocal Fibonacci numbers could be found, but none is yet known. Despite that, the reciprocal Fibonacci constant
Reciprocal Fibonacci constant

The reciprocal Fibonacci constant, or ?, is defined as the sum of the Reciprocal s of the Fibonacci numbers:The ratio of successive terms in this sum tends to the reciprocal of the golden ratio....


has been proved irrational
Irrational number

In mathematics, an irrational number is any real number that is not a rational number ? that is, it is a number which cannot be expressed as a fraction m/n, where m and n are integers, with n non-zero....
 by Richard André-Jeannin.

Primes and divisibility


Fibonacci primes


A Fibonacci prime is a Fibonacci number that is prime
Prime number

In mathematics, a prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. An infinitude of prime numbers exists, as demonstrated by Euclid around 300 BC....
 . The first few are:
2, 3, 5, 13, 89, 233, 1597, 28657, 514229, …
Fibonacci primes with thousands of digits have been found, but it is not known whether there are infinitely many. They must all have a prime index, except F4 = 3. There are arbitrarily long
Arbitrarily large

In mathematics, the phrase arbitrarily large, arbitrarily small, arbitrarily long is used in statements such as:which is shorthand for:...
 runs of composite number
Composite number

A composite number is a negative and non-negative numbers integer which has a positive divisor other than one or itself. In other words, if 0 < n is an integer and there are integers 1 < a, b < n such that n = a ? b then n is composite....
s and therefore also of composite Fibonacci numbers.

With the exceptions of 1, 8 and 144 (F0 = F1, F6 and F12) every Fibonacci number has a prime factor that is not a factor of any smaller Fibonacci number (Carmichael's theorem
Carmichael's theorem

Carmichael's theorem, named after the USA mathematician Robert Daniel Carmichael, states that for n greater than 12, the nth Fibonacci number F has at least one prime number factor that is not a factor of any earlier Fibonacci number....
).

144 is the only nontrivial square
Square number

In mathematics, a square number, sometimes also called a perfect square, is an integer that can be written as the square of some other integer; in other words, it is the product of some integer with itself....
 Fibonacci number. Attila Petho proved in 2001 that there are only finitely many perfect power Fibonacci numbers, in fact, they are less than 5.1× 1017. In 2006, Y. Bugeaud, M. Mignotte, and S. Siksek proved that only 8 and 144 are perfect powers.

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

Any three consecutive Fibonacci numbers, taken two at a time, are relatively prime: that is,
gcd
Greatest common divisor

In mathematics, the greatest common divisor , sometimes known as the greatest common factor or highest common factor , of two non-zero integers, is the largest positive integer that divisor both numbers without remainder....
(Fn, Fn+1) = gcd(Fn, Fn+2) = 1.
More generally,
gcd(Fn, Fm) = Fgcd(n, m).


Prime divisors of Fibonacci numbers


The divisibility of Fibonacci numbers by a prime p is related to the Legendre symbol
Legendre symbol

The Legendre symbol or Dirichlet character#Examples is a function introduced by Adrien-Marie Legendre in 1798 during his partly successful attempt to prove the law of quadratic reciprocity.....
  defined as

If p is a prime number then

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 prime
Wall-Sun-Sun prime

In number theory, a Wall-Sun-Sun prime is a certain kind of prime number which is conjectured to exist although none is known. A prime p > 5 is called a Wall-Sun-Sun prime if p? divides the Fibonacci number , where the Legendre symbol is defined as...
s.

Also, if p ? 5 is an odd prime number then:

Examples of all the cases:

















For odd n, all odd prime divisors of Fn are = 1 (mod 4), implying that all odd divisors of Fn (as the products of odd prime divisors) are = 1 (mod 4).

For example, F1 = 1, F3 = 2, F5 = 5, F7 = 13, F9 = 34 = 2×17, F11 = 89, F13 = 233, F15 = 610 = 2×5×61


Divisibility by 11


For example, let n = 1:
F1+F2+...+F10 = 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 = 143 = 11×13
n = 2:
F2+F3+...+F11 = 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 + 89 = 231 = 11×21
n = 3:
F3+F4+...+F12 = 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 + 89 + 144= 374 = 11×34



In fact, the identity is true for all integers n, not just positive ones:
n = 0:

F0+F1+...+F9 = 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 = 88 = 11×8
n = −1:

F−1+F0+...+F8 = 1 + 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 = 55 = 11×5
n = −2:

F−2+F−1+F0+...+F7 = −1 + 1 + 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 = 33 = 11×3



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
Pythagorean triple

A Pythagorean triple consists of three positive integers a, b, and c, such that . Such a triple is commonly written , and a well-known example is ....
. 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 .

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: Example 1: let the Fibonacci numbers be 1, 2, 3 and 5. Then: Example 2: let the Fibonacci numbers be 8, 13, 21 and 34. Then:

Magnitude of Fibonacci numbers

Since is asymptotic to , the number of digits in the base b representation of is asymptotic to .

For every integer d greater than 1 there are either 4 or 5 Fibonacci numbers with d digits in base 10
Decimal

The decimal numeral system has 10 as its Base . It is the most widely used numeral system....
.

Applications


The Fibonacci numbers are important in the run-time analysis of Euclid's algorithm
Euclidean algorithm

In number theory, the Euclidean algorithm is an algorithm to determine the greatest common divisor of two elements of any Euclidean domain . Its major significance is that it does not require factorization the two integers, and it is also significant in that it is one of the oldest algorithms known, dating back to the ancient Greeks....
 to determine the greatest common divisor
Greatest common divisor

In mathematics, the greatest common divisor , sometimes known as the greatest common factor or highest common factor , of two non-zero integers, is the largest positive integer that divisor both numbers without remainder....
 of two integers: the worst case input for this algorithm is a pair of consecutive Fibonacci numbers.

Yuri Matiyasevich
Yuri Matiyasevich

Yuri Vladimirovich Matiyasevich, is a Russian mathematician and List of computer scientists. He is best known for his negative solution of Hilbert's tenth problem, presented in his doctoral thesis, at LOMI ....
 was able to show that the Fibonacci numbers can be defined by a Diophantine equation
Diophantine equation

In mathematics, a Diophantine equation is an indeterminate equation polynomial equation that allows the variables to be integers only. Diophantine problems have fewer equations than unknown variables and involve finding integers that work correctly for all equations....
, which led to his original solution of Hilbert's tenth problem
Hilbert's tenth problem

'Hilbert's tenth problem' is the tenth on the list of Hilbert's problems of 1900. Its statement is as follows:Given a Diophantine equation with any number of unknown quantities and with rational integral numerical coefficients: To devise a process according to which it can be determined in a finite number of operations whether the equation...
.

The Fibonacci numbers occur in the sums of "shallow" diagonals in Pascal's triangle
Pascal's triangle

In mathematics, Pascal's triangle is a geometric arrangement of the binomial coefficients in a triangle. Pascal's Triangle is named after Blaise Pascal in much of the western world, although other mathematicians studied it centuries before him in History of India, History of Iran, China, and Italy....
 and Lozanic's triangle
Lozanic's triangle

Lozanic's triangle is a geometric arrangement of binomial coefficients in a manner very similar to that of Pascal's triangle. It is named after the Serbian chemist Sima Lozanic, who researched it in his investigation into the symmetries exhibited by rows of paraffins....
 (see "Binomial coefficient
Binomial coefficient

In mathematics, the binomial coefficient is the coefficient of the x k term in the polynomial expansion of the binomial exponentiation  n....
"
). (They occur more obviously in Hosoya's triangle
Hosoya's triangle

Hosoya's triangle or the Fibonacci triangle is a triangular arrangement of numbers based on the Fibonacci numbers. Each number is the sum of the two numbers above in either the left diagonal or the right diagonal....
).

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
Zeckendorf's theorem

Zeckendorf's theorem, named after Belgium mathematician Edouard Zeckendorf, is a theorem about the representation of integers as sums of Fibonacci numbers....
, and a sum of Fibonacci numbers that satisfies these conditions is called a Zeckendorf representation.

The Fibonacci numbers and principle is also used in the financial markets. It is used in trading algorithms, applications and strategies. Some typical forms include: the Fibonacci fan, Fibonacci Arc, Fibonacci Retracement and the Fibonacci Time Extension.

Fibonacci numbers are used by some pseudorandom number generators.

Fibonacci numbers are used in a polyphase version of the merge sort
Merge sort

Merge sort or merge_sort is an Big O notation comparison sort sorting algorithm. In most implementations it is Sorting algorithm#Classification, meaning that it preserves the input order of equal elements in the sorted output....
 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 f. A tape-drive implementation of the polyphase merge sort was described in The Art of Computer Programming
The Art of Computer Programming

The Art of Computer Programming is a comprehensive monograph written by Donald Knuth that covers many kinds of programming algorithms and their analysis....
.

Fibonacci numbers arise in the analysis of the Fibonacci heap
Fibonacci heap

In computer science, a Fibonacci heap is a Heap consisting of a forest of trees. It has a better amortized analysis running time than a binomial heap....
 data structure.

The Fibonacci cube
Fibonacci cube

File:Fibonacci cube.svgFile:FibboCube.pngThe Fibonacci cubes are a family of undirected graphs with properties similar to those of hypercube graphs, but with a Fibonacci number of vertices, studied in graph theory....
 is an undirected graph with a Fibonacci number of nodes that has been proposed as a network topology
Network topology

Network topology is the study of the arrangement or mapping of the elements of a Computer networking, especially the physical and logical interconnections between nodes....
 for parallel computing
Parallel computing

Parallel computing is a form of computing in which many calculations are carried out simultaneously, operating on the principle that large problems can often be divided into smaller ones, which are then solved Concurrency ....
.

A one-dimensional optimization method, called the Fibonacci search technique
Fibonacci search technique

The Fibonacci search technique is a method of searching a sorted array using a divide and conquer algorithm that narrows down possible locations with the aid of Fibonacci numbers....
, uses Fibonacci numbers.

The Fibonacci number series is used for optional lossy compression in the IFF
Interchange File Format

Interchange File Format , is a generic file format originally introduced by the Electronic Arts company in 1985 in order to ease transfer of data between software produced by different companies....
 8SVX
8SVX

8SVX is a subformat of the Interchange File Format. The subformat is for 8-bit sampled sounds, supports both mono and stereo streams as well as loops; commonly used as a basic audio sample format on Amiga computers for many years....
 audio file format used on Amiga
Amiga

The Amiga is a family of personal computers originally developed by Amiga Corporation. Development on the Amiga began in 1982 with Jay Miner as the principal hardware designer....
 computers. The number series compands
Companding

In telecommunication, signal processing, and thermodynamics, companding is a method of mitigating the detrimental effects of a channel with limited dynamic range....
 the original audio wave similar to logarithmic methods e.g. µ-law.

In music
Music

Music is an art form whose media is sound organized in time. Common elements of music are pitch , rhythm , dynamics , and the sonic qualities of timbre and texture ....
, Fibonacci numbers are sometimes used to determine tunings, and, as in visual art, to determine the length or size of content
Content

Content or contents, is something that is contained. The term may refer to:* Content , the highest common factor of the coefficients of a polynomial...
 or formal elements. It is commonly thought that the first movement of Béla Bartók
Béla Bartók

B?la Viktor J?nos Bart?k was a Hungarian people composer and pianist, considered to be one of the greatest composers of the 20th century. Through his collection and analytical study of folk music, he was one of the founders of ethnomusicology....
's Music for Strings, Percussion, and Celesta was structured using Fibonacci numbers.

Since the conversion
Conversion of units

Conversion of units refers to conversion factors between different units of measurement for the same quantity....
 factor 1.609344 for mile
Mile

A mile is a Units of measurement of length, usually used to measure distance, in a number of different systems. In contemporary English contexts, mile most commonly refers to the statute mile of 5,280 Feet or the nautical mile of 1,852 meters ....
s to kilometers is close to the golden ratio
Golden ratio

In mathematics and the arts, two quantities are in the golden ratio if the ratio between the sum of those quantities and the larger one is the same as the ratio between the larger one and the smaller....
 (denoted f), 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
Radix

In numeral system, the base or radix is usually the number of unique Numerical digit, including zero, that a Positional notation numeral system uses to represent numbers....
 2 number
Fibonacci coding

In mathematics, Fibonacci coding is a universal code which encodes positive integers into binary code words. All tokens end with "11" and have no "11" before the end....
 register
Processor register

In computer architecture, a processor register is a small amount of Computer storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere....
 in golden ratio base
Golden ratio base

Golden ratio base is a Non-standard positional numeral systems that uses the golden ratio as its base . It is sometimes referred to as base-f, golden mean base, phi-base, or, colloquially, phinary....
 f being shifted. To convert from kilometers to miles, shift the register down the Fibonacci sequence instead.

Fibonacci numbers in nature


Helianthus Whorl
Fibonacci sequences appear in biological settings, in two consecutive Fibonacci numbers, such as branching in trees, arrangement of leaves
Leaves

Leaves are an Iceland five-piece alternative rock band who formed in 2001. They came to prominence in 2002 with their debut album, Breathe, drawing comparisons to groups such as Coldplay and Doves....
 on a stem, the fruitlets of a pineapple
Pineapple

Pineapple is the common name for an edible tropical plant and also its fruit. It is native to the southern part of Brazil, and Paraguay. This herbaceous plant perennial plant grows to tall with 30 or more trough-shaped and pointed leaves long, surrounding a thick plant stem....
, the flowering of artichoke
Artichoke

A globe artichoke is a partially edible perennial thistle originating in southern Europe around the Mediterranean.Artichoke may also refer to:...
, an uncurling fern and the arrangement of a pine cone. In addition, numerous poorly substantiated claims of Fibonacci numbers or golden sections in nature are found in popular sources, e.g. relating to the breeding of rabbits, the spirals of shells, and the curve of waves. The Fibonacci numbers are also found in the family tree of honeybees.

Przemyslaw Prusinkiewicz
Przemyslaw Prusinkiewicz

Przemyslaw Prusinkiewicz is a Poland computer scientist who advanced the idea that Fibonacci numbers in nature can be in part understood as the expression of certain algebraic constraints on free groups, specifically as certain L-system....
 advanced the idea that real instances can be in part understood as the expression of certain algebraic constraints on free group
Free group

In mathematics, a group G is called free if there is a subset S of G such that any element of G can be written in one and only one way as a product of finitely many elements of S and their inverses ....
s, specifically as certain Lindenmayer grammars.

A model for the pattern of florets in the head of a sunflower
Sunflower

The sunflower is an annual plant in the family Asteraceae and native to the Americas, with a large flowering head . The stem can grow as high as 3 meters , and the flower head can reach 30 cm in diameter with the "large" seeds....
 was proposed by H. Vogel in 1979. 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
Fermat's spiral

Fermat's spiral follows the equationin polar coordinates It is a type of Archimedean spiral.In disc phyllotaxis , the mesh of spirals occurs in Fibonacci numbers because divergence approaches the golden ratio....
. The divergence angle, approximately 137.51°, is the golden angle
Golden angle

In geometry, the golden angle is the smaller of the two angles created by sectioning the circumference of a circle according to the golden section; that is, into two Arc s such that the ratio of the length of the larger arc to the smaller is the same as the ratio of the full circumference to the larger....
, dividing the circle in the golden ratio
Golden ratio

In mathematics and the arts, two quantities are in the golden ratio if the ratio between the sum of those quantities and the larger one is the same as the ratio between the larger one and the smaller....
. 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. It is often said that sunflowers and similar arrangements have 55 spirals in one direction and 89 in the other (or some other pair of adjacent Fibonacci numbers), but this is true only of one range of radii, typically the outermost and thus most conspicuous.

Popular culture


Generalizations

The Fibonacci sequence has been generalized in many ways. These include:
  • Generalizing the index to negative integers to produce the Negafibonacci
    Negafibonacci

    DefinitionIn mathematics, negaFibonacci numbers are the negatively indexed elements of the Fibonacci sequence.The negaFibonacci numbers are defined inductively by the recurrence relation:...
     numbers.
  • Generalizing the index to real numbers using a modification of Binet's formula.
  • Starting with other integers. Lucas number
    Lucas number

    The Lucas numbers are an integer sequence named after the mathematician Fran?ois ?douard Anatole Lucas , who studied both that sequence and the closely related Fibonacci numbers ....
    s have L1 = 1, L2 = 3, and Ln = Ln-1 + Ln-2. Primefree sequence
    Primefree sequence

    In mathematics, a primefree sequence is a sequence of integers that does not contain any prime numbers. More specifically, it generally means a Fibonacci number-like sequence with composite number but coprime initial terms that is infinite but contains no primes....
    s use the Fibonacci recursion with other starting points in order to generate sequences in which all numbers are composite
    Composite number

    A composite number is a negative and non-negative numbers integer which has a positive divisor other than one or itself. In other words, if 0 < n is an integer and there are integers 1 < a, b < n such that n = a ? b then n is composite....
    .
  • Letting a number be a linear function (other than the sum) of the 2 preceding numbers. The Pell number
    Pell number

    In mathematics, the Pell numbers are an infinite sequence of integers that have been known since ancient times, the denominators of the closest rational approximations to the square root of 2....
    s have Pn = 2Pn – 1 + Pn – 2.
  • Not adding the immediately preceding numbers. The Padovan sequence
    Padovan sequence

    The Padovan sequence is the sequence of integers P defined by the initial valuesand the recurrence relationThe first few values of P are...
     and Perrin number
    Perrin number

    In mathematics, the Perrin numbers are defined by the recurrence relationandThe series beginsThe number of different maximal independent sets in an n-vertex cycle graph is counted by the nth 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.
  • Adding other objects than integers, for example functions or strings -- one essential example is Fibonacci polynomials
    Fibonacci polynomials

    In mathematics, the Fibonacci polynomials are a polynomial sequence which can be considered as a generalisation of the Fibonacci numbers....
    .


Numbers properties


Periodicity mod n: Pisano periods

It is easily seen that if the members of the Fibonacci sequence are taken mod n, the resulting sequence must be periodic
Periodic sequence

In mathemetics, a periodic sequence is a sequence for which the same terms are repeated over and over:The number p of repeated terms is called the period....
 with period at most . The lengths of the periods for various n form the so-called Pisano period
Pisano period

In mathematics, the nth Pisano period, written p, is the periodic function with which the sequence of Fibonacci numbers, modular arithmetic n repeats....
s . Determining the Pisano periods in general is an open problem, although for any particular n it can be solved as an instance of cycle detection.

The bee ancestry code

Fibonacci numbers also appear in the description of the reproduction of a population of idealized bees, according to the following rules:
  • If an egg is laid by an unmated female, it hatches a male.
  • If, however, an egg was fertilized by a male, it hatches a female.


Thus, a male bee will always have one parent, and a female bee will have two.

If one traces the ancestry of any male bee (1 bee), he has 1 female parent (1 bee). This female had 2 parents, a male and a female (2 bees). The female had two parents, a male and a female, and the male had one female (3 bees). Those two females each had two parents, and the male had one (5 bees). This sequence of numbers of parents is the Fibonacci sequence.

This is an idealization that does not describe actual bee ancestries. In reality, some ancestors of a particular bee will always be sisters or brothers, thus breaking the lineage of distinct parents.

See also

  • Logarithmic spiral
    Logarithmic spiral

    A logarithmic spiral, equiangular spiral or growth spiral is a special kind of spiral curve which often appears in nature. The logarithmic spiral was first described by Ren? Descartes and later extensively investigated by Jakob Bernoulli, who called it Spira mirabilis, "the marvelous spiral"....
  • The Fibonacci Association
    The Fibonacci Association

    The Fibonacci Association is a group that promotes research into mathematics related to the Fibonacci numbers. The association was founded in 1963 by the United States mathematician Verner Emil Hoggatt....
  • Fibonacci Quarterly
    Fibonacci Quarterly

    The Fibonacci Quarterly is the official publication of the Fibonacci Association, intended "to serve as a focal point for interest in Fibonacci numbers and related questions, especially with respect to new results, research proposals, challenging problems, and innovative proofs of old ideas." Published since 1963, its founding editors we...
     — an academic journal devoted to the study of Fibonacci numbers
  • Negafibonacci
    Negafibonacci

    DefinitionIn mathematics, negaFibonacci numbers are the negatively indexed elements of the Fibonacci sequence.The negaFibonacci numbers are defined inductively by the recurrence relation:...
     numbers
  • Lucas number
    Lucas number

    The Lucas numbers are an integer sequence named after the mathematician Fran?ois ?douard Anatole Lucas , who studied both that sequence and the closely related Fibonacci numbers ....
  • Golden ratio
    Golden ratio

    In mathematics and the arts, two quantities are in the golden ratio if the ratio between the sum of those quantities and the larger one is the same as the ratio between the larger one and the smaller....
  • Fibonacci word
    Fibonacci word

    A Fibonacci word is a specific sequence of Binary numeral system digits . The Fibonacci words are, to the operation of concatenation, what the Fibonacci number are to the addition....


External links


  • Sequence Fibonacci Numbers at the On-Line Encyclopedia of Integer Sequences
    On-Line Encyclopedia of Integer Sequences

    The On-Line Encyclopedia of Integer Sequences , also cited simply as Sloane's, is an extensive searchable database of integer sequences, freely available on the World Wide Web....
  • at MathPages