Hubbry Logo
search
logo
2324099

Fibonacci sequence

logo
Community Hub0 Subscribers
Read side by side
from Wikipedia

In mathematics, the Fibonacci sequence is a sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted Fn. Many writers begin the sequence with 0 and 1, although some authors start it from 1 and 1[1][2] and some (as did Fibonacci) from 1 and 2. Starting from 0 and 1, the sequence begins

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ... (sequence A000045 in the OEIS)
A tiling with squares whose side lengths are successive Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13 and 21

The Fibonacci numbers were first described in Indian mathematics as early as 200 BC in work by Pingala on enumerating possible patterns of Sanskrit poetry formed from syllables of two lengths.[3][4][5] They are named after the Italian mathematician Leonardo of Pisa, also known as Fibonacci, who introduced the sequence to Western European mathematics in his 1202 book Liber Abaci.[6]

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, and the arrangement of a pine cone's bracts, though they do not occur in all species.

Fibonacci numbers are also strongly related to the golden ratio: Binet's formula expresses the n-th 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 also closely related to Lucas numbers, which obey the same recurrence relation and with the Fibonacci numbers form a complementary pair of Lucas sequences.

Definition

[edit]
The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling (see preceding image)

The Fibonacci numbers may be defined by the recurrence relation[7] and for n > 1.

Under some older definitions, the value is omitted, so that the sequence starts with and the recurrence is valid for n > 2.[8][9]

The first 20 Fibonacci numbers Fn are:

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

The Fibonacci sequence can be extended to negative integer indices by following the same recurrence relation in the negative direction (sequence A039834 in the OEIS): , , and for n < 0 . Nearly all properties of Fibonacci numbers do not depend upon whether the indices are positive or negative. The values for positive and negative indices obey the relation:[10]

History

[edit]

India

[edit]
Thirteen (F7) ways of arranging long and short syllables in a cadence of length six. Eight (F6) end with a short syllable and five (F5) end with a long syllable.

The Fibonacci sequence appears in Indian mathematics, in connection with Sanskrit prosody.[4][11][12] 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.[5]

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.[13] Bharata Muni also expresses knowledge of the sequence in the Natya Shastra (c. 100 BC–c. 350 AD).[3][4] 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):[12]

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,[3] 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]

Europe

[edit]
A page of Fibonacci's Liber Abaci from the Biblioteca Nazionale di Firenze showing (in box on right) 13 entries of the Fibonacci sequence:
the indices from present to XII (months) as Latin ordinals and Roman numerals and the numbers (of rabbit pairs) as Hindu-Arabic numerals starting with 1, 2, 3, 5 and ending with 377.

The Fibonacci sequence first appears in the book Liber Abaci (The Book of Calculation, 1202) by Fibonacci,[17][18] where it is used to calculate the growth of rabbit populations.[19] Fibonacci considers the growth of an idealized (biologically unrealistic) rabbit population, assuming that: a newly born breeding pair of rabbits are put in a field; each breeding pair mates at the age of one month, and at the end of their second month they always produce another pair of rabbits; and rabbits never die, but continue breeding forever. Fibonacci posed the rabbit math problem: 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 they produce a new pair, so there are 2 pairs in the field.
  • At the end of the third month, the original pair produce a second pair, but the second pair only mate to gestate for a month, so there are 3 pairs in all.
  • At the end of the fourth month, the original pair has produced yet another new pair, and the pair born two months ago also produces their 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 mature pairs (that is, the number of pairs in month n – 2) plus the number of pairs alive last month (month n – 1). The number in the n-th month is the n-th Fibonacci number.[20]

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

Solution to Fibonacci rabbit problem: In a growing idealized population, the number of rabbit pairs form the Fibonacci sequence. At the end of the nth month, the number of pairs is equal to Fn.

Relation to the golden ratio

[edit]

Closed-form expression

[edit]

Like every sequence defined by a homogeneous linear recurrence with constant coefficients, the Fibonacci numbers have a closed-form expression.[22] It has become known as Binet's formula, named after French mathematician Jacques Philippe Marie Binet, though it was already known by Abraham de Moivre and Daniel Bernoulli:[23]

where is the golden ratio and is its conjugate,[24]

The numbers and are the two solutions of the quadratic equation , that is, , and thus they satisfy the identities and .

Since , Binet's formula can also be written as

To see the relation between the sequence and these constants,[25] note that and are and thus so the powers of and satisfy the Fibonacci recurrence. In other words,

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 In particular, choosing a = 1 makes the n-th element of the sequence closely approximate the n-th power of for large enough values of n. This arises when U0 = 2 and U1 = 1, which produces the sequence of Lucas numbers.

Computation by rounding

[edit]

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

In fact, the rounding error quickly becomes very small as n grows, being less than 0.1 for n ≥ 4, and less than 0.01 for n ≥ 8. This formula is easily inverted to find an index of a Fibonacci number F:

Instead using the floor function gives the largest index of a Fibonacci number that is not greater than F: where , ,[26] and .[27]

Magnitude

[edit]

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

Limit of consecutive quotients

[edit]

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 :[28][29]

This convergence holds regardless of the starting values and , unless . 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 elements in this sequence shows the same convergence towards the golden ratio.

In general, , because the ratios between consecutive Fibonacci numbers approaches .

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

[edit]

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 ≥ 1: For , it is also the case that and it is also the case that

These expressions are also true for n < 1 if the Fibonacci sequence Fn is extended to negative integers using the Fibonacci rule

Identification

[edit]

Binet's formula provides a proof that a positive integer x is a Fibonacci number if and only if at least one of or is a perfect square.[30] This is because Binet's formula, which can be written as , can be multiplied by and solved as a quadratic equation in via the quadratic formula:

Comparing this to , it follows that

In particular, the left-hand side is a perfect square.

Matrix form

[edit]

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

As the initial value is

it follows that the nth element 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 be performed by diagonalization of A through use of its eigendecomposition:

where

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 convergents of the continued fraction for φ are ratios of successive Fibonacci numbers: φn = Fn+1 / Fn is the n-th convergent, and the (n + 1)-st convergent can be found from the recurrence relation φn+1 = 1 + 1 / φn.[31] 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:

For a given n, this matrix can be computed in O(log n) arithmetic operations, using the exponentiation by squaring method.

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

Moreover, since AnAm = 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. This matches the time for computing the 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).[32]

Combinatorial identities

[edit]

Combinatorial proofs

[edit]

Most identities involving Fibonacci numbers can be proved using combinatorial arguments using the fact that can be interpreted as the number of (possibly empty) sequences of 1s and 2s whose sum is . This can be taken as the definition of with the conventions , meaning no such sequence exists whose sum is −1, and , meaning the empty sequence "adds up" to 0. In the following, is the cardinality of a set:

In this manner the recurrence relation may be understood by dividing the sequences into two non-overlapping sets where all sequences either begin with 1 or 2: Excluding the first element, the remaining terms in each sequence sum to or and the cardinality of each set is or giving a total of sequences, showing this is equal to .

In a similar manner it may be shown that the sum of the first Fibonacci numbers up to the n-th is equal to the (n + 2)-th Fibonacci number minus 1.[33] In symbols:

This may be seen by dividing all sequences summing to based on the location of the first 2. Specifically, each set consists of those sequences that start until the last two sets each with cardinality 1.

Following the same logic as before, by summing the cardinality of each set we see that

... where the last two terms have the value . From this it follows that .

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 is the (2n)-th Fibonacci number, and the sum of the first Fibonacci numbers with even index up to is the (2n + 1)-th Fibonacci number minus 1.[34]

A different trick may be used to prove or in words, the sum of the squares of the first Fibonacci numbers up to is the product of the n-th and (n + 1)-th Fibonacci numbers. To see this, begin with a Fibonacci rectangle of size and decompose it into squares of size ; from this the identity follows by comparing areas:

Induction proofs

[edit]

Fibonacci identities often can be easily proved using mathematical induction.

For example, reconsider Adding to both sides gives

and so we have the formula for

Similarly, add to both sides of to give

Binet formula proofs

[edit]

The Binet formula is This can be used to prove Fibonacci identities.

For example, to prove that note that the left hand side multiplied by becomes as required, using the facts and to simplify the equations.

Other identities

[edit]

Numerous other identities can be derived using various methods. Here are some of them:[35]

Cassini's and Catalan's identities

[edit]

Cassini's identity states that Catalan's identity is a generalization:

d'Ocagne's identity

[edit]

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,[35]

or alternatively

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

Generating function

[edit]

The ordinary generating function of the Fibonacci sequence is the power series

This series is convergent for any complex number satisfying and its sum has a simple closed form:[36]

This can be proved by multiplying by :

