Algebra • Integer Sequences & Number Theory

List of Fibonacci Numbers

Generate exact arbitrary-precision Fibonacci lists up to index 1,000, extract custom slices, verify membership via Gessel’s square test, decompose integers with Zeckendorf’s theorem, and inspect the Golden Spiral tiling.

|
Last Updated: November 2026
|
Verified Accurate: Exact BigInt Precision
Presets:

Generate Fibonacci Sequence

Exact BigInt
Highest Term
6,765
F(20)
Cumulative Sum
17,710
F(n+2) - 1 check
Golden Ratio fn/fn-1
1.618034
phi ~ 1.61803399
Comma-Separated List
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765

Golden Spiral & Fibonacci Squares

Quarter-circle arcs inscribed inside consecutive Fibonacci tile squares (1, 1, 2, 3, 5, 8, 13, 21)

Sequence Highlights & Parity Rules
Even terms appear at every 3rd index (F0=0, F3=2, F6=8, F9=34...). Every nth term shares gcd(F(m), F(n)) = F(gcd(m, n)).

Indexed Fibonacci Sequence Table

Index n Fibonacci Number F(n) Ratio F(n)/F(n-1) Properties
Direct Answer & Overview
Verified Educational Guide

Fibonacci Numbers Definition and Master Recurrence

The Fibonacci sequence is an integer progression beginning with F₀ = 0 and F₁ = 1 in which every subsequent term equals the sum of the two preceding terms (Fₙ = Fₙ₋₁ + Fₙ₋₂). Its initial terms are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, and consecutive ratios converge rapidly to the Golden Ratio φ ≈ 1.61803399.

Primary Mathematical Formula Linear Recurrence & Binet Closed Form
Standard Equation
ƒ(x)
Q.E.D.
Fn=Fn−1+Fn−2,F0=0,  F1=1,Fn=φn−(1−φ)n5F_n = F_{n-1} + F_{n-2}, \quad F_0 = 0, \; F_1 = 1, \quad F_n = \frac{\varphi^n - (1 - \varphi)^n}{\sqrt{5}}
Computed with JavaScript BigInt integers to avoid IEEE-754 rounding errors above F₇₈
Exact Formula
Input Parameters
Required
1
Index Bound N or Range — Generate 0..N terms or custom slice [start, end] up to F₁₀₀₀
2
Membership Query — Non-negative integer N for exact Fibonacci square test and Zeckendorf sum
Expected Outputs
Calculated
Exact Sequence & Table — Comma list, downloadable CSV, partial sums, and Fₙ/Fₙ₋₁ ratios
Zeckendorf & Golden Spiral — Unique non-consecutive Fibonacci decomposition and geometric square tiling
Worked Numerical Example
Instant Verification
Find the first 11 Fibonacci terms (F₀ to F₁₀), their sum, and golden ratio F₁₀/F₉.
→ Terms: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. Sum(F₀..F₁₀) = F₁₂ − 1 = 144 − 1 = 143.
Result: F₁₀ = 55 | Sum = 143 | F₁₀ / F₉ = 55 / 34 = 1.617647

Fibonacci Recurrence Definition and Indexed Reference List

Named after Leonardo of Pisa (known posthumously as Fibonacci), who introduced the rabbit-population puzzle in his 1202 treatise Liber Abaci (though Indian prosody mathematicians Virahanka, Gopala, and Hemachandra had studied the exact counts centuries earlier in Sanskrit poetic meters), the Fibonacci numbers form the archetype of second-order linear homogeneous recurrence relations with constant coefficients:

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

Because each number combines two earlier entries, values accelerate exponentially by roughly 61.8%61.8\% every index step: F10=55F_{10} = 55, F20=6,765F_{20} = 6{,}765, F30=832,040F_{30} = 832{,}040, and F50=12,586,269,025F_{50} = 12{,}586{,}269{,}025. For quick step-by-step recurrence exploration alongside other algebraic series tools, visit our Fibonacci sequence generator and compare additive versus constant-difference progressions in our arithmetic sequence calculator and geometric sequence calculator.

Index Fibonacci Value Index Fibonacci Value
F(0)0F(13)233
F(1)1F(14)377
F(2)1F(15)610
F(3)2F(16)987
F(4)3F(17)1,597
F(5)5F(18)2,584
F(6)8F(19)4,181
F(7)13F(20)6,765
F(8)21F(25)75,025
F(9)34F(30)832,040
F(10)55F(40)102,334,155
F(11)89F(50)12,586,269,025
F(12)144F(60)1,548,008,755,920

Binet’s Formula, Matrix Form, and Golden Ratio Convergence

