Sequences & Series

The Fibonacci Sequence: Formula, Patterns and Worked Examples

The Fibonacci sequence starts with 00 and 11, and every later term is the sum of the two terms before it: Fn=Fn−1+Fn−2F_n = F_{n-1} + F_{n-2}. The first terms are 0,1,1,2,3,5,8,13,21,34,55,89,144,…0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, \dots

Fn=Fn−1+Fn−2,F0=0, F1=1F_n = F_{n-1} + F_{n-2}, \quad F_0 = 0,\ F_1 = 1

That one rule has a direct formula behind it (Binet’s formula), a tight link to the golden ratio, tidy sum identities and a few traps with indexing. All of them are covered below, with worked examples you can check by hand.

How does the Fibonacci sequence work?

Row of first ten Fibonacci numbers showing the 10th term 34 is F9 not F10
Subscripts start at 0 but term numbers start at 1, so 34 is the 10th term yet only F₉.

The rule leans on two earlier terms, so it needs two starting values (seeds). The standard choice is F0=0F_0 = 0 and F1=1F_1 = 1. After that, nothing is left to decide: each term is forced.

nn 0 1 2 3 4 5 6 7 8 9 10
FnF_n 0 1 1 2 3 5 8 13 21 34 55

A rule that builds each term from earlier ones is a recursive formula. The cost of recursion is that reaching F50F_{50} by the rule alone means computing every term before it. That is why a direct formula, covered below, is worth having.

Term number or subscript?

If a list begins 0,1,1,2,…0, 1, 1, 2, \dots, then 3434 is the 10th term but F9F_9. If it begins 1,1,2,…1, 1, 2, \dots, the 10th term is 5555. Check the first entry before counting.

Many lost points come from that off-by-one gap. Subscripts name the position counted from F0F_0, while “the kkth term” counts from 1. Always write out the first few terms of the list you were given and match them to the standard list.

Quick check

With the standard indexing F0=0F_0 = 0, F1=1F_1 = 1, which index nn gives Fn=21F_n = 21?

Is the Fibonacci sequence arithmetic or geometric?

Neither. An arithmetic sequence has a constant difference. Here the differences of 1,1,2,3,5,81, 1, 2, 3, 5, 8 are 0,1,1,2,30, 1, 1, 2, 3, which is the Fibonacci sequence itself, one step behind. A geometric sequence has a constant ratio, but the ratios here are 1,2,1.5,1.667,1.6,…1, 2, 1.5, 1.667, 1.6, \dots, which wobble.

This gives a quick classification test. A sequence is arithmetic if an−an−1a_n - a_{n-1} is constant, geometric if an/an−1a_n / a_{n-1} is constant, and Fibonacci-type if an−an−1−an−2=0a_n - a_{n-1} - a_{n-2} = 0. The Fibonacci rule is a second-order recurrence, meaning it looks back two steps instead of one.

The next section shows that Fibonacci numbers are still related to geometric sequences. Each Fibonacci number is built from two geometric sequences added together.

What is the formula for the nth Fibonacci number?

Binet’s formula gives FnF_n directly, with no earlier terms needed:

Fn=φn−ψn5,φ=1+52≈1.618034,ψ=1−52≈−0.618034F_n = \frac{\varphi^n - \psi^n}{\sqrt{5}}, \qquad \varphi = \frac{1+\sqrt5}{2} \approx 1.618034, \quad \psi = \frac{1-\sqrt5}{2} \approx -0.618034

The origin is one clean idea: try a geometric solution rnr^n and see which ratios rr satisfy the rule.

  1. Substitute rn=rn−1+rn−2r^n = r^{n-1} + r^{n-2} and divide by rn−2r^{n-2} to get r2=r+1r^2 = r + 1.
  2. Rewrite as r2−r−1=0r^2 - r - 1 = 0. The quadratic formula gives r=1±52r = \frac{1 \pm \sqrt5}{2}, which are φ\varphi and ψ\psi.
  3. Any combination Aφn+BψnA\varphi^n + B\psi^n obeys the rule. Fit the seeds: F0=0F_0 = 0 gives A+B=0A + B = 0, and F1=1F_1 = 1 gives Aφ+Bψ=1A\varphi + B\psi = 1.
  4. Since φ−ψ=5\varphi - \psi = \sqrt5, solving gives A=15A = \frac{1}{\sqrt5} and B=−15B = -\frac{1}{\sqrt5}.