where all terms involving for cancel out because of the defining Fibonacci recurrence relation.

The partial fraction decomposition is given by where is the golden ratio and is its conjugate.

Using equal to any of 0.01, 0.001, 0.0001, etc. lays out the first Fibonacci numbers in the decimal expansion of . For example,

Reciprocal sums

[edit]

Infinite sums over reciprocal Fibonacci numbers can sometimes be evaluated in terms of theta functions. For example, the sum of every odd-indexed reciprocal Fibonacci number can be written 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,

The sum of all even-indexed reciprocal Fibonacci numbers is[37] with the Lambert series since

So the reciprocal Fibonacci constant is[38]

Moreover, this number has been proved irrational by Richard André-Jeannin.[39]

Millin's series gives the identity[40] which follows from the closed form for its partial sums as N tends to infinity:

Primes and divisibility

[edit]

Divisibility properties

[edit]

Every third number of the sequence is even (a multiple of ) and, more generally, every k-th 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[41][42] where gcd is the greatest common divisor function. (This relation is different if a different indexing convention is used, such as the one that starts the sequence with and .)

In particular, any three consecutive Fibonacci numbers are pairwise coprime because both and . That is,

for every n.

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 modulo 5, then p divides Fp−1, and if p is congruent to 2 or 3 modulo 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, non-piecewise formula, using the Legendre symbol:[43]

Primality testing

[edit]

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.[44]

Fibonacci primes

[edit]

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

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.[46]

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.[47]

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

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

No Fibonacci number can be a perfect number.[52] More generally, no Fibonacci number other than 1 can be multiply perfect,[53] and no ratio of two Fibonacci numbers can be perfect.[54]

Prime divisors

[edit]

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).[55] As a result, 8 and 144 (F6 and F12) are the only Fibonacci numbers that are the product of other Fibonacci numbers.[56]

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 [57][58]

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:[59]

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.[60]

For example,

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

Periodicity modulo n

[edit]

If the members of the Fibonacci sequence are taken mod n, the resulting sequence is periodic with period at most 6n.[63] The lengths of the periods for various n form the so-called Pisano periods.[64] 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.

Generalizations

[edit]

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, to the 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.[35]
  • 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.[65]

Applications

[edit]

Mathematics

[edit]
The Fibonacci numbers are the sums of the diagonals (shown in red) of a left-justified Pascal's triangle.

The Fibonacci numbers occur as the sums of binomial coefficients in the "shallow" diagonals of Pascal's triangle:[66] This can be proved by expanding the generating function and collecting like terms of .

To see how the formula is used, we can arrange the sums by the number of terms present:

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

which is , where we are choosing the positions of k twos from nk−1 terms.

Use of the Fibonacci sequence to count {1, 2}-restricted compositions

These numbers also give the solution to certain enumerative problems,[67] 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 (equivalently, it's also the number of domino tilings of the rectangle). For example, there are F5+1 = F6 = 8 ways one can climb a staircase of 5 steps, taking one or two steps at a time:

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

The figure shows that 8 can be decomposed into 5 (the number of ways to climb 4 steps, followed by a single-step) plus 3 (the number of ways to climb 3 steps, followed by a double-step). The same reasoning is applied recursively until a single step, of which there is only one way to climb.

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. Such strings are the binary representations of Fibbinary numbers. 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. A bijection with the sums to n+1 is to replace 1 with 0 and 2 with 10, and drop the last zero.
  • 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. A bijection with the sums to n is to replace 1 with 0 and 2 with 11.
  • 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.
  • 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.[68]
  • 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.
  • 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, obtained from the formula The sequence of Pythagorean triangles obtained from this formula has sides of lengths (3,4,5), (5,12,13), (16,30,34), (39,80,89), ... . The middle side of each of these triangles is the sum of the three sides of the preceding triangle.[69]
  • The Fibonacci cube is an undirected graph with a Fibonacci number of nodes that has been proposed as a network topology for parallel computing.
  • Fibonacci numbers appear in the ring lemma, used to prove connections between the circle packing theorem and conformal maps.[70]

Computer science

[edit]
Fibonacci tree of height 6. Balance factors green; heights red.
The keys in the left spine are Fibonacci numbers.

Nature

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

Fibonacci sequences appear in biological settings,[77] such as branching in trees, arrangement of leaves on a stem, the fruitlets of a pineapple,[78] the flowering of artichoke, the arrangement of a pine cone,[79] and the family tree of honeybees.[80][81] Kepler pointed out the presence of the Fibonacci sequence in nature, using it to explain the (golden ratio-related) pentagonal form of some flowers.[82] Field daisies most often have petals in counts of Fibonacci numbers.[83] In 1830, Karl Friedrich Schimper and Alexander Braun discovered that the parastichies (spiral phyllotaxis) of plants were frequently expressed as fractions involving Fibonacci numbers.[84]

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.[85]

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.[86] 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,[87] typically counted by the outermost range of radii.[88]

Fibonacci numbers also appear in the ancestral pedigrees of bees (which are haplodiploids), according to the following rules:

  • If an egg is laid but not fertilized, it produces a male (or drone bee in honeybees).
  • If, however, an egg is fertilized, it produces 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.[89][90] 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".[91])

It has similarly been noticed that the number of possible ancestors on the human X chromosome inheritance line at a given ancestral generation also follows the Fibonacci sequence.[91] 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.)

Other

[edit]
  • 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 k-th Fibonacci number. (However, when k = 1, there are three reflection paths, not two, one for each of the three surfaces.)[92]
  • Fibonacci retracement levels are widely used in technical analysis for financial market trading.
  • 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.[93]
  • The measured values of voltages and currents in the infinite resistor chain circuit (also called the resistor ladder or infinite series-parallel circuit) follow the Fibonacci sequence. The intermediate results of adding the alternating series and parallel resistances yields fractions composed of consecutive Fibonacci numbers. The equivalent resistance of the entire circuit equals the golden ratio.[94]
  • Brasch et al. 2012 show how a generalized Fibonacci sequence also can be connected to the field of economics.[95] In particular, it is shown how a generalized 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.
  • Mario Merz included the Fibonacci sequence in some of his artworks beginning in 1970.[96]
  • 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.[97] See also Golden ratio § Music.
  • In software development, Fibonacci numbers are often used by agile teams operating under the Scrum framework to size their product backlog items.[98]

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
The Fibonacci sequence is a series of non-negative integers in which each number is the sum of the two preceding ones, typically starting with 0 and 1, yielding the terms 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, and so forth.[1] This recurrence relation, denoted as $ F_n = F_{n-1} + F_{n-2} $ for $ n \geq 2 $ with initial conditions $ F_0 = 0 $ and $ F_1 = 1 $, defines one of the oldest known recursive sequences in mathematics.[2] The sequence's origins trace back to ancient Indian mathematics, where it was first described around 200 BCE by the scholar Pingala in his work on Sanskrit prosody, Chandaḥśāstra, under the name mātrāmeru.[1] It was later elaborated in Indian texts, such as those by Gopala and Hemachandra in the 12th century,[1] before being introduced to the Western world by the Italian mathematician Leonardo of Pisa, better known as Fibonacci, in his 1202 book Liber Abaci.[3] In Liber Abaci, Fibonacci presented the sequence through a problem modeling the growth of a rabbit population under idealized breeding conditions, starting from a pair of rabbits and assuming no deaths.[2] The modern term "Fibonacci sequence" was coined in 1877 by the French mathematician Édouard Lucas, who also explored its properties extensively.[1] The Fibonacci sequence exhibits remarkable mathematical properties, such as the fact that the ratio of consecutive terms $ \frac{F_{n+1}}{F_n} $ converges to the golden ratio $ \phi \approx 1.6180339887 $ as $ n $ increases, a limit that underpins its aesthetic and structural appeal.[2] Consecutive Fibonacci numbers are always coprime, meaning their greatest common divisor is 1,[4] and every third number in the sequence is even.[5] Beyond pure mathematics, the sequence appears ubiquitously in nature, particularly in phyllotaxis—the arrangement of leaves, seeds, and branches in plants—where Fibonacci numbers optimize packing efficiency and exposure to sunlight, as seen in the spirals of pinecones, sunflowers, and pineapples.[6] These natural occurrences, along with applications in computer algorithms, art, architecture, and finance, highlight the sequence's interdisciplinary significance.[2]

History

Indian origins

