Math glossary

Fibonacci Sequence: Recurrence, Binet’s Formula, and Examples

Find Fibonacci numbers using the recurrence or Binet’s formula. Compare ratios, test patterns, and follow six worked examples.

TL;DR

The Fibonacci sequence starts 0,1,1,2,3,5,8,130,1,1,2,3,5,8,13. With F0=0F_0=0 and F1=1F_1=1, each later term equals the sum of the two previous terms. Ratios of consecutive positive terms approach the golden ratio.

Key Points

  • The recurrence is Fn=Fn−1+Fn−2F_n=F_{n-1}+F_{n-2} for n≥2n\ge2.
  • Check indexing because some lists start their display with F1=1F_1=1 instead of F0=0F_0=0.
  • Use repeated addition for exact moderate-index values.
  • Binet’s formula computes a term directly from its index in exact mathematics.
  • Fibonacci growth approaches a fixed ratio. The sequence itself does not have a constant ratio.

What is the Fibonacci sequence?

Start with F0=0F_0=0 and F1=1F_1=1. Each later term is the sum of the previous two:

Fn=Fn−1+Fn−2(n≥2).F_n=F_{n-1}+F_{n-2}\qquad(n\ge2).

The first 13 terms with those index labels are:

Index nn 0 1 2 3 4 5 6 7 8 9 10 11 12
Term FnF_n 0 1 1 2 3 5 8 13 21 34 55 89 144

Some presentations list the positive terms beginning at index 1. Under this convention the list starts 1,1,2,…1,1,2,\ldots and continues with the same FnF_n for n≥1n\ge1. Check whether a problem asks for an index or a display position. OEIS, Fibonacci Numbers A000045

Ratios of successive Fibonacci terms move above and below the golden ratio and get closer to it
The ratio varies early in the sequence. Both sides approach roughly 1.618 as the index grows.

How does Binet’s formula find a term directly?

A term of the form rnr^n satisfies the recurrence when r2=r+1r^2=r+1. The two roots of that equation are

φ=1+52,ψ=1−52.\varphi=\frac{1+\sqrt5}{2},\qquad \psi=\frac{1-\sqrt5}{2}.

The powers of each root satisfy the recurrence. Subtracting the two powers and matching the initial values gives Binet’s formula:

Fn=φn−ψn5.F_n=\frac{\varphi^n-\psi^n}{\sqrt5}.

To check the initial values, at n=0n=0 the numerator is zero. At n=1n=1 the numerator is φ−ψ=5\varphi-\psi=\sqrt5, giving 1. The initial values and recurrence determine all later terms. If you need exact integers, repeated addition avoids rounding from evaluating the irrational numbers in floating-point software. Wolfram MathWorld, Fibonacci Number

Why do Fibonacci ratios approach the golden ratio?

For positive successive terms, consider Fn+1/FnF_{n+1}/F_n. Binet’s formula gives a leading power of φ\varphi in each term. The fraction ψ/φ\psi/\varphi has magnitude less than 1, so the contribution of that factor shrinks as the power grows. The ratio approaches φ≈1.618034\varphi\approx1.618034.

For example, 21/13≈1.615421/13\approx1.6154, and 34/21≈1.619034/21\approx1.6190. The starting ratios differ. A geometric sequence would have the same ratio between every adjacent pair. OEIS Wiki, Fibonacci Numbers: Limit of Consecutive Quotients

Where do Fibonacci numbers come up outside a sequence exercise?

Tiling. Count how many ways you can cover a strip of length nn using length-1 and length-2 tiles. The final tile is length 1 or 2. Removing that tile reduces the problem to a strip of length n−1n-1 or n−2n-2. With one empty arrangement and one arrangement of length 1, the count is Fn+1F_{n+1}. This makes the recurrence a consequence of two disjoint cases, as in permutations and combinations.

Plants. Some spiral arrangements in plants show counts that are consecutive Fibonacci numbers. A description of a given plant requires counting what is actually present. Fibonacci counts and golden-ratio approximations are patterns to compare with observations. Wolfram MathWorld, Golden Ratio

History. Leonardo of Pisa, known as Fibonacci, presented a rabbit population problem in Liber Abaci in 1202. Earlier Indian work on poetic metre also used the recurrence while counting patterns of short and long syllables. These contexts have different starting conventions but share the previous-two-sum rule. University of St Andrews, Fibonacci Parmanand Singh, Fibonacci Numbers in Ancient and Medieval India