Worked example 1. Find F10F_{10} with Binet’s formula. Because ∣ψ∣<1|\psi| < 1, the term ψ10/5\psi^{10}/\sqrt5 is tiny (about 0.00360.0036), so F10F_{10} is φ10/5\varphi^{10}/\sqrt5 rounded to the nearest integer. Here φ10≈122.9919\varphi^{10} \approx 122.9919, so

F10≈122.99192.236068≈55.0036  ⇒  F10=55.F_{10} \approx \frac{122.9919}{2.236068} \approx 55.0036 \;\Rightarrow\; F_{10} = 55.

This matches the table. The rounding shortcut works for every n≥0n \ge 0. The trap is entering φ\varphi as a rounded 1.6181.618 for large nn, which damages the digits. Use the stored value from your calculator.

Why does the Fibonacci sequence approach the golden ratio?

Shrinking intervals between consecutive Fibonacci ratios all containing the golden ratio 1.618 on a number line
Every pair of consecutive ratios of Fibonacci numbers brackets φ ≈ 1.618, and the bracket narrows each step.

Take ratios of neighbours: 85=1.6\frac{8}{5} = 1.6, 138=1.625\frac{13}{8} = 1.625, 2113≈1.6154\frac{21}{13} \approx 1.6154, 3421≈1.6190\frac{34}{21} \approx 1.6190, 5534≈1.6176\frac{55}{34} \approx 1.6176. They close in on φ≈1.6180\varphi \approx 1.6180, alternating above and below it. That alternation gives a quick mental check: the true limit always lies between any two consecutive ratios.

The reason takes two lines. If the ratio settles to a value rr, divide the rule Fn+1=Fn+Fn−1F_{n+1} = F_n + F_{n-1} by FnF_n:

Fn+1Fn=1+Fn−1Fn  ⇒  r=1+1r  ⇒  r2=r+1.\frac{F_{n+1}}{F_n} = 1 + \frac{F_{n-1}}{F_n} \;\Rightarrow\; r = 1 + \frac{1}{r} \;\Rightarrow\; r^2 = r + 1.

That is the same quadratic as before, and its positive root is φ\varphi. Binet’s formula confirms it from the other side: ψn\psi^n shrinks toward 00, so Fn≈φn/5F_n \approx \varphi^n/\sqrt5, which is a geometric sequence with ratio φ\varphi.

The 1/89 curiosity

Applying the infinite geometric series formula to each half of Binet's formula gives ∑n=0∞Fn10n=1089\sum_{n=0}^{\infty} \frac{F_n}{10^n} = \frac{10}{89}. That is why 189=0.01123595…\frac{1}{89} = 0.01123595\ldots begins with 1,1,2,3,51, 1, 2, 3, 5.

Any two starting numbers show the same behaviour, not only 00 and 11. The ratios of a Fibonacci-type sequence always head for φ\varphi, because the limit depends only on the rule.

Quick check

Given F20=6765F_{20} = 6765, use the golden ratio φ≈1.618\varphi \approx 1.618 to estimate F21F_{21} to the nearest whole number.

Fibonacci series sums and Cassini’s identity

The sequence is the list. The series is a sum of its terms, which you can write with sigma notation. Unlike the arithmetic series formula, no pairing trick from Gauss applies here, but there is a better one:

∑k=1nFk=Fn+2−1.\sum_{k=1}^{n} F_k = F_{n+2} - 1.

It works because each term can be rewritten as Fk=Fk+2−Fk+1F_k = F_{k+2} - F_{k+1}, so the sum collapses (telescopes) and only Fn+2F_{n+2} and the leftover −F2=−1-F_2 = -1 survive.

Worked example 2. Add the first ten terms from F1F_1. The identity gives F12−1=144−1=143F_{12} - 1 = 144 - 1 = 143. Direct check: 1+1+2+3+5+8+13+21+34+55=1431 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 = 143. A sum of squares has a similarly neat result: ∑k=1nFk2=FnFn+1\sum_{k=1}^{n} F_k^2 = F_n F_{n+1}, and for n=5n = 5 that is 1+1+4+9+25=40=5⋅81 + 1 + 4 + 9 + 25 = 40 = 5 \cdot 8.