The earliest known references to patterns equivalent to the Fibonacci sequence appear in ancient Indian mathematics, particularly in the context of Sanskrit prosody. Around 200 BCE, the scholar Pingala, in his treatise Chandaḥśāstra on poetic meters, introduced binary-like patterns through the concept of Meru Prastāra (Mount Meru), a triangular array where the sums of shallow diagonals yield numbers following the sequence 1, 1, 2, 3, 5, 8, and so on. These patterns arose from enumerating possible combinations of short (laghu, one unit) and long (guru, two units) syllables in verses, providing an implicit combinatorial foundation without an explicit recurrence rule.[7][8] This idea was developed further by Virahanka, a mathematician active between the 6th and 7th centuries CE, who explicitly described the method for calculating the number of valid syllable combinations in meters of increasing length. In his work on prosody, Virahanka explained that the total variations for a meter of n units equal the sum of variations for n-1 and n-2 units, applied to examples such as 3 variations for 3 morae and 5 for 4 morae. This approach formalized the sequence in the service of poetic composition, emphasizing its utility in generating rhythmic structures in Sanskrit literature.[7] By the 12th century, the sequence gained more structured recognition in combinatorial mathematics. Gopala, in a manuscript dated around 1135 CE, commented on and expanded Virahanka's rule, illustrating it with specific counts like 3 ways for 3 morae, 5 for 4, and 8 for 5, thereby reinforcing its application to syllable patterns. Similarly, Hemachandra, writing his Chandonuśāsana between 1142 and 1158 CE under the patronage of the Chaulukya dynasty in Gujarat, presented the sequence as 1, 2, 3, 5, 8, 13, 21 for determining the number of metrical forms, integrating it deeply into the study of poetry and linguistics. These contributions highlight the sequence's role in enumerating tilings or partitions, such as the number of ways to cover a line of length n using segments of 1 and 2 units—a modern interpretive lens that underscores its combinatorial essence in Indian scholarship.[7]

European adoption

The Italian mathematician Leonardo Fibonacci (c. 1170–1250) introduced the sequence to Europe in his seminal work Liber Abaci, published in 1202, where he posed it as a problem illustrating the idealized growth of a rabbit population over one year.[9] This presentation highlighted the sequence's utility in modeling iterative processes, embedding it within a broader collection of arithmetic problems aimed at merchants and scholars. Fibonacci's adoption of the sequence occurred amid his efforts to promote the Hindu-Arabic numeral system and efficient computational techniques in medieval Europe, where Roman numerals still dominated cumbersome calculations.[10] Born in Pisa and educated in North Africa due to his father's diplomatic role, Fibonacci traveled extensively around 1200 to regions including Egypt, Syria, and Provence, gaining exposure to Islamic mathematical traditions that synthesized earlier Indian concepts.[9] These travels, particularly in Bugia (modern Béjaïa, Algeria), under the tutelage of Arab scholars, informed Liber Abaci's content, bridging Eastern numerical innovations with Western practical needs.[11] Early recognition emerged in scholarly circles, notably at the court of Holy Roman Emperor Frederick II in the 1220s, where Fibonacci demonstrated his expertise by solving challenges posed by court astronomers like Michael Scotus and Johannes of Palermo.[9] A revised edition of Liber Abaci in 1228, dedicated to Scotus, further disseminated the work among European intellectuals connected to the Toledan school of translators.[12] Throughout the 13th century, manuscripts of Liber Abaci were extensively copied and circulated in Italian and broader European academic environments, integrating the sequence into texts on commercial arithmetic and fostering its role in everyday mathematical practice.

Mathematical Definition and Formulation

Recursive definition

The Fibonacci sequence is a classic example of a recursively defined sequence in mathematics. To understand this, first consider the basic concepts: a sequence is an ordered list of numbers, such as 2, 4, 6, 8, ..., while a recurrence relation is an equation that defines each term in the sequence as a function of one or more preceding terms, typically requiring specified initial conditions to generate the full sequence.[13] The standard recursive definition of the Fibonacci sequence begins with the initial conditions $ F_0 = 0 $ and $ F_1 = 1 $, followed by the recurrence relation $ F_n = F_{n-1} + F_{n-2} $ for all integers $ n > 1 $.[14] This relation means that each subsequent term is the sum of the two immediately previous terms, allowing the sequence to be built iteratively from the starting values. Using this definition, the first thirteen terms (for $ n = 0 $ to $ 12 $) are:
F0=0,F1=1,F2=1,F3=2,F4=3,F5=5,F6=8,F7=13,F8=21,F9=34,F10=55,F11=89,F12=144. \begin{align*} F_0 &= 0, \\ F_1 &= 1, \\ F_2 &= 1, \\ F_3 &= 2, \\ F_4 &= 3, \\ F_5 &= 5, \\ F_6 &= 8, \\ F_7 &= 13, \\ F_8 &= 21, \\ F_9 &= 34, \\ F_{10} &= 55, \\ F_{11} &= 89, \\ F_{12} &= 144. \end{align*}
These terms can be verified by direct substitution into the recurrence: for instance, $ F_3 = F_2 + F_1 = 1 + 1 = 2 $, and $ F_4 = F_3 + F_2 = 2 + 1 = 3 $.[14] A common variant of the definition omits $ F_0 $ and sets $ F_1 = 1 $, $ F_2 = 1 $, with the same recurrence $ F_n = F_{n-1} + F_{n-2} $ for $ n \geq 3 $; this produces the sequence starting 1, 1, 2, 3, 5, ..., which aligns with the standard sequence from $ F_1 $ onward.[15] This recursive structure was motivated by a problem in Fibonacci's 1202 book Liber Abaci, modeling the growth of a rabbit population under idealized conditions: a single newborn pair produces a new pair every month starting from the second month, with no deaths, leading to the number of pairs at month $ n $ satisfying the same recurrence as the sequence.[16]

Closed-form expression

The closed-form expression for the nnth Fibonacci number FnF_n is given by Binet's formula:
Fn=ϕnϕ^n5, F_n = \frac{\phi^n - \hat{\phi}^n}{\sqrt{5}},
where ϕ=1+52\phi = \frac{1 + \sqrt{5}}{2} is the golden ratio and ϕ^=152\hat{\phi} = \frac{1 - \sqrt{5}}{2} is its conjugate.[17] This formula arises from solving the linear recurrence relation Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} using the characteristic equation r2r1=0r^2 - r - 1 = 0, whose roots are precisely ϕ\phi and ϕ^\hat{\phi}.[18] The general solution to the recurrence is then Fn=Aϕn+Bϕ^nF_n = A \phi^n + B \hat{\phi}^n, where the constants AA and BB are determined by the initial conditions F0=0F_0 = 0 and F1=1F_1 = 1, yielding A=15A = \frac{1}{\sqrt{5}} and B=15B = -\frac{1}{\sqrt{5}}.[18] To verify, substitute Binet's formula into the recurrence: since ϕ\phi and ϕ^\hat{\phi} satisfy ϕ2=ϕ+1\phi^2 = \phi + 1 and ϕ^2=ϕ^+1\hat{\phi}^2 = \hat{\phi} + 1, it follows that Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} holds for n2n \geq 2.[19] The initial conditions are also satisfied: F0=ϕ0ϕ^05=0F_0 = \frac{\phi^0 - \hat{\phi}^0}{\sqrt{5}} = 0 and F1=ϕϕ^5=1F_1 = \frac{\phi - \hat{\phi}}{\sqrt{5}} = 1.[19] A notable property is that FnF_n is the integer closest to ϕn5\frac{\phi^n}{\sqrt{5}}, as the term involving ϕ^n\hat{\phi}^n has absolute value less than 12\frac{1}{2} for all nonnegative integers nn.[20] Binet's formula was derived by the French mathematician Jacques Philippe Marie Binet in 1843, though the result was actually discovered earlier by Abraham de Moivre in 1718.[17]

Representations and Computations

Matrix form

The matrix form provides a linear algebraic representation of the Fibonacci sequence, enabling efficient computation through matrix exponentiation. The sequence can be expressed using the companion matrix $ A = \begin{pmatrix} 1 & 1 \ 1 & 0 \end{pmatrix} $, known as the Fibonacci Q-matrix, where the entries correspond to initial Fibonacci numbers $ F_2 = 1 $, $ F_1 = 1 $, and $ F_0 = 0 $.[21] Specifically, the vector $ \begin{pmatrix} F_{n+1} \ F_n \end{pmatrix} $ satisfies the relation $ \begin{pmatrix} F_{n+1} \ F_n \end{pmatrix} = A^n \begin{pmatrix} 1 \ 0 \end{pmatrix} $, with the initial vector representing $ F_1 = 1 $ and $ F_0 = 0 $.[22] More generally, the powers of this matrix yield Fibonacci entries directly: $ A^n = \begin{pmatrix} F_{n+1} & F_n \ F_n & F_{n-1} \end{pmatrix} $.[21] This matrix has a determinant of $ -1 $, which follows from the characteristic equation $ \lambda^2 - \lambda - 1 = 0 $ and ensures that integer powers preserve the integer nature of Fibonacci numbers.[23] The structure allows computation of pairs of consecutive Fibonacci terms $ F_{n+1} $ and $ F_n $ without generating the entire sequence up to $ n $, by applying the matrix power to the initial vector.[24] For large $ n $, this formulation offers a computational advantage through fast matrix exponentiation, such as repeated squaring, which requires only $ O(\log n) $ matrix multiplications to compute $ A^n $.[24] This provides a significant improvement over the naive recursive algorithm, which has exponential time complexity $ \Theta(\phi^n) $, where $ \phi = \frac{1 + \sqrt{5}}{2} \approx 1.618 $ is the golden ratio.[25][26] Each matrix multiplication involves a constant number of operations (four scalar multiplications and two additions for 2×2 matrices), making it suitable for high-precision arithmetic with numbers having hundreds of digits.[24] This method contrasts with iterative approaches that scale linearly with $ n $, providing exact results unlike approximation-based alternatives.[24]