Worked Fibonacci Sequence Examples

Example 1

Find F12F_{12} if F10=55F_{10}=55 and F11=89F_{11}=89.

  1. Use the two immediately previous terms.
  2. Add 55+8955+89.
  3. The answer is 144. The next term would use 89 and 144.

Example 2

If Fn−1=34F_{n-1}=34 and Fn=55F_n=55, find Fn−2F_{n-2}.

  1. Write Fn=Fn−1+Fn−2F_n=F_{n-1}+F_{n-2}.
  2. Isolate the earlier term by subtracting 34 from 55.
  3. The result is 21. Check 21+34=5521+34=55.

Example 3

Use Binet’s formula to verify F3F_3.

  1. Both roots satisfy r2=r+1r^2=r+1.
  2. Multiplying by rr gives r3=r2+r=2r+1r^3=r^2+r=2r+1.
  3. The numerator φ3−ψ3\varphi^3-\psi^3 equals 2(φ−ψ)=252(\varphi-\psi)=2\sqrt5. Dividing gives 2.

Example 4

Find how many ways a strip of length 5 can be tiled with pieces of length 1 or 2.

  1. There is one empty arrangement and one for length 1.
  2. For lengths 2, 3, and 4, the counts are 2, 3, and 5.
  3. For length 5 the count is 3+5=83+5=8, which equals F6F_6.

Example 5

Which Fibonacci terms have even values?

  1. Start with parities even and odd for F0F_0 and F1F_1.
  2. The next parity is odd. Then odd plus odd gives even, and the even–odd–odd pattern repeats.
  3. Exactly the indices divisible by 3 give even terms. For example, F9=34F_9=34 is even.

Example 6

Find the sum F0+F1+⋯+F6F_0+F_1+\cdots+F_6 using the recurrence.

  1. Rearrange the recurrence to write Fk=Fk+2−Fk+1F_k=F_{k+2}-F_{k+1}.
  2. Summing from k=0k=0 through 6 makes consecutive terms cancel.
  3. The result is F8−F1=21−1=20F_8-F_1=21-1=20.

Mistakes That Change a Fibonacci Answer

Mistake 1: Confusing FnF_n with the nnth item of a list that starts at zero

Under zero-based indexing, F0F_0 is the first written entry. F5=5F_5=5 is the sixth written entry when you include F0F_0.

Mistake 2: Adding every preceding term

The recurrence adds just two terms. After 13 and 21, the next term is 34.

Mistake 3: Multiplying by the golden ratio and treating the result as exact

5φ5\varphi is approximately 8.09. The next Fibonacci term after 5 is exactly 8. Use the recurrence for a simple exact calculation.

Try It Yourself

  1. Find F13F_{13} from F11=89F_{11}=89 and F12=144F_{12}=144.
  2. Which is larger, 13/813/8 or 21/1321/13?
  3. What is the sum F0+F1+⋯+F4F_0+F_1+\cdots+F_4?

Answers and Reasoning

  1. 89+144=23389+144=233.
  2. 13/813/8 is larger because 132=169>168=21·813^2=169>168=21\cdot8.
  3. Use F6−F1=8−1=7F_6-F_1=8-1=7, or add the five terms directly.

Frequently Asked Questions

Why does 1 appear twice?

With the standard initial pair 0 and 1, the next term is 0+1=10+1=1. The two copies have different indices.

Is the Fibonacci sequence arithmetic or geometric?

It is neither. Its consecutive differences and ratios change. The sum of the previous two terms gives its rule.

Can I start with two different numbers?

Yes. Any starting pair gives a sequence with the same style of recurrence. The specific pair 0 and 1 defines the usual Fibonacci numbers.

Conclusion

  • Check the starting index before reporting a term.
  • Use the two previous terms to advance the sequence exactly.
  • Use the golden ratio to describe long-run growth and Binet’s formula for the exact expression.

Read More

Research Behind This Article

  1. OEIS Foundation, A000045: Fibonacci Numbers. OEIS
  2. OEIS Wiki contributors, Fibonacci Numbers. OEIS Wiki
  3. Eric W. Weisstein, Fibonacci Number. Wolfram MathWorld
  4. Eric W. Weisstein, Golden Ratio. Wolfram MathWorld
  5. University of St Andrews, Fibonacci. MacTutor History of Mathematics
  6. Parmanand Singh, The So-Called Fibonacci Numbers in Ancient and Medieval India (1985). Hosted by Cornell University