Cassini’s identity is the one to remember for proofs and checks:

Fn−1Fn+1−Fn2=(−1)n.F_{n-1}F_{n+1} - F_n^2 = (-1)^n.

With n=6n = 6: 5⋅13−82=65−64=1=(−1)65 \cdot 13 - 8^2 = 65 - 64 = 1 = (-1)^6. It comes from matrices. The power (1110)n\begin{pmatrix}1&1\\1&0\end{pmatrix}^n equals (Fn+1FnFnFn−1)\begin{pmatrix}F_{n+1}&F_n\\F_n&F_{n-1}\end{pmatrix}, and taking the 2×2 determinant of both sides gives (−1)n(-1)^n, because the base matrix has determinant −1-1.

Can the Fibonacci sequence run backwards or start elsewhere?

Yes to both. Rearranging the rule gives Fn−2=Fn−Fn−1F_{n-2} = F_n - F_{n-1}, which lets you walk left of F0F_0:

  • F−1=1−0=1F_{-1} = 1 - 0 = 1
  • F−2=0−1=−1F_{-2} = 0 - 1 = -1
  • F−3=1−(−1)=2F_{-3} = 1 - (-1) = 2
  • F−4=−1−2=−3F_{-4} = -1 - 2 = -3

The pattern is F−n=(−1)n+1FnF_{-n} = (-1)^{n+1}F_n: the same magnitudes with alternating signs. Binet’s formula handles negative nn automatically, because φψ=−1\varphi\psi = -1.

Other seeds give other Fibonacci-type sequences. Starting at 2,12, 1 produces the Lucas numbers 2,1,3,4,7,11,…2, 1, 3, 4, 7, 11, \dots, which share the same recurrence and the same limit ratio.

Try this: Pick any two positive numbers, build ten terms with the Fibonacci rule, and divide the tenth term by the ninth. Starting with 3,43, 4 gives 199÷123≈1.618199 \div 123 \approx 1.618. Try your own seeds and see how close you get.

Worked example 3. A Fibonacci-type sequence has fourth term 1111 and sixth term 2929. Find the first six terms. The sixth term is the sum of the fourth and fifth, so t5=29−11=18t_5 = 29 - 11 = 18. Then t3=t5−t4=7t_3 = t_5 - t_4 = 7, t2=t4−t3=4t_2 = t_4 - t_3 = 4, and t1=t3−t2=3t_1 = t_3 - t_2 = 3. The sequence is 3,4,7,11,18,293, 4, 7, 11, 18, 29, and each term checks as the sum of the previous two.

Quick check

Extend the sequence backwards from F0=0F_0 = 0 and F1=1F_1 = 1 to find F−6F_{-6}.

Where does the Fibonacci sequence appear in real life?

The sequence was popularised in 1202 by Leonardo of Pisa (Fibonacci) in Liber Abaci, through an idealised rabbit-breeding puzzle. Real rabbits do not behave that neatly, but the puzzle shows how a recursive rule produces growth.

The strongest natural link is in plants. Sunflower heads and pine cones often show spirals counted in consecutive Fibonacci numbers, such as 3434 and 5555. Seeds are placed at the golden angle, 360∘φ2≈137.5∘\frac{360^\circ}{\varphi^2} \approx 137.5^\circ, an obtuse angle that packs seeds without leaving gaps. Claims that every spiral shell or face follows the sequence are overstated. The nautilus, for instance, is not a true golden spiral.

Two practical uses are worth knowing. First, converting units: since 11 mile is about 1.6091.609 km, which is close to φ\varphi, consecutive Fibonacci numbers convert well. 2121 miles is about 3434 km (the exact value is 33.833.8). Second, computing: naive recursive code for FnF_n makes roughly φn\varphi^n calls, which explains why it grows slow so fast, and Euclid’s algorithm takes its most steps on consecutive Fibonacci numbers.

How do you find which Fibonacci number passes a given size?