Rounding method

One practical method for computing Fibonacci numbers leverages an approximation derived from Binet's formula, where the nnth Fibonacci number FnF_n is the nearest integer to ϕn5\frac{\phi^n}{\sqrt{5}}, with ϕ=1+52\phi = \frac{1 + \sqrt{5}}{2} denoting the golden ratio.[14][27] This rounding approach simplifies calculation, as the exact Binet expression Fn=ϕnψn5F_n = \frac{\phi^n - \psi^n}{\sqrt{5}} (with ψ=152\psi = \frac{1 - \sqrt{5}}{2}) has a second term that is negligible for approximation purposes.[27] The validity of this method stems from a strict error bound: the absolute difference satisfies Fnϕn5=ψn5<12\left| F_n - \frac{\phi^n}{\sqrt{5}} \right| = \left| \frac{\psi^n}{\sqrt{5}} \right| < \frac{1}{2} for all n0n \geq 0, since ψ0.618<1|\psi| \approx 0.618 < 1 and 5>2\sqrt{5} > 2, ensuring that rounding ϕn5\frac{\phi^n}{\sqrt{5}} to the nearest integer always yields the exact FnF_n.[27] This property holds universally without exceptions in the non-negative indices.[27] For instance, to compute F10F_{10}, evaluate ϕ10122.99187\phi^{10} \approx 122.99187, divide by 52.23607\sqrt{5} \approx 2.23607 to get approximately 55.00000, and round to 55.[28] Similar computations work reliably for moderate nn. While effective for quick estimates and small to medium nn, this method encounters limitations for very large nn due to floating-point precision constraints in computational environments, where accumulated rounding errors in calculating ϕn\phi^n can lead to inaccuracies beyond n70n \approx 70. With arbitrary-precision floats, the required mantissa precision scales approximately as n×log2ϕ0.694nn \times \log_2 \phi \approx 0.694 n bits, plus 50–100 extra guard bits for safety against errors in exponentiation and division; the number of decimal digits in FnF_n is roughly n×log10ϕ0.209nn \times \log_{10} \phi \approx 0.209 n.[28] Nonetheless, it remains valuable in programming for efficient approximation when exact values are not required or when combined with arbitrary-precision arithmetic.[28]

Connections to the Golden Ratio

Binet's formula details

Binet's formula for the Fibonacci numbers, $ F_n = \frac{\phi^n - \psi^n}{\sqrt{5}} $, where $ \phi = \frac{1 + \sqrt{5}}{2} $ is the golden ratio and $ \psi = \frac{1 - \sqrt{5}}{2} $, was first derived by Abraham de Moivre around 1718, with later independent discoveries by Daniel Bernoulli and Leonhard Euler in the mid-18th century, before its publication by Jacques Philippe Marie Binet in 1843.[29] The formula extends naturally to negative indices, yielding $ F_{-n} = (-1)^{n+1} F_n $ for positive integers $ n $, which preserves the recurrence relation $ F_m = F_{m+1} + F_{m-1} $ when extended backwards from $ F_0 = 0 $ and $ F_1 = 1 $.[30] Binet's formula connects closely to the Lucas numbers $ L_n $, which satisfy the same recurrence as the Fibonacci sequence but with initial conditions $ L_0 = 2 $ and $ L_1 = 1 $; their closed form is $ L_n = \phi^n + \psi^n $, and a key identity links them via $ L_n = F_{n-1} + F_{n+1} $ for $ n \geq 1 $.[31] Although $ \phi $ and $ \psi $ are irrational and $ \sqrt{5} $ is irrational, Binet's formula produces integers for all integer $ n $, as verified by induction: the expression satisfies the Fibonacci recurrence $ F_n = F_{n-1} + F_{n-2} $ for $ n \geq 2 $, and matches the integer initial conditions $ F_0 = 0 $ and $ F_1 = 1 $, ensuring all subsequent terms are integers.[32]

Asymptotic magnitude

The asymptotic magnitude of the Fibonacci numbers is captured by the dominant term in Binet's formula, which expresses $ F_n $ as $ F_n = \frac{\phi^n - \psi^n}{\sqrt{5}} $, where $ \phi = \frac{1 + \sqrt{5}}{2} $ is the golden ratio and $ \psi = \frac{1 - \sqrt{5}}{2} $.[14] As $ n \to \infty $, $ F_n \sim \frac{\phi^n}{\sqrt{5}} $, since $ |\psi| < 1 $ ensures that the term $ \frac{\psi^n}{\sqrt{5}} $ approaches zero and becomes negligible compared to the exponentially growing $ \frac{\phi^n}{\sqrt{5}} $.[14] This approximation reveals the exponential nature of the growth, with $ F_n = \Theta(\phi^n) $; more precisely, the natural logarithm satisfies $ \log F_n \approx n \log \phi - \log \sqrt{5} $, highlighting the linear dependence on $ n $ in the exponent.[14] For scale, the Fibonacci sequence grows exponentially with base $ \phi \approx 1.618 $, but far more slowly than the factorial $ n! $, which follows Stirling's approximation $ n! \sim \sqrt{2 \pi n} , (n/e)^n $ and thus exhibits super-exponential growth; for instance, $ F_{20} = 6765 $, while $ 20! \approx 2.43 \times 10^{18} $.[14] In algorithmic contexts, this asymptotic form provides tight bounds for the running time of procedures governed by Fibonacci-like recurrences, such as the naive recursive algorithm to compute $ F_n $, which performs $ \Theta(\phi^n) $ additions and thus becomes impractical for large $ n $ due to the exponential scaling.[33]

Ratio limits

One of the most remarkable properties of the Fibonacci sequence is the convergence of the ratio of consecutive terms to the golden ratio ϕ=1+521.6180339887\phi = \frac{1 + \sqrt{5}}{2} \approx 1.6180339887. Specifically, limnFn+1Fn=ϕ\lim_{n \to \infty} \frac{F_{n+1}}{F_n} = \phi.[34] This limit holds because the sequence grows exponentially with base ϕ\phi, and the ratios stabilize as nn increases, with early approximations such as F5F4=531.666\frac{F_5}{F_4} = \frac{5}{3} \approx 1.666 and F10F9=55341.6176\frac{F_{10}}{F_9} = \frac{55}{34} \approx 1.6176 drawing progressively closer to ϕ\phi. A rigorous proof of this convergence utilizes Binet's formula, Fn=ϕn(ϕ)n5F_n = \frac{\phi^n - (-\phi)^{-n}}{\sqrt{5}}, where the contribution of the second term, divided by 5\sqrt{5}, has absolute value less than 0.5 for all n0n \geq 0 and diminishes rapidly to zero as nn grows. Thus, Fn+1Fn=ϕn+1(ϕ)(n+1)ϕn(ϕ)n1/51/5\frac{F_{n+1}}{F_n} = \frac{\phi^{n+1} - (-\phi)^{-(n+1)}}{\phi^n - (-\phi)^{-n}} \cdot \frac{1/\sqrt{5}}{1/\sqrt{5}} simplifies asymptotically to ϕ\phi, since the negligible second terms vanish in the limit.[34][35] This ratio's connection to ϕ\phi echoes historical geometric insights, as ancient Greek mathematicians, including Euclid in his Elements (circa 300 BCE), constructed regular pentagons where the diagonal-to-side ratio equals ϕ\phi exactly, implicitly approximating the same limit through successive polygonal divisions without knowledge of the Fibonacci sequence itself.[36] Such constructions, used in architecture and art, prefigure the Fibonacci approximations by leveraging the pentagon's self-similar properties tied to ϕ\phi.[37] Furthermore, the continued fraction expansion of ϕ=[1;1,1,1,]\phi = [1; \overline{1,1,1,\dots}] consists of an infinite string of 1s, and its convergents are precisely the ratios Fn+1Fn\frac{F_{n+1}}{F_n}, which provide the best rational approximations to ϕ\phi among all fractions with denominators up to FnF_n. This linkage underscores the deep interplay between the Fibonacci sequence and the infinite, non-repeating nature of ϕ\phi's continued fraction.[38][39]