Solving the characteristic polynomial r2−r−1=0r^2 - r - 1 = 0 of the linear recurrence produces two conjugate irrational roots: the Golden Ratio φ=1+52≈1.6180339887\varphi = \frac{1 + \sqrt{5}}{2} \approx 1.6180339887 and ψ=1−52=1−φ=−1φ≈−0.6180339887\psi = \frac{1 - \sqrt{5}}{2} = 1 - \varphi = -\frac{1}{\varphi} \approx -0.6180339887. Combining the initial seeds yields Binet’s closed-form formula:

Fn=φn−ψn5=round⁡ ⁣(φn5)(n≥0)F_n = \frac{\varphi^n - \psi^n}{\sqrt{5}} = \operatorname{round}\!\left(\frac{\varphi^n}{\sqrt{5}}\right) \qquad (n \ge 0)

Equivalently, in linear algebra, powers of the 2×22 \times 2 Fibonacci Q-matrix generate consecutive pairs directly, enabling fast exponentiation by squaring in O(log⁡n)O(\log n) multiplications (connectable to matrix multiplication and eigenvalue decomposition):

[1110]n=[Fn+1FnFnFn−1]\begin{bmatrix} 1 & 1 \\ 1 & 0 \end{bmatrix}^n = \begin{bmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{bmatrix}

Notice that taking the determinant of both sides gives det⁡(Q)n=(−1)n=Fn+1Fn−1−Fn2\det(Q)^n = (-1)^n = F_{n+1}F_{n-1} - F_n^2, immediately proving Cassini’s famous identity!

Partial Sums, Cassini’s Identity, and Divisibility Laws

Cumulative Sum Formula

Summing the first NN terms evaluates cleanly via telescoping: ∑k=0NFk=FN+2−1\sum_{k=0}^{N} F_k = F_{N+2} - 1. Thus summing F0F_0 through F10F_{10} equals 144−1=143144 - 1 = 143.

Sum of Squares Identity

Each new Fibonacci square attaches cleanly to the growing golden rectangle, giving ∑k=1NFk2=FNFN+1\sum_{k=1}^{N} F_k^2 = F_N F_{N+1}, visible right in our Golden Spiral tiling plot.

Strong Divisibility Property

The greatest common divisor preserves indices identically: gcd⁡(Fm,Fn)=Fgcd⁡(m,n)\gcd(F_m, F_n) = F_{\gcd(m, n)}. In particular, FmF_m divides FnF_n whenever mm divides nn.

Pisano Period Modular Cycles

Reducing Fibonacci numbers modulo any integer mm yields a purely periodic cycle called the Pisano period π(m)\pi(m): modulo 2 has period 3 (even terms at every 3rd step), and last decimal digits ( mod 10\bmod 10) repeat every 60 numbers.

Zeckendorf Representation and Gessel’s Membership Criterion

Two classic number-theoretic tools elevate a plain Fibonacci table into a practical analyzer. First, Gessel’s Theorem converts membership testing into exact integer square detection without generating the whole sequence up to NN: N≥0N \ge 0 is a Fibonacci number if and only if 5N2+45N^2 + 4 or 5N2−45N^2 - 4 is a perfect square. Second, Zeckendorf’s Theorem proves that repeatedly subtracting the largest Fibonacci number not exceeding the remainder expresses any positive integer uniquely using non-adjacent Fibonacci terms. Try entering any integer inside the Fibonacci Membership & Zeckendorf tab above to inspect both instantly.

Phyllotaxis, Algorithm Analysis, and Golden Spiral Geometry

In botany, consecutive Fibonacci integers frequently count clockwise and counterclockwise parastichy spirals on pinecones, sunflower heads, and pineapple scales because successive angular turns of the golden angle 360∘(1−1/φ)≈137.508∘360^\circ(1 - 1/\varphi) \approx 137.508^\circ minimize seed overlap. In computer science, Fibonacci numbers bound worst-case steps of Euclid’s greatest common divisor algorithm (Lamé’s Theorem), balance Fibonacci heaps in graph shortest-path priority queues, and drive Fibonacci search intervals over sorted arrays without division operations.

Worked Computational Examples and BigInt Limits

Example 1: Computing F₁₅ by Partial Sums vs. Recurrence

Given F12=144F_{12} = 144, F13=233F_{13} = 233, advancing two steps yields F14=144+233=377F_{14} = 144 + 233 = 377 and F15=233+377=610F_{15} = 233 + 377 = 610. Using the sum identity, the sum of F0F_0 through F13F_{13} equals F15−1=609F_{15} - 1 = 609.

Example 2: Zeckendorf Decomposition of 1,000

Subtracting the largest Fibonacci term ≤1000\le 1000 repeatedly gives 1000−987=131000 - 987 = 13, leaving 1000=987+13=F16+F71000 = 987 + 13 = F_{16} + F_7. Because 16−7>116 - 7 > 1, no consecutive terms appear.

Common Mistakes When Computing Large Fibonacci Lists

  • Floating-point precision overflow past F₇₈: Standard 64-bit numbers lose exact unit digits past 253−1≈9.007×10152^{53} - 1 \approx 9.007 \times 10^{15}. Always inspect exact integer arithmetic (BigInt) when computing lists toward F100F_{100} or F1000F_{1000}.
  • 0-based vs. 1-based off-by-one indexing: Confirm whether a textbook asks for the 10th term starting at F0=0F_0 = 0 (F9=34F_9 = 34) or indexed at F10=55F_{10} = 55.
  • Naive exponential recursion: Implementing fib(n) = fib(n-1) + fib(n-2) without memoization takes O(φn)O(\varphi^n) calls—over 1.3 billion calls just to compute F45F_{45}—whereas iterative dynamic programming runs in linear O(n)O(n) steps.

Arbitrary-Precision BigInt Architecture and Canvas Tiling

Every sequence, partial sum, membership square test, and Zeckendorf decomposition runs in linear O(n)O(n) time inside your browser using native JavaScript BigInt integer types—delivering exact digits even for F1000F_{1000} (a 209-digit integer). The interactive Golden Spiral plot uses high-DPI HTML5 <canvas> geometry with dynamic resize adaptation across all screen sizes, pairing an arbitrary-precision algorithmic engine with crisp vector-like visual feedback.

Fact-Checked & Verified • Computational Accuracy Standards
Updated November 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What are the first 20 Fibonacci numbers in order?
Starting from index F₀ = 0 and F₁ = 1, the first twenty-one indexed Fibonacci terms (F₀ through F₂₀) are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, and 6765. Every subsequent value is obtained by summing the two preceding terms.
Does the Fibonacci sequence start at 0 or 1?
Modern number theory and computer science conventions start at F₀ = 0, F₁ = 1 so that F₀ + F₁ = F₂ = 1 and divisibility identities such as gcd(Fₘ, Fₙ) = F_gcd(m,n) hold cleanly. Classic historical texts (including Fibonacci’s 1202 Liber Abaci) began counting at F₁ = 1, F₂ = 1.
How does Binet’s closed-form formula calculate Fₙ without recursion?
Binet’s formula expresses the nth term directly using the golden ratio φ = (1 + √5)/2 ≈ 1.61803399 and its conjugate ψ = (1 − √5)/2 ≈ −0.61803399 as Fₙ = (φⁿ − ψⁿ) / √5. Rounding φⁿ / √5 gives the exact integer for every n ≥ 0, though IEEE-754 floating-point numbers lose integer precision beyond F₇₈—which is why this tool computes lists using arbitrary-precision BigInt integer arithmetic.
How do you check mathematically if an integer is a Fibonacci number?
By Ira Gessel’s criterion (1972), a positive integer N belongs to the Fibonacci sequence if and only if at least one of 5N² + 4 or 5N² − 4 is an exact perfect square integer. For instance, at N = 144, 5(144²) − 4 = 103,676 is not square, whereas 5(144²) + 4 = 103,684 = 322², proving 144 is an exact Fibonacci number.
What is Zeckendorf’s theorem for Fibonacci numbers?
Zeckendorf’s theorem proves that every positive integer can be written in one unique way as a sum of distinct, non-consecutive Fibonacci numbers (F₂ = 1 or higher). For example, 100 decomposes uniquely as 89 + 8 + 3 = F₁₁ + F₆ + F₄, which forms the basis of Fibonacci data-compression coding.
Why does the ratio Fₙ / Fₙ₋₁ converge to the Golden Ratio phi?
Since the recurrence Fₙ = Fₙ₋₁ + Fₙ₋₂ has characteristic equation r² − r − 1 = 0 with roots φ ≈ 1.618034 and ψ ≈ −0.618034, and |ψ/φ| < 1, the contribution of ψⁿ shrinks exponentially toward zero. Thus consecutive ratios oscillate tightly around φ.
Which Fibonacci numbers are even?
Starting from F₀ = 0, every third Fibonacci number is even: F₀ = 0, F₃ = 2, F₆ = 8, F₉ = 34, F₁₂ = 144, and so on. Because Even + Odd = Odd and Odd + Odd = Even, the parity cycle (Even, Odd, Odd) repeats with period 3 forever.
Can Fibonacci numbers extend to negative indices?
Yes. Reversing the recurrence as Fₙ₋₂ = Fₙ − Fₙ₋₁ produces negafibonacci numbers satisfying F₋ₙ = (−1)^(n+1) Fₙ: ..., 5, −3, 2, −1, 1, 0, 1, 1, 2, 3, 5, ... with alternating signs on even negative indices.