Use Binet’s approximation Fn≈φn/5F_n \approx \varphi^n/\sqrt5 and solve for nn with logarithms. Setting φn/5=N\varphi^n/\sqrt5 = N gives

n≈log⁡(N5)log⁡φ.n \approx \frac{\log(N\sqrt5)}{\log \varphi}.

The logarithm rules for products and powers make this straightforward: log⁡(N5)=log⁡N+12log⁡5\log(N\sqrt5) = \log N + \tfrac12\log 5.

Worked example 4. Find the smallest nn with Fn>106F_n > 10^6. Use base-10 logarithms: log⁡(1065)=6+0.3495=6.3495\log(10^6 \sqrt5) = 6 + 0.3495 = 6.3495 and log⁡φ≈0.2090\log\varphi \approx 0.2090. Then n>6.34950.2090≈30.38n > \frac{6.3495}{0.2090} \approx 30.38, so n=31n = 31. Check: F30=832,040F_{30} = 832{,}040 is below one million, and F31=1,346,269F_{31} = 1{,}346{,}269 is above it.

The same idea gives a digit count. FnF_n has about 0.209n−0.350.209n - 0.35 digits, rounded up. For n=100n = 100 that is about 20.520.5, so F100F_{100} has 2121 digits. Since the formula is an approximation, always confirm the last step by computing the neighbouring terms, as above.

Practice problems

0 of 5 solved

  1. Starting with F0=0F_0 = 0 and F1=1F_1 = 1, find F12F_{12}.

  2. The sequence 4,7,11,18,…4, 7, 11, 18, \dots follows the Fibonacci rule. Find the next three terms.

  3. Use the sum identity ∑k=1nFk=Fn+2−1\sum_{k=1}^{n} F_k = F_{n+2} - 1 to find F1+F2+⋯+F15F_1 + F_2 + \dots + F_{15}.

  4. A Fibonacci-type sequence has fifth term 1919 and seventh term 5050. Find its first term.

  5. Use Cassini's identity Fn−1Fn+1−Fn2=(−1)nF_{n-1}F_{n+1} - F_n^2 = (-1)^n with n=10n = 10, F9=34F_9 = 34 and F11=89F_{11} = 89 to find F10F_{10} (positive).

Common questions

What is the formula for the Fibonacci sequence?

The recursive formula is Fn=Fn−1+Fn−2F_n = F_{n-1} + F_{n-2} with F0=0F_0 = 0 and F1=1F_1 = 1. A direct formula also exists, Binet's formula Fn=φn−ψn5F_n = \frac{\varphi^n - \psi^n}{\sqrt{5}}, where φ=1+52\varphi = \frac{1+\sqrt5}{2} and ψ=1−52\psi = \frac{1-\sqrt5}{2}.

Does the Fibonacci sequence start with 0 or 1?

Most modern sources start with F0=0F_0 = 0 and F1=1F_1 = 1, giving 0,1,1,2,3,…0, 1, 1, 2, 3, \dots. Some textbooks begin at 1,1,2,3,…1, 1, 2, 3, \dots, so always check how a problem labels its first term before counting positions.

Is the Fibonacci sequence arithmetic or geometric?

Neither. The differences between terms are not constant, and the ratios are not constant either. It is a second-order recursive sequence, though the ratios do settle toward the golden ratio.

What is the difference between a Fibonacci sequence and a Fibonacci series?

The sequence is the list of numbers 0,1,1,2,3,…0, 1, 1, 2, 3, \dots. The series is the sum of some or all of those terms, and the first nn terms starting from F1F_1 add up to Fn+2−1F_{n+2} - 1.

Why is the Fibonacci sequence connected to the golden ratio?

The ratio of consecutive terms Fn+1/FnF_{n+1}/F_n must satisfy r=1+1rr = 1 + \frac{1}{r} if it settles down, and that equation simplifies to r2=r+1r^2 = r + 1. Its positive solution is the golden ratio φ≈1.618\varphi \approx 1.618.

Can Fibonacci numbers be negative?

Yes, if the sequence is extended backwards. The rule F−n=(−1)n+1FnF_{-n} = (-1)^{n+1}F_n gives F−1=1F_{-1} = 1, F−2=−1F_{-2} = -1, F−3=2F_{-3} = 2, and so on, alternating in sign.

Up next