Identities and Proofs

Combinatorial identities

One prominent combinatorial interpretation of the Fibonacci numbers arises in the context of tiling problems. The (n+1)(n+1)th Fibonacci number Fn+1F_{n+1} counts the number of distinct ways to tile a board of length nn using tiles of length 1 (singles) and length 2 (dominoes). This can be established recursively: a tiling of an nn-board either ends with a single, in which case the preceding n1n-1 board can be tiled in FnF_n ways, or ends with a domino, leaving an n2n-2 board tiled in Fn1F_{n-1} ways, yielding the relation Fn+1=Fn+Fn1F_{n+1} = F_n + F_{n-1}. A combinatorial bijection confirms this by directly enumerating the tilings, where each configuration corresponds uniquely to a sequence of singles and dominoes covering the board without overlaps or gaps.[14] This tiling interpretation also provides a combinatorial proof for the identity Fn+1=k=0n/2(nkk)F_{n+1} = \sum_{k=0}^{\lfloor n/2 \rfloor} \binom{n-k}{k}. The term (nkk)\binom{n-k}{k} represents the number of tilings of the nn-board that use exactly kk dominoes (covering 2k2k units) and n2kn-2k singles (covering the remaining n2kn-2k units), for a total of nkn-k tiles. The binomial coefficient arises from choosing kk positions for the dominoes among the nkn-k total tiles in the sequence. Summing over all possible kk (from 0 to n/2\lfloor n/2 \rfloor) exhausts all valid tilings, equaling the total Fn+1F_{n+1}. An alternative proof by induction verifies the summation directly: the base cases hold for small nn, and assuming the identity for smaller values, the Fibonacci recurrence splits the sum accordingly.[14] Another key combinatorial result is Zeckendorf's theorem, which states that every positive integer can be uniquely expressed as a sum of distinct Fibonacci numbers with no two consecutive indices. Formally, for any positive integer mm, there exists a unique set of indices i1<i2<<iri_1 < i_2 < \cdots < i_r such that ij+1ij+2i_{j+1} \geq i_j + 2 for all jj, and m=Fi1+Fi2++Firm = F_{i_1} + F_{i_2} + \cdots + F_{i_r}, where typically F2=1F_2 = 1, F3=2F_3 = 2, etc. This representation avoids the ambiguity of other greedy algorithms and has applications in coding and numeration systems. The theorem is proved by showing that the greedy choice of the largest possible non-exceeding Fibonacci number always yields non-consecutive terms, with uniqueness following from the property that Fn+1>k=1n1FkF_{n+1} > \sum_{k=1}^{n-1} F_k.[40]

Algebraic identities

The algebraic identities of the Fibonacci sequence encompass multiplicative and difference relations that connect terms without relying on summation or combinatorial interpretations. These identities reveal deep structural properties of the sequence and can be derived using methods such as mathematical induction or matrix representations.[41] One of the most fundamental is Cassini's identity, which states that for any positive integer nn,
Fn+1Fn1Fn2=(1)n. F_{n+1} F_{n-1} - F_n^2 = (-1)^n.
This relation was first observed by the Italian astronomer Giovanni Domenico Cassini around 1680 while studying planetary motions, though it applies more broadly to the Fibonacci sequence.[42] A proof by mathematical induction proceeds as follows: For the base case n=1n=1, F2F0F12=1012=1=(1)1F_2 F_0 - F_1^2 = 1 \cdot 0 - 1^2 = -1 = (-1)^1, which holds (assuming the standard extension F0=0F_0 = 0). Assume the identity is true for n=kn = k: Fk+1Fk1Fk2=(1)kF_{k+1} F_{k-1} - F_k^2 = (-1)^k. For n=k+1n = k+1, compute Fk+2FkFk+12=(Fk+1+Fk)FkFk+12=Fk+1Fk+Fk2Fk+12=Fk2Fk+1(Fk+1Fk)=Fk2Fk+1Fk1=(Fk+1Fk1Fk2)=(1)k=(1)k+1F_{k+2} F_k - F_{k+1}^2 = (F_{k+1} + F_k) F_k - F_{k+1}^2 = F_{k+1} F_k + F_k^2 - F_{k+1}^2 = F_k^2 - F_{k+1} (F_{k+1} - F_k) = F_k^2 - F_{k+1} F_{k-1} = -(F_{k+1} F_{k-1} - F_k^2) = -(-1)^k = (-1)^{k+1}, confirming the step using the hypothesis and Fk+1Fk=Fk1F_{k+1} - F_k = F_{k-1}.[43][44] An alternative proof uses the matrix form of the Fibonacci sequence, where (Fn+1FnFnFn1)=(1110)n\begin{pmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n. The determinant of the right-hand side is (1)n(-1)^n, and equating determinants gives Fn+1Fn1Fn2=(1)nF_{n+1} F_{n-1} - F_n^2 = (-1)^n.[41] Cassini's identity generalizes to Catalan's identity, discovered by the Belgian mathematician Eugène Charles Catalan in 1879, which states that for integers nr1n \geq r \geq 1,
Fn+rFnrFn2=(1)nrFr2. F_{n+r} F_{n-r} - F_n^2 = (-1)^{n-r} F_r^2.
When r=1r=1, this reduces to Cassini's identity. A matrix-based proof leverages the property that the determinant of the product of the Fibonacci matrix raised to powers n+rn+r and nrn-r minus the square of the matrix to power nn aligns with the form above, using the constant determinant (1)nr(-1)^{n-r} and relating to Fr2F_r^2. Alternatively, induction on nn for fixed rr, with base cases verified directly and the inductive step using the recurrence to expand terms, confirms the relation.[45][41] Another key relation is d'Ocagne's identity, formulated by the French mathematician Maurice d'Ocagne in 1891, which asserts that for integers m>n0m > n \geq 0,
FmFn+1Fm+1Fn=(1)nFmn. F_m F_{n+1} - F_{m+1} F_n = (-1)^n F_{m-n}.
This identity generalizes Cassini's identity (a special case when m=n+1m = n+1) and parallels Catalan's identity, with extensions to Lucas sequences, higher-order recurrences, and generalized Fibonacci sequences with arbitrary initial conditions. d'Ocagne's work also linked it to periodic continued fractions, while variants appear in geometric puzzles and paradoxes akin to missing square puzzles. It highlights bilinear forms in Fibonacci numbers and can be proved using generating functions or matrix methods. For instance, expressing the left side as the determinant of a submatrix derived from the Fibonacci matrix powers yields the right side via the constant determinant property and the difference mnm-n. An inductive proof fixes nn and inducts on mm, using the recurrence to relate consecutive terms and reducing to known cases like Cassini's for the base.[41][46]

Generating functions

The ordinary generating function for the Fibonacci sequence, defined by F0=0F_0 = 0, F1=1F_1 = 1, and Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} for n2n \geq 2, is the formal power series
G(x)=n=0Fnxn. G(x) = \sum_{n=0}^{\infty} F_n x^n.
This function encodes the entire sequence as coefficients of the powers of xx.[47] To derive G(x)G(x), substitute the recurrence relation into the series. Specifically,
G(x)=F0+F1x+n=2Fnxn=0+x+n=2(Fn1+Fn2)xn. G(x) = F_0 + F_1 x + \sum_{n=2}^{\infty} F_n x^n = 0 + x + \sum_{n=2}^{\infty} (F_{n-1} + F_{n-2}) x^n.
The sum splits into
n=2Fn1xn+n=2Fn2xn=xn=2Fn1xn1+x2n=2Fn2xn2=x(G(x)F0)+x2G(x)=xG(x)+x2G(x), \sum_{n=2}^{\infty} F_{n-1} x^n + \sum_{n=2}^{\infty} F_{n-2} x^n = x \sum_{n=2}^{\infty} F_{n-1} x^{n-1} + x^2 \sum_{n=2}^{\infty} F_{n-2} x^{n-2} = x (G(x) - F_0) + x^2 G(x) = x G(x) + x^2 G(x),
yielding G(x)=x+xG(x)+x2G(x)G(x) = x + x G(x) + x^2 G(x). Solving for G(x)G(x) gives
G(x)(1xx2)=x    G(x)=x1xx2, G(x) (1 - x - x^2) = x \implies G(x) = \frac{x}{1 - x - x^2},
valid within the radius of convergence x<1/ϕ0.618|x| < 1/\phi \approx 0.618, where ϕ=(1+5)/2\phi = (1 + \sqrt{5})/2 is the golden ratio.[47][48] The coefficient of xnx^n in G(x)G(x) directly yields FnF_n, as per the definition of the generating function. To extract a closed form, decompose the rational function via partial fractions. The denominator factors as 1xx2=(1ϕx)(1ϕ^x)1 - x - x^2 = (1 - \phi x)(1 - \hat{\phi} x), where ϕ^=(15)/2\hat{\phi} = (1 - \sqrt{5})/2. Thus,
x1xx2=A1ϕx+B1ϕ^x. \frac{x}{1 - x - x^2} = \frac{A}{1 - \phi x} + \frac{B}{1 - \hat{\phi} x}.
Solving gives A=1/5A = 1 / \sqrt{5} and B=1/5B = -1 / \sqrt{5}. Expanding as geometric series,
G(x)=15n=0(ϕnϕ^n)xn, G(x) = \frac{1}{\sqrt{5}} \sum_{n=0}^{\infty} (\phi^{n} - \hat{\phi}^{n}) x^n,
so the coefficient is Fn=ϕnϕ^n5F_n = \frac{\phi^n - \hat{\phi}^n}{\sqrt{5}}, which is Binet's formula.[48][49] An extension to exponential generating functions replaces powers with factorials in the coefficients: E(x)=n=0Fnxnn!E(x) = \sum_{n=0}^{\infty} F_n \frac{x^n}{n!}. Using Binet's formula, this simplifies to
E(x)=15(eϕxeϕ^x), E(x) = \frac{1}{\sqrt{5}} \left( e^{\phi x} - e^{\hat{\phi} x} \right),
which highlights connections to exponential growth but is less commonly used for basic properties than the ordinary form.[50]

