Famous sequences
The Fibonacci sequence explained
5 min read · Updated 19 September 2026
Start with 0 and 1, and make every new term the sum of the two before it. That single rule produces the Fibonacci sequence, probably the most famous list of numbers in mathematics. It connects medieval arithmetic, Indian poetry, the golden ratio, the way seeds pack in a sunflower head and a hidden 60-step cycle in the last digits.
The rule and the first terms
F(0) = 0, F(1) = 1, F(n) = F(n − 1) + F(n − 2)
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, …
Like Kaprekar’s routine, the sequence is produced by repeating one simple step. The difference is that Kaprekar’s routine works on a finite set of four-digit numbers and must settle down, while the Fibonacci numbers grow without limit.
Where the sequence comes from
The name comes from Leonardo of Pisa, later called Fibonacci, whose 1202 book Liber Abaci helped bring Hindu–Arabic numerals to Europe. One exercise in the book asks how many pairs of rabbits there will be after a year if every mature pair produces a new pair each month. The monthly totals follow the sequence.
The numbers were known much earlier in India. Scholars of Sanskrit poetry, including Virahanka and later Hemachandra, counted the ways to fill a line of verse with short and long syllables. The number of arrangements follows the same rule, because a line of length n ends either with a short syllable after a line of length n − 1 or with a long syllable after a line of length n − 2.
Ratios that approach the golden ratio
Divide each term by the one before it:
| Ratio | Value |
|---|---|
| 8 / 5 | 1.6 |
| 89 / 55 | 1.61818… |
| 10946 / 6765 | 1.6180339… |
The ratios approach φ = (1 + √5) / 2 ≈ 1.6180339887, the golden ratio. The approach alternates: one ratio is slightly too large, the next slightly too small. This is a consequence of Binet’s formula, which gives any Fibonacci number directly:
F(n) = (φⁿ − ψⁿ) / √5, where ψ = (1 − √5) / 2 ≈ −0.618
Because |ψ| is less than 1, the ψⁿ term shrinks quickly, and F(n) is simply φⁿ / √5 rounded to the nearest whole number. More on φ, including the popular myths about it, is in the golden ratio: facts and myths.
Surprising patterns
- Every third Fibonacci number is even: 0, 2, 8, 34, 144, … The pattern of odd and even repeats odd, odd, even.
- Cassini’s identity: F(n − 1) · F(n + 1) − F(n)² = (−1)ⁿ. For example 5 · 13 − 8² = 1 and 8 · 21 − 13² = −1.
- The sum of the first n terms is one less than a later term: 1 + 1 + 2 + 3 + 5 + 8 = 20 = 21 − 1.
- F(m) divides F(n) whenever m divides n. For example F(5) = 5 divides F(10) = 55.
The last digits repeat every 60 terms
Look only at the last digit of each Fibonacci number: 0, 1, 1, 2, 3, 5, 8, 3, 1, 4, 5, 9, 4, … Because each last digit depends only on the two previous last digits, and there are only 100 possible pairs, the pattern must eventually repeat. It does so after exactly 60 terms. This repeat length is called the Pisano period.
For other divisors the periods differ: modulo 2 the period is 3, modulo 3 it is 8, and modulo 5 it is 20. The argument is the same finite-state reasoning that guarantees Kaprekar’s routine must end in a cycle.
Every number is a sum of Fibonacci numbers
Zeckendorf’s theorem says every positive whole number can be written in exactly one way as a sum of Fibonacci numbers that are not neighbours in the sequence. Take the largest Fibonacci number that fits and repeat with the remainder:
100 = 89 + 8 + 3
64 = 55 + 8 + 1
A practical by-product: because consecutive Fibonacci ratios are close to 1.609, the number of kilometres in a mile, you can convert roughly by moving one step along the sequence. 5 miles ≈ 8 km, 8 miles ≈ 13 km and 13 miles ≈ 21 km.
Fibonacci in nature: what is true
In many plants the number of visible spirals in a sunflower head, pine cone or pineapple is a Fibonacci number, and neighbouring spiral families often come in consecutive pairs such as 34 and 55 or 55 and 89. The usual explanation is that new seeds or scales grow at a roughly constant angle of about 137.5°, the golden angle, which packs them efficiently. This produces Fibonacci spiral counts as a mathematical consequence.
It is not a universal law. Studies of large numbers of sunflowers have found many heads with non-Fibonacci counts, and many plants show no such pattern. Claims that Fibonacci numbers govern galaxies, hurricanes or human beauty are not supported by evidence. A similar caution applies to 6174 in nature.
Try it: write the Fibonacci numbers up to 144 and check which are divisible by 3. Can you predict the pattern? (Every fourth term.)