〜 ★ dCode presents ★ 〜

Fibonacci Numbers

Tool to compute numbers of Fibonacci. Fibonacci sequence is a sequence of integers, each term is the sum of the two previous ones.

Fibonacci Numbers Calculator

Calculation Target

Display of the sequence

Initial values (seeds)

Answers to Questions

How to calculate the Fibonacci sequence?

Numbers from the Fibonacci sequence are equal to the addition of the 2 previous terms, they follow the recurrence formula: $$ F(n+2) = F(n) + F(n+1) $$

To initiate the sequence, by default, the two first terms are $ F(0) = 0 $ and $ F(1) = 1 $

Example: F2 = F0+F1 = 0+1 = 1
F3 = F1+F2 = 1+1 = 2
F10 = F8+F9, etc.

What are the first terms of the Fibonacci sequence?

Fibonacci numbers are:


For the next Fibonacci terms, use the calculator above.

How to compute the previous Fibonacci term?

Each term in the sequence is equal to the previous multiplied by approximately $ \varphi = 1.618 $ (golden number).

Example: $ F(10) = 55 $, $ 55/\varphi \approx 33.99 $ and in fact $ F(9) = 34 $

What is the Fibonacci Rabbits' problem?

The rabbits' problem is a problem proposed by Leonardo Fibonacci in 1200.

There is a rabbit couple (male + female) and every month a couple breeds and give birth to a new pair of rabbits which in turn can reproduce itself after 2 months. How many rabbits will be born after X months?

In the beginning there is 1 couple then

1 month1 couple
two months2 couples
three months3 couples
4 months5 couples
5 months8 couples
6 months13 couples
7 months21 couples
8 months34 couples

Each month, the total number of rabbits is equal to the sum of the numbers of the previous two months because it is the number of existing rabbits (the previous month) plus the number of babies born from rabbits couples who have at least two months (hence the number of rabbits 2 months ago). The numbers found are the numbers of the Fibonacci sequence.

Source code

dCode retains ownership of the source code of the script Fibonacci Numbers online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Fibonacci Numbers script for offline use on PC, iPhone or Android, ask for price quote on contact page !

Questions / Comments

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Fibonacci Numbers tool. Thank you.

Source : https://www.dcode.fr/fibonacci-numbers