Number Theory Properties

Divisibility rules

A key divisibility property of the Fibonacci sequence states that for positive integers mm and nn, gcd(Fm,Fn)=Fgcd(m,n)\gcd(F_m, F_n) = F_{\gcd(m,n)}.[51] This identity holds because the Fibonacci numbers form a strong divisibility sequence, where the GCD of terms depends solely on the GCD of their positions.[52] A direct consequence is that FmF_m divides FnF_n if and only if mm divides nn.[53] Thus, the positive divisors of FnF_n among the Fibonacci numbers are precisely FkF_k for each positive divisor kk of nn. For instance, F3=2F_3 = 2 divides F6=8F_6 = 8 because 3 divides 6, but F3=2F_3 = 2 does not divide F5=5F_5 = 5 since 3 does not divide 5.[53] The smallest positive integer kk such that FkF_k divides FnF_n is k=1k=1, as F1=1F_1 = 1 divides every integer. This notion connects to the broader study of divisibility in the sequence, particularly the rank of appearance (or Fibonacci entry point) of an integer dd, defined as the smallest positive integer kk such that dd divides FkF_k.[54]

Fibonacci primes

A Fibonacci prime is a Fibonacci number FnF_n that is also a prime number. The sequence begins with the small primes F3=2F_3 = 2, F4=3F_4 = 3, F5=5F_5 = 5, F7=13F_7 = 13, F11=89F_{11} = 89, F13=233F_{13} = 233, F17=1597F_{17} = 1597, F23=28657F_{23} = 28657, and F29=514229F_{29} = 514229.[55] It is a known property that FnF_n can only be prime if nn is prime, except for the case n=4n=4, since composite indices greater than 4 yield composite Fibonacci numbers.[55] As of November 2025, there are 37 confirmed Fibonacci primes, the largest being F201107F_{201107} with 42,029 digits, verified via ECPP in September 2023.[56] Larger candidates include probable primes such as F104911F_{104911} (discovered in 2015, 21,925 digits). Ongoing computational efforts have identified 20 additional probable primes up to index 11,964,299, the most recent being F11964299F_{11964299} (approximately 2,500,000 digits), discovered on November 2, 2025, though full proofs for these remain pending due to their immense size.[56] It is conjectured that infinitely many Fibonacci primes exist, supported by probabilistic heuristics indicating that the expected number diverges like 1/n\sum 1/n, akin to the density of primes themselves, though this remains unproven.[55] Conversely, some analyses suggest the possibility of only finitely many, but no definitive resolution has emerged. Factoring large Fibonacci numbers poses significant challenges, as their exponential growth (approximately ϕn/5\phi^n / \sqrt{5}, where ϕ\phi is the golden ratio) results in numbers with millions of digits, requiring advanced algorithms like the elliptic curve method or general number field sieve; moreover, even when nn is prime, FnF_n may have algebraic factors detectable via divisibility properties of the sequence.[57] These difficulties have limited the verification of primality beyond modest indices relative to the sequence's rapid expansion. Historical discoveries of Fibonacci primes accelerated post-2000 through distributed computing projects, with notable finds including F2971F_{2971} (1993, but confirmed later), F4723F_{4723} (2001), and more recent ones like F104911F_{104911} by Bouk de Water in 2015 and F201107F_{201107} via collaborative efforts in 2023, highlighting the role of high-performance computing in extending the known list.[57]

Pisano periods

The Pisano period, denoted π(n)\pi(n), for a positive integer nn, is the length of the repeating cycle in the sequence of Fibonacci numbers taken modulo nn. This periodicity arises because the Fibonacci recurrence is a linear relation, and there are only finitely many possible pairs of consecutive terms modulo nn, ensuring the sequence must eventually repeat. Specifically, π(n)\pi(n) is the smallest positive integer kk such that Fk0(modn)F_k \equiv 0 \pmod{n} and Fk+11(modn)F_{k+1} \equiv 1 \pmod{n}, marking the return to the initial conditions (F0,F1)=(0,1)(F_0, F_1) = (0, 1).[58][59] For example, modulo 2, the sequence begins 0,1,1,0,1,1,0, 1, 1, 0, 1, 1, \dots and repeats every 3 terms, so π(2)=3\pi(2) = 3. Modulo 5, the sequence is 0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,0, 1, 1, 2, 3, 0, 3, 3, 1, 4, 0, 4, 4, 3, 2, 0, 2, 2, 4, 1, 0, 1, \dots with period π(5)=20\pi(5) = 20. These periods, also called entry points z(n)z(n) in this context, provide the minimal k>0k > 0 where the sequence resets to (0,1)(0, 1) modulo nn.[58] Several properties govern Pisano periods. If nn divides mm, then π(n)\pi(n) divides π(m)\pi(m); for instance, since 17 divides 51, π(17)=36\pi(17) = 36 divides π(51)=72\pi(51) = 72. Additionally, π(n)\pi(n) is even for all n>2n > 2. Known bounds include π(n)6n\pi(n) \leq 6n, with equality holding for n=2×5kn = 2 \times 5^k where k0k \geq 0. These properties stem from the structure of the Fibonacci sequence in the ring of integers modulo nn and aid in understanding modular reductions of Fibonacci numbers.[58][60] Pisano periods enable efficient cycle detection in algorithms for computing large Fibonacci numbers modulo nn, avoiding exhaustive recurrence calculations by leveraging the repetition. In cryptography, they support methods like integer factorization, where the period of the product of two primes can be derived to aid in breaking down composite numbers.[58]

Generalizations

Lucas sequences

