Fibonacci Generator
Generate Fibonacci sequences up to N terms. Shows the Fibonacci sequence, golden ratio approximation, and sequence properties. Supports large numbers.
Generate Fibonacci Sequence
250100
F(20) / F(19) ≈ Golden Ratio φ
1.6180340557
Exact: φ = (1 + √5) / 2 ≈ 1.6180339887…
Sequence (20 terms)
F(0)01 digits
F(1)11 digits
F(2)11 digits
F(3)21 digits
F(4)31 digits
F(5)51 digits
F(6)81 digits
F(7)132 digits
F(8)212 digits
F(9)342 digits
F(10)552 digits
F(11)892 digits
F(12)1443 digits
F(13)2333 digits
F(14)3773 digits
F(15)6103 digits
F(16)9873 digits
F(17)15974 digits
F(18)25844 digits
F(19)41814 digits
Largest term (F19)
4181
4 digits
Even Fibonacci terms
7
Every 3rd Fibonacci is even
How to Use Fibonacci Generator
- 1Enter the number of Fibonacci terms you want to generate.
- 2View the full sequence displayed as a list.
- 3See how the ratio F(n+1)/F(n) converges to the golden ratio.
- 4Copy the sequence for use in your project.
Zenovay
Privacy-first analytics for your website
Understand your visitors without invasive tracking. GDPR compliant, lightweight, and powerful.
Related Tools
CSS Gradient GeneratorCreate beautiful CSS gradients with a visual editor. Linear, radial, and conic gradients.
CSS Box Shadow GeneratorDesign CSS box shadows with visual controls. Adjust offset, blur, spread, and color.
CSS Border Radius GeneratorCreate custom border radius values with visual controls. Link or unlink corners for quick adjustment.
CSS Flexbox PlaygroundLearn and generate CSS Flexbox layouts visually. Adjust direction, alignment, wrapping, and gap in real time.
Frequently Asked Questions
What is the Fibonacci sequence?▾
The Fibonacci sequence is a series where each number is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144... Named after Leonardo of Pisa (Fibonacci), who introduced it to European mathematics in 1202 through his book Liber Abaci. The sequence appears in nature: the spiral arrangement of sunflower seeds, pinecone scales, leaf phyllotaxis, nautilus shells, and the branching of trees.
What is the golden ratio?▾
The golden ratio (φ ≈ 1.6180339887...) is the limit of F(n+1)/F(n) as n approaches infinity. The exact value is (1 + √5) / 2. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger quantity: (a+b)/a = a/b = φ. The golden ratio appears in Euclidean geometry, art, architecture (Parthenon), and has long fascinated mathematicians. It is also related to the regular pentagon and icosahedron.
How do Fibonacci numbers appear in nature?▾
The number of spirals in sunflowers, pinecones, and pineapples are consecutive Fibonacci numbers (typically 21 and 34, or 34 and 55). The number of petals on many flowers is a Fibonacci number (3, 5, 8, 13). Leaf arrangements on stems follow Fibonacci fractions to maximize sun exposure. The rabbit population model that Fibonacci used to introduce the sequence: if a pair of rabbits produces a new pair each month, starting from the second month, the population grows following the Fibonacci sequence.
How is the Fibonacci sequence computed efficiently?▾
Naive recursion: O(2^n) — exponential time. Memoized recursion or iteration: O(n). Matrix exponentiation: O(log n). Closed-form Binet formula: F(n) = (φ^n − ψ^n) / √5 where ψ = (1−√5)/2 — theoretically O(1) but loses precision for large n due to floating-point errors. For exact large Fibonacci numbers, use arbitrary-precision integer arithmetic (Python's int, Java's BigInteger). F(100) has 21 digits; F(1000) has 209 digits.
What are some applications of Fibonacci numbers in computing?▾
Fibonacci heaps (used in Dijkstra's algorithm), Fibonacci search (an alternative to binary search), pseudorandom number generators, Zeckendorf's theorem (every positive integer is uniquely representable as a sum of non-consecutive Fibonacci numbers), Fibonacci coding (universal code for integer compression), skip list random level generation, and analysis of worst-case inputs for certain algorithms like Euclid's GCD algorithm.