Fibonacci Sequence Generator

Explore the Recursive Rhythm of Growth and the Golden Ratio (φ = 1.618034…)

Golden Tiling & Spiral — first 10 squares

35813213455

🔢 Sequence Parameters

1–30 terms · F(29) = 514,229

Nature Presets

Recurrence Formula

F(n) = F(n−1) + F(n−2)

F(0) = 0, F(1) = 1

0112358132134

Terms

10

F(n) / F(n−1)

1.619048

True φ = 1.618034… · Error from φ: 1.01e-3

🌻 Fibonacci in Nature

NumberFound In
3Lily petals, clover leaves
5Buttercup, columbine, wild rose petals
8Cosmos, delphinium florets
13Marigold petals, pinecone bottom rows
21Aster, daisy petal count
34Sunflower seed rows (inner ring)
55/89Sunflower seed spirals (CW / CCW)

φ Convergence — Ratio Approaching 1.618034…

Term nF(n)F(n)/F(n−1)
311.00000
422.00000
531.50000
651.66667
781.60000
8131.62500
9211.61538
10341.61905

True φ = 1.61803398874989…

🎯 Example 1: Counting Petals in the Wild

Pick up any buttercup and count its petals — you'll almost always find exactly 5. Set the term count to 6 (the Flower Petals preset) and you'll see 5 appear as the last term. Now try a daisy: set n to 9 and the sequence ends at 21, a common daisy petal count. This isn't coincidence — Fibonacci petal counts arise because they minimise overlap when petals grow from a central meristem, packing more efficiently than any arbitrary number.

🎨 Example 2: Designing a Typographic Scale

Set the term count to 8 to get the sequence: 0, 1, 1, 2, 3, 5, 8, 13. Skip the zeros and use the remaining numbers as font sizes in pixels — body text at 8px (or 0.5rem scale), subheadings at 13px, headings at 21px, hero type at 34px. The ratio between each step is always close to φ ≈ 1.618, which is why this scale feels harmonious rather than arbitrary. The same logic applies to layout columns: a sidebar of 5 units and a main content area of 8 units gives you a Golden Rectangle split right out of the sequence.

Shop Math & Nature Books on Amazon

As an Amazon Associate, I earn from qualifying purchases.

Data Source: OEIS Foundation — Fibonacci Numbers (A000045) • Public domain • Solo-developed with AI

Lab Notes

Why the Fibonacci Sequence Is So Mesmerizing (And How Leonardo of Pisa Figured It Out)

The Rabbit Headache: In 1202, a mathematician known as Fibonacci (Leonardo of Pisa) published Liber Abaci, introducing Hindu-Arabic numerals to Europe. To demonstrate their power, he posed a breeding puzzle: if you start with one pair of rabbits, and every month each mature pair produces a new pair that becomes productive after two months, how many pairs do you have after a year? The answer—1, 1, 2, 3, 5, 8, 13…—changed mathematics forever. It wasn't just about rabbits; it was the discovery of a recursive rhythm that defines how things grow.

The Magic of Phi: As the sequence grows, something remarkable emerges. Divide any term by the one before it (13 ÷ 8 = 1.625, 21 ÷ 13 ≈ 1.615, 34 ÷ 21 ≈ 1.619) and the result converges steadily on 1.618033…—the Golden Ratio, known as Phi (φ). This convergence is exact in the limit and not a coincidence: Phi is the only positive number where subtracting 1 gives its reciprocal, making it the mathematical ideal for proportional growth. Nature discovered this long before Fibonacci wrote it down.

From Pinecones to Pixels: Fibonacci numbers appear in an astonishing range of natural structures—the number of petals on wildflowers, the count of spirals on pinecones and sunflower heads, the arrangement of leaves on a stem. Each arrangement maximises exposure to sunlight or efficient packing of seeds, and the mathematics that achieves this efficiency is always Fibonacci. Engineers, designers, and traders have borrowed the same proportions: Fibonacci retracement levels are standard in technical stock analysis, and the Golden Ratio is a cornerstone of typographic and architectural proportion.

Reading the Tiling: The visualisation below shows this relationship geometrically. Each coloured square has a side length equal to one Fibonacci number; together they tile a Golden Rectangle perfectly. As you add more terms, the spiral traced through the corners of these squares approximates the Golden Spiral—the same curve seen in nautilus shells and galaxy arms. Use the presets to jump to the term counts where specific Fibonacci numbers appear in nature, then read the convergence table to watch Phi crystallise from the noise.

🐾 From the Lab Cat's Fibonacci & Nap-Curvature Department:

I have conducted extensive field research into the Fibonacci sequence and can confirm that its most critical real-world application is the architecture of the perfect nap. A cat in deep sleep naturally assumes the shape of a Golden Spiral, maximising warmth retention while maintaining a high-efficiency pouncing posture — a discovery no human mathematician has bothered to publish, which frankly says everything about their priorities. I have also established, through rigorous treat trials, that serving portions in the sequence 1, 1, 2, 3, 5 yields a 94% satisfaction rating, whereas stopping at 3 causes recursive meowing until the next term is delivered. Cardboard boxes, I should add, achieve peak ergonomic performance only when their dimensions approximate the Golden Ratio. I measured mine. It is correct. Please do not move it. Current status: I have achieved 1.618 curl geometry. The math is complete. Do not disturb.

In short: These tools are for education and curiosity only. Always verify information independently and consult professionals before making important decisions.

Riatto.ovh © 2025 – 2026. Designed and maintained by a solo developer with AI.

Privacy Policy

Also by us: Purr.ovh · Snackword.ovh · Substack