Lucas sequences generalize the Fibonacci sequence and were introduced by the French mathematician Édouard Lucas in 1876 as a family of integer sequences defined by linear recurrences with integer parameters PP and QQ.[61] The primary sequence, denoted Un(P,Q)U_n(P, Q), satisfies the recurrence relation
Un=PUn1QUn2 U_n = P U_{n-1} - Q U_{n-2}
for n2n \geq 2, with initial conditions U0=0U_0 = 0 and U1=1U_1 = 1.[62] This formulation encompasses the Fibonacci sequence as the special case Un(1,1)U_n(1, -1), where the recurrence simplifies to Un=Un1+Un2U_n = U_{n-1} + U_{n-2}, yielding the familiar terms 0, 1, 1, 2, 3, 5, ... .[62] For integer values of PP and QQ with discriminant D=P24Q>0D = P^2 - 4Q > 0, the sequences produce integers analogous to Fibonacci numbers.[63] Each Lucas sequence Un(P,Q)U_n(P, Q) has a companion sequence Vn(P,Q)V_n(P, Q), defined by the same recurrence
Vn=PVn1QVn2 V_n = P V_{n-1} - Q V_{n-2}
but with initial conditions V0=2V_0 = 2 and V1=PV_1 = P.[62] In the Fibonacci case (P=1P=1, Q=1Q=-1), Vn(1,1)V_n(1, -1) corresponds to the Lucas numbers, starting with 2, 1, 3, 4, 7, 11, ....[63] These companion sequences often appear in identities alongside UnU_n, facilitating proofs and extensions of properties. Many identities for Lucas sequences mirror those of the Fibonacci sequence, preserving structural similarities while incorporating the parameters PP and QQ. For instance, the Cassini identity generalizes to Un+1Un1Un2=Qn1U_{n+1} U_{n-1} - U_n^2 = -Q^{n-1} for the UnU_n sequence, and Vn+1Vn1Vn2=DQn1V_{n+1} V_{n-1} - V_n^2 = D Q^{n-1} for VnV_n, both reducing to the standard Fibonacci Cassini identity Fn+1Fn1Fn2=(1)nF_{n+1} F_{n-1} - F_n^2 = (-1)^n and the corresponding Lucas identity when P=1P=1, Q=1Q=-1.[62] Other common identities include doubling formulas like U2n=UnVnU_{2n} = U_n V_n, which parallel Fibonacci even-index relations.[63] Lucas sequences admit Binet-like closed-form expressions using the roots of the characteristic equation x2Px+Q=0x^2 - Px + Q = 0.[63] Prominent examples include the Pell numbers, given by Un(2,1)U_n(2, -1), which follow the recurrence Un=2Un1+Un2U_n = 2U_{n-1} + U_{n-2} and generate the sequence 0, 1, 2, 5, 12, 29, ...; their companions Vn(2,1)V_n(2, -1) are the Pell-Lucas numbers.[62] These sequences share divisibility properties and growth rates similar to Fibonacci numbers, with applications in number theory arising from their parametric flexibility.[63]

Multidimensional variants

Multidimensional variants of the Fibonacci sequence extend the classical linear recurrence to higher-dimensional structures, such as graphs and lattices, where the counts of certain configurations follow generalized Fibonacci-like patterns. In graph theory, the number of perfect matchings (or domino tilings) in a 2×n grid graph equals the (n+1)th Fibonacci number, providing a combinatorial interpretation that generalizes to higher dimensions. For instance, tilings of a honeycomb strip—a two-dimensional lattice structure—yield sequences satisfying higher-order recurrences akin to tribonacci numbers, with closed-form formulas derived from transfer matrix methods. Similarly, hyperbolic tilings of the plane using triangles or heptagons with specific degrees produce Fibonacci numbers as the count of such tilings, illustrating spatial extensions beyond one-dimensional sequences. The tribonacci sequence represents a direct higher-order generalization, defined by the recurrence $ T_n = T_{n-1} + T_{n-2} + T_{n-3} $ for $ n \geq 4 $, with initial conditions $ T_0 = 0 $, $ T_1 = 0 $, $ T_2 = 1 $, yielding the sequence 0, 0, 1, 1, 2, 4, 7, 13, .... This sequence arises in combinatorial problems, such as the number of ways to tile a 1×n board with monomers and trimers, and exhibits properties like singular factorization of its infinite word, where singular words are defined based on the recurrence. Further generalizations to k-bonacci sequences, or k-generalized Fibonacci numbers, extend this to $ F_n^{(k)} = F_{n-1}^{(k)} + \cdots + F_{n-k}^{(k)} $ for $ n > k $, with initial conditions $ F_1^{(k)} = \cdots = F_{k-1}^{(k)} = 0 $, $ F_k^{(k)} = 1 $. These sequences admit a Binet-style closed form involving the roots of the characteristic polynomial $ x^k - x^{k-1} - \cdots - 1 = 0 $, and they appear in applications like repdigit representations and summation identities. Vector forms of Fibonacci recurrences emerge in the study of lattice paths, where multidimensional paths on grids satisfy vector-valued recurrences analogous to the scalar Fibonacci case. For example, in two-dimensional lattices, the number of compound paths—compositions of steps avoiding certain patterns—follows distributions tied to Zeckendorf representations using Fibonacci numbers, with central limit theorems establishing Gaussian limiting behavior for path lengths. More broadly, projections from higher-dimensional integer lattices onto one dimension can generate quasiperiodic Fibonacci chains, as seen in quasicrystal models where the structure encodes multidimensional periodicity. These vector recurrences count lattice paths in d-dimensional spaces, generalizing the classical one-dimensional case to multivariate generating functions that satisfy Fibonacci-like relations. Recent developments in the 2020s have explored quantum and modular variants of these multidimensional extensions. In quantum computing, laser pulses patterned after the Fibonacci sequence have been used to induce a novel phase of matter in atomic systems, effectively creating a structure that behaves as if it has two time dimensions, with quasiperiodic properties extending classical multidimensional tilings to quantum settings.[64] On the modular side, investigations into randomly initialized recurrences modulo m reveal new periodicities for Fibonacci-like sequences, generalizing Pisano periods to higher-dimensional or k-step variants and uncovering symmetries in their modular behavior.[65]

Applications

Pure mathematics

The golden ratio ϕ=1+52\phi = \frac{1 + \sqrt{5}}{2} admits the infinite continued fraction expansion [ 1;1 ]=1+11+11+11+[\ 1; \overline{1}\ ] = 1 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{1 + \cdots}}}, which is the simplest possible periodic continued fraction for an irrational number. The convergents to this expansion are precisely the ratios Fn+1Fn\frac{F_{n+1}}{F_n}, where FnF_n denotes the nnth Fibonacci number, and these ratios satisfy limnFn+1Fn=ϕ\lim_{n \to \infty} \frac{F_{n+1}}{F_n} = \phi. This connection highlights the role of Fibonacci numbers in approximating irrational numbers via continued fractions, with the error bound ϕFn+1/Fn<1/(FnFn+1)|\phi - F_{n+1}/F_n| < 1/(F_n F_{n+1}) establishing their optimality among rational approximations.[66][67] Fibonacci numbers appear in the study of elliptic curves through identities linking reciprocal sums and curve parameters. For instance, the elliptic curve y2=x3+x22x1y^2 = x^3 + x^2 - 2x - 1 yields an identity expressing the sum n=1(1)n+1F2n\sum_{n=1}^\infty \frac{(-1)^{n+1}}{F_{2n}} in terms of the curve's LL-function at s=2s=2, revealing algebraic dependencies between Fibonacci reciprocals and elliptic curve invariants. Similarly, LL-functions associated with non-CM elliptic curves with non-trivial 2-torsion intersect with Fibonacci numbers, where the set of nn such that the ana_n coefficient is Fibonacci has asymptotic density zero. These links extend to modular forms, where the Fibonacci zeta function ζF(s)=n=1Fns\zeta_F(s) = \sum_{n=1}^\infty F_n^{-s} relates to modular forms via criteria determining if a number is Fibonacci, and Fibonacci-Eisenstein series generate semi-modular forms using Fibonacci symmetries instead of partition functions.[68][69][70][71] In partition theory, Fibonacci numbers enumerate restricted integer partitions, such as those into parts where no part repeats more than once and consecutive parts differ by at least 2, with the generating function tied to Fibonacci polynomials. q-analogues of Fibonacci numbers arise in set partition statistics over pattern-avoiding partitions, where the q-Fibonacci numbers qFn(q)qF_n(q) count partitions avoiding certain 3-2-1 patterns, satisfying q-analogues of classical Fibonacci identities like qFn+1(q)=qFn(q)+qn+1Fn1(q)qF_{n+1}(q) = qF_n(q) + q^{n+1} F_{n-1}(q). These q-Fibonacci polynomials also connect to the Rogers-Ramanujan identities, providing finite versions through compositions and restricted growth functions in partition generating functions.[72][73][74] The Zeckendorf representation uniquely expresses every positive integer as a sum of non-consecutive Fibonacci numbers, leading to the sum of Zeckendorf digits as an additive arithmetic function. Under the Erdős-Wintner theorem, the distribution of this digit sum follows a Gaussian law with mean and variance asymptotic to clognc \log n for some constant c>0c > 0, but effective quantitative bounds on the Kolmogorov distance to normality remain an active research area, with open questions on the precise error terms in uniform estimates for the densities of fixed digit sums. A related unsolved problem concerns the exact asymptotic density of integers whose Zeckendorf digit sum equals a fixed value kk, known to be zero but with unresolved finer rates of decay in the effective Erdős-Wintner framework for Zeckendorf expansions.[75][76]

Computer science

The Fibonacci sequence appears prominently in computer science for efficient computation algorithms and data structures. A naive recursive approach to compute the nnth Fibonacci number, defined by F(n)=F(n1)+F(n2)F(n) = F(n-1) + F(n-2) with base cases F(0)=0F(0)=0 and F(1)=1F(1)=1, leads to exponential time complexity of O(ϕn)O(\phi^n), where ϕ1.618\phi \approx 1.618 is the golden ratio, due to redundant subproblem calculations.[33] This inefficiency arises from the branching recursion tree, where each call spawns two subcalls, resulting in approximately ϕn\phi^n operations.[33] Dynamic programming addresses this by memoizing intermediate results, typically using an array to store F(0)F(0) to F(n)F(n), reducing the time complexity to O(n)O(n) with O(n)O(n) space, or optimized to O(1)O(1) space via iterative computation from the bottom up.[77] This bottom-up method avoids recursion altogether, computing each value once in linear time.[77] For even faster computation, matrix exponentiation represents the recurrence as a matrix multiplication: the vector (F(n+1)F(n))=(1110)n(10)\begin{pmatrix} F(n+1) \\ F(n) \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n \begin{pmatrix} 1 \\ 0 \end{pmatrix}, allowing computation in O(logn)O(\log n) time via exponentiation by squaring.[77] This approach is particularly useful for large nn, as it leverages efficient matrix powering algorithms.[77] Pisano periods, the cycles in the Fibonacci sequence modulo mm, enable optimizations for modular computations by precomputing the period length, avoiding full sequence generation.[78] In data structures, Fibonacci heaps exploit Fibonacci numbers to achieve superior amortized performance for priority queue operations. Introduced by Fredman and Tarjan, a Fibonacci heap supports insert, decrease-key, and union in amortized O(1)O(1) time, with extract-min in amortized O(logn)O(\log n), by maintaining a collection of heap-ordered trees linked in a root list, where the degree of trees bounds the number of children using Fibonacci properties to ensure lazy merging.[79] The "Fibonacci" name derives from the analysis showing that a node with degree dd has at least Fd+2F_{d+2} descendants after consolidation, preventing excessive merging costs.[79] These heaps improve the time complexity of algorithms like Dijkstra's shortest path from O((V+E)logV)O((V+E) \log V) to O(E+VlogV)O(E + V \log V).[79] The sequence also informs coding techniques in algorithms. Fibonacci search, a divide-and-conquer method for sorted arrays, divides the search interval using Fibonacci numbers instead of halves, eliminating division operations and achieving O(logn)O(\log n) time similar to binary search but with potentially fewer comparisons in non-uniform distributions.[80] For instance, to search for a key in a sorted array of size nn, the algorithm selects split points at indices Fk1F_{k-1} and Fk2F_{k-2} for the largest Fkn+1F_k \leq n+1, recursing on the appropriate subarray.[80] In knapsack problems, the dynamic programming formulation for the unbounded variant mirrors the Fibonacci recurrence, where the optimal value dp[w]dp[w] for capacity ww satisfies dp[w]=max(dp[w],dp[wweighti]+valuei)dp[w] = \max(dp[w], dp[w - weight_i] + value_i) over items, solvable in O(nW)O(nW) time, and special cases with Fibonacci-weighted items yield exact solutions via non-adjacent selections akin to Zeckendorf representations.[81]

Nature and biology

The Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, ...) and its related golden ratio (approximately 1.618) appear in various natural patterns, such as the spiral arrangement of seeds in sunflowers, pinecones, leaf phyllotaxis, and certain shells. These patterns arise from efficient biological growth and packing mechanisms, not as evidence of a simulated reality or underlying "code" for oneness/unity. Claims linking the Fibonacci sequence to the universe being a simulation, a programmed reality, or metaphysical oneness/unity are speculative, philosophical, or pseudoscientific and lack empirical support from mainstream science. The Fibonacci sequence manifests in phyllotaxis, the spatial arrangement of leaves, branches, and florets on plants, where organs often emerge at angles approximating 137.5°, known as the golden angle and roughly equal to 360° divided by the square of the golden ratio.[82] This pattern optimizes packing and sunlight exposure, resulting in visible spirals whose counts are typically consecutive Fibonacci numbers, such as 34 and 55 in sunflower heads.[82] In sunflowers (Helianthus annuus), these parastichies form interlocking spirals that efficiently fill the seed head.[83] Similar Fibonacci spirals appear in the bracts of pinecones and the scales of pineapples, where overlapping structures create parastichy patterns with Fibonacci numbers, like 5 and 8 spirals in one direction and 8 and 13 in the other.[84] These arrangements in conifers and bromeliads promote efficient seed dispersal and structural integrity.[84] Over 90% of observed plant spirals follow Fibonacci patterns, though ancient fossils reveal non-Fibonacci variants in early land plants.[84] The original Fibonacci sequence arose from a rabbit population model, where each mature pair produces a new pair monthly after a one-month maturation period, leading to exponential growth without mortality.[85] However, this idealized scenario overlooks real-world limitations like death rates and resource constraints, making it unrealistic for sustained biological populations.[85] Extensions incorporate survival and birth parameters into matrix models, allowing analysis of steady-state or declining dynamics in ecological contexts, such as bacterial or insect populations.[85] In animal morphology, logarithmic spirals in shells and horns approximate Fibonacci growth, enabling proportional expansion while maintaining shape.[86] The nautilus shell (Nautilus pompilius) exemplifies this with chambers forming a logarithmic spiral tied to the golden ratio, facilitating buoyancy control as the organism grows.[86] Similarly, horns in species like goats and rams (Capra spp.) follow logarithmic spirals that support incremental keratin deposition without altering curvature.[87] These patterns link to the golden ratio, optimizing structural efficiency in biological forms.[88]

Other fields

The Fibonacci sequence and its associated golden ratio have influenced artistic compositions and architectural designs, where proportions approximating φ ≈ 1.618 are employed for aesthetic harmony. In art, Leonardo da Vinci incorporated the golden spiral, derived from successive Fibonacci rectangles, in works such as the Mona Lisa to guide focal points and balance.[89] Similarly, modern interpretations, including tributes to Piet Mondrian's geometric abstractions, adapt Fibonacci spirals into grid-based patterns to evoke rhythmic progression and visual appeal.[90] In architecture, the Parthenon's facade dimensions and column spacings reflect golden ratio proportions, a design principle attributed to the ancient Greek architect Phidias.[89] The Great Pyramid of Giza also exhibits this ratio in its base-to-height measurements, suggesting intentional use for structural and visual stability.[89] In finance, Fibonacci retracements serve as a tool in technical analysis to predict potential price reversals by identifying support and resistance levels based on key ratios from the sequence. Traders plot these levels between significant highs and lows on charts, with the 61.8% retracement (derived from ratios like 21/34) indicating a deep correction often preceding trend resumption, and the 38.2% level (e.g., 55/144) signaling shallower pullbacks.[91] The 23.6% level (e.g., 8/34) marks minor retracements, while the non-Fibonacci 50% level is included for its observed market relevance.[91] Empirical studies on U.S. energy stocks have tested these levels' predictive power, finding mixed profitability depending on market conditions and combined indicators.[92] The Fibonacci sequence appears in musical structures, particularly in rhythm and scale designs that leverage its additive properties for natural progression. Composers like Béla Bartók used Fibonacci numbers to craft rhythms, as in Music for Strings, Percussion, and Celeste, where a percussion pattern follows 1, 1, 2, 3, 5, 8, 5, 3, 2, 1, 1 beats to create symmetrical tension and release.[93] Karlheinz Stockhausen's Klavierstück IX employs time signatures and note groupings based on Fibonacci intervals, such as 13/8 bars and eighth-note counts like 1, 3, 6, 11, culminating in a coda of 87 notes.[93] In scales, the octave's 13 keys and major scale's 8 notes align with Fibonacci ratios, while the white-to-black key proportion (8:5) approximates the golden ratio, influencing keyboard design and harmonic intervals in works by Chopin.[93] Post-2020 applications include AI-driven pattern recognition, where shape-dependent Fibonacci-p patterns extract textural features from medical images for disease detection. In a 2022 study, these patterns, weighted by Fibonacci numbers and aligned to image shapes, achieved 98.44% accuracy in classifying COVID-19 versus viral pneumonia on chest radiographs using machine learning, outperforming some deep learning methods on small datasets.[94] More recent advancements, as of 2024, incorporate Fibonacci sequences in machine learning for feature selection and network architectures; for example, the FiboNeXt model uses Fibonacci layering for Alzheimer's disease detection from MRI scans.[95] In blockchain and cybersecurity, additive Fibonacci generators produce pseudorandom sequences for encryption and consensus protocols, with optimized structures ensuring long periods and high entropy. A 2022 analysis combined classical and modified Fibonacci generators to enhance randomness in cryptographic applications, reducing predictability in distributed systems like blockchains.[96] By 2025, new cryptographic schemes utilize generalized Fibonacci sequences for blind signatures and self-invertible matrix-based encryption.[97][98]

References

User Avatar
No comments yet.