Fibonacci Number
Fibonacci Number
A tiling with squares whose side lengths are successive Fibonacci numbers
In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the
following integer sequence:[1][2]
The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting
the opposite corners of squares in the Fibonacci tiling;[3] this one uses squares of sizes 1, 1, 2, 3, 5, 8,
13, 21, and 34.
By definition, the first two numbers in the Fibonacci sequence are 1 and 1, or 0 and 1,
depending on the chosen starting point of the sequence, and each subsequent number is
the sum of the previous two.
In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence
relation
or[4]
The Fibonacci sequence is named after Fibonacci. His 1202 book Liber
Abaci introduced the sequence to Western European mathematics,[5] although
the sequence had been described earlier in Indian mathematics.[6][7][8] By modern
convention, the sequence begins either with F0 = 0 or with F1 = 1. The Liber
Abaci began the sequence with F1 = 1.
Fibonacci numbers are closely related to Lucas numbers in that they are a
complementary pair of Lucas sequences. They are intimately connected with
the golden ratio; for example, the closest rational approximations to the ratio are
2/1, 3/2, 5/3, 8/5, ... . Applications include computer algorithms such as
the Fibonacci search technique and theFibonacci heap data structure, and
graphs called Fibonacci cubes used for interconnecting parallel and distributed
systems. They also appear in biological settings,[9] such as branching in
trees, phyllotaxis (the arrangement of leaves on a stem), the fruit sprouts of
a pineapple,[10] the flowering of an artichoke, an uncurling fern and the
arrangement of apine cone.[11]
Contents
[hide]
1 Origins
2 List of Fibonacci numbers
3 Use in mathematics
4 Relation to the golden ratio
o 4.1 Closed-form expression
o 4.2 Computation by rounding
o 4.3 Limit of consecutive quotients
o 4.4 Decomposition of powers of the golden ratio
5 Matrix form
6 Recognizing Fibonacci numbers
7 Combinatorial identities
8 Other identities
o 8.1 Cassini and Catalan's Identities
o 8.2 d'Ocagne's identity
9 Power series
10 Reciprocal sums
11 Primes and divisibility
o 11.1 Divisibility properties
o 11.2 Primality testing
o 11.3 Fibonacci primes
o 11.4 Prime divisors of Fibonacci numbers
o 11.5 Periodicity modulo n
12 Right triangles
13 Magnitude
14 Applications
15 In nature
o 15.1 The bee ancestry code
16 In popular culture
17 Generalizations
18 See also
19 Notes
20 References
21 External links
Origins[edit]
A page of Fibonacci's Liber Abacifrom the Biblioteca Nazionale di Firenze showing (in
box on right) the Fibonacci sequence with the position in the sequence labeled in Latin
and Roman numerals and the value in Hindu-Arabic numerals.
At the end of the first month, they mate, but there is still only 1 pair.
At the end of the second month the female produces a new pair, so
now there are 2 pairs of rabbits in the field.
At the end of the third month, the original female produces a second
pair, making 3 pairs in all in the field.
At the end of the fourth month, the original female has produced yet
another new pair, the female born two months ago produces her first
pair also, making 5 pairs.
At the end of the nth month, the number of pairs of rabbits is equal to the
number of new pairs (which is the number of pairs in month n 2) plus the
number of pairs alive last month (n 1). This is the nth Fibonacci number.[15]
The name "Fibonacci sequence" was first used by the 19th-century number
theorist douard Lucas.[16]
F17
F18
F19
F20
21 13 8
5 3
2 1
1 0 1 1 2 3 5 8 13 21
Use in mathematics[edit]
where
is the golden
ratio (sequence A001622 in OEIS), and
[22]
Since
written as
and
which has
solution
producing the
required
formula.
Computati
on by
rounding[e
dit]
Since
for all n
0, the
number F
n is the
closest
integer to
Ther
efore
it can
be
found
by ro
undin
g, or
in
terms
of
the fl
oor
functi
on:
O
r
t
h
e
n
e
a
r
e
s
t
i
n
t
e
g
e
r
f
u
n
c
ti
o
n
:
S
i
m
i
l
a
r
l
y
,
i
f
w
e
a
l
r
e
a
d
y
k
n
o
w
t
h
a
t
t
h
e
n
u
m
b
e
r
F
>
1
i
s
a
F
i
b
o
n
a
c
c
i
n
u
m
b
e
r
,
w
e
c
a
n
d
e
t
e
r
m
i
n
e
i
t
s
i
n
d
e
x
w
i
t
h
i
n
t
h
e
s
e
q
u
e
n
c
e
b
y
L
i
m
i
t
o
f
c
o
n
s
e
c
u
t
i
v
e
q
u
o
t
i
e
n
t
s
[
e
d
i
t
]
J
o
h
a
n
n
e
s
K
e
p
l
e
r
o
b
s
e
r
v
e
d
t
h
a
t
t
h
e
r
a
t
i
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f
r
o
m
B
i
n
e
t
'
s
f
o
r
m
u
l
a
.
A
n
o
t
h
e
r
c
o
n
s
e
q
u
e
n
c
e
i
s
t
h
a
t
t
h
e
l
i
m
i
t
o
f
t
h
e
r
a
t
i
o
o
f
t
w
o
F
i
b
o
n
a
c
c
i
n
u
m
b
e
r
s
o
f
f
s
e
t
b
y
a
p
a
r
t
i
c
u
l
a
r
f
i
n
i
t
e
d
e
v
i
a
t
i
o
n
i
n
i
n
d
e
x
c
o
r
r
e
s
p
o
n
d
s
t
o
t
h
e
g
o
l
d
e
n
r
a
t
i
o
r
a
i
s
e
d
b
y
t
h
a
t
d
e
v
i
a
t
i
o
n
.
O
r
,
i
n
o
t
h
e
r
w
o
r
d
s
:
n
i
f
i
l
w
i
s
i
t
i
l
i
p
l
x
i
t
i
o
l
t
i
a
l
u
l
d
i
v
i
d
i
a
i
F
i
c
i
F
i
c
i
D
e
c
o
m
p
o
s
i
t
i
o
n
o
f
p
o
w
e
r
s
o
f
t
h
e
g
o
l
d
e
n
a
t
i
o
[
e
d
i
t
]
S
i
n
c
e
t
h
e
g
o
l
d
e
n
r
a
t
i
o
s
a
t
i
s
f
i
e
s
t
h
e
e
q
u
a
t
i
o
n
, where the Legendre symbol has been replaced by the Jacobi symbol, then
this is evidence that n is a prime, and if it fails to hold, then n is definitely not a prime. If n is
composite and satisfies the formula, then n is a Fibonacci pseudoprime.
(mod m).
2, 3, 5, 13, 89, 233, 1597, 28657, 514229, ... (sequence A005478 in OEIS).
[44][45]
equal to the difference between the preceding bypassed Fibonacci number and the shorter leg of the preceding
conditions is called a Zeckendorf representation. The Zeckendorf representation of a number can be used to derive
ntation of the polyphase merge sort was described in The Art of Computer Programming.
radix 2 number register in golden ratio base being shifted. To convert from kilometers to miles, shift the register
s.[55] However, numerous poorly substantiated claims of Fibonacci numbers or golden sections in nature are found in
angle from the center, so the florets pack efficiently. Because the rational approximations to the golden ratio are of
onacci numbers), but this is true only of one range of radii, typically the outermost and thus most conspicuous.[59]
tors, which is Fn1, plus the number of male ancestors, which is Fn2.[60] This is under the unrealistic assumption that