Skip to content

What is the Fibonacci Sequence? Definition, List and Examples

The Fibonacci sequence adds the last two numbers to get the next: 0, 1, 1, 2, 3, 5, 8, 13... Learn the rule, the first 25 numbers and where it appears in nature.

Category
Tech Basics
On this page

Start with 0 and 1. Add them to get the next number: 1. Now keep going, always adding the last two numbers: 1 + 1 = 2, 1 + 2 = 3, 2 + 3 = 5, 3 + 5 = 8… You’ve just made the Fibonacci sequence! This simple pattern hides in sunflowers, pinecones and seashells. In this guide you’ll learn how to build it, see the first 25 numbers, and discover where it shows up in nature.

What is the Fibonacci Sequence?

The Fibonacci sequence is a list of numbers that starts with 0 and 1, where each next number is the sum of the two numbers before it.

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144…

Chalkboard showing the first 20 Fibonacci numbers from 0 to 4181
Each Fibonacci number is the sum of the two before it.

Each number in the list is called a Fibonacci number. The list never ends: you can always add the last two numbers to get one more.

How to Build the Fibonacci Sequence

  1. Write down the first two numbers: 0 and 1.
  2. Add the last two numbers to get the next one.
  3. Write it at the end of the list and repeat step 2.
PositionHow we get itFibonacci number
1stStart0
2ndStart1
3rd0 + 11
4th1 + 12
5th1 + 23
6th2 + 35
7th3 + 58
8th5 + 813
9th8 + 1321
10th13 + 2134
Easy way to rememberLook back two steps and add. That’s the only rule you need.
NoteSome books start the sequence at 1, 1, 2, 3, 5… instead of 0, 1, 1, 2, 3…. Both are correct. The pattern after the start is exactly the same.

The First 25 Fibonacci Numbers

01123
58132134
5589144233377
610987159725844181
676510946177112865746368

The numbers grow quickly. The 25th number is already 46,368, and the 50th is more than 7 billion!

Example: What comes after 89 and 144?

StepWorkResult
Step 1Take the last two numbers89 and 144
Step 2Add them89 + 144 = 233

The next Fibonacci number is 233.

Common mistakeDon’t add the number to itself (13 + 13 = 26) or add 1 each time. Always add the last two numbers: 8 + 13 = 21.

Who Was Fibonacci?

Fibonacci (his real name was Leonardo of Pisa) was an Italian mathematician. In 1202 he wrote a famous book, Liber Abaci (“The Book of Calculation”), which helped bring the numbers 0 to 9 that we use today to Europe.

In that book he asked a puzzle about rabbits. Start with one pair of baby rabbits. After a month they grow up, and every grown-up pair has a new baby pair each month. How many pairs are there each month? The answer goes 1, 1, 2, 3, 5, 8, 13… the Fibonacci sequence! (Real rabbits don’t behave quite like this, of course. It was a maths puzzle.)

Fibonacci wasn’t the first to find this pattern, though. Indian scholars such as Virahanka (around 700 AD) and Hemachandra (around 1150 AD) described the same numbers centuries earlier, while counting rhythm patterns in Sanskrit poetry.

Fibonacci Numbers in Nature

  • Sunflowers: the seeds grow in two sets of spirals, one turning left and one turning right. Count them and you often get two Fibonacci numbers next to each other, such as 34 and 55, or 55 and 89.
  • Pinecones and pineapples: their scales also form spirals in Fibonacci numbers, for example 8 and 13.
  • Flower petals: many flowers have a Fibonacci number of petals: lilies have 3, buttercups have 5, and many daisies have 13, 21 or 34.
  • Shells and spirals: if you draw squares with sides 1, 1, 2, 3, 5, 8… next to each other and join their corners with curves, you get a spiral like a snail shell.

Not every plant follows the pattern, but it shows up so often that scientists think it helps plants pack seeds and leaves neatly and catch more sunlight.

Fun Patterns to Discover

  • Every third number is even: 0, 2, 8, 34, 144… The others are odd. Learn more about even and odd numbers.
  • The golden ratio: divide a Fibonacci number by the one before it. 89 ÷ 55 = 1.618… and 144 ÷ 89 = 1.618… The further you go, the closer you get to 1.618, a special number called the golden ratio.
  • Add them up: the sum of the first few Fibonacci numbers is always one less than a Fibonacci number. 1 + 1 + 2 + 3 + 5 = 12, which is one less than 13.

Practice Questions

Try these yourself, then click a question to see the answer.

1. What are the next two numbers: 21, 34, __, __?

55 (21 + 34) and 89 (34 + 55).

2. Is 50 a Fibonacci number?

No. The sequence jumps from 34 to 55, so it skips 50.

3. Find the missing number: 5, 8, __, 21

13, because 5 + 8 = 13 and 8 + 13 = 21.

4. Make your own sequence that starts with 2 and 5. What are the next three numbers?

7, 12, 19 (2 + 5 = 7, 5 + 7 = 12, 7 + 12 = 19). This isn’t the Fibonacci sequence, but it follows the same rule.

5. Which Fibonacci numbers between 1 and 100 are even?

2, 8 and 34.

For Older Students: Print Fibonacci Numbers with Code

fibonacci.py:


a, b = 0, 1
for _ in range(15):
    print(a, end=" ")
    a, b = b, a + b
print()

Run it with python3 fibonacci.py and it prints 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377. The line a, b = b, a + b moves one step along the sequence: the new a is the old b, and the new b is the sum of the two. For complete programs, see how to print the Fibonacci sequence in Python, C and Bash.

FAQ

What is the Fibonacci sequence in simple words?

A list of numbers where you add the last two numbers to get the next one: 0, 1, 1, 2, 3, 5, 8, 13, 21 and so on.

What is the rule of the Fibonacci sequence?

Each number is the sum of the two before it. Written as a formula: F(n) = F(n−1) + F(n−2), starting with F(0) = 0 and F(1) = 1.

Does the Fibonacci sequence start with 0 or 1?

Most modern books start with 0, 1. Some older books start with 1, 1. Both give the same numbers after the start.

What is the 10th Fibonacci number?

Starting from 0, the 10th number is 34. If you start counting from 1, 1, the 10th number is 55.

Why is the Fibonacci sequence important?

It appears in nature (sunflowers, pinecones, flower petals), it is linked to the golden ratio used in art and design, and it is one of the first patterns used to teach computer programming.

Conclusion

The Fibonacci sequence starts with 0 and 1, and every next number is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34… It was made famous by Fibonacci’s rabbit puzzle in 1202, but Indian scholars knew it centuries earlier. Look closely at a sunflower or a pinecone and you may find these numbers hiding in plain sight.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top