<oembed><type>rich</type><version>1.0</version><author_name>mleku (npub1fj…mleku)</author_name><author_url>https://nostr.ae/npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>&gt; is there a sequence like the fibonacci sequence that approximates pi?&#xA;&#xA;Great question. The short answer is: **no simple Fibonacci-style linear recurrence can converge to π**, but there are beautiful recurrence-based sequences that do. Here&#39;s why, and what they look like.&#xA;&#xA;## Why Fibonacci-style recurrences can&#39;t reach π&#xA;&#xA;The Fibonacci recurrence `a(n) = a(n-1) + a(n-2)` is a **linear recurrence with constant integer coefficients**. The ratio of consecutive terms in such sequences always converges to a root of the characteristic polynomial — in Fibonacci&#39;s case, φ = (1+√5)/2. These roots are always **algebraic numbers**.&#xA;&#xA;**π is transcendental** (proved by Lindemann in 1882), so it cannot be the root of any polynomial with integer coefficients. No ratio of terms in a simple linear recurrence will ever converge to π.&#xA;&#xA;## What does work: recurrence relations for π&#xA;&#xA;### 1. The Gauss-Legendre Algorithm (closest in spirit)&#xA;&#xA;This uses a **pair** of coupled recurrences, like a &#34;two-variable Fibonacci&#34;:&#xA;&#xA;```&#xA;a₀ = 1,           b₀ = 1/√2&#xA;aₙ₊₁ = (aₙ + bₙ)/2          (arithmetic mean)&#xA;bₙ₊₁ = √(aₙ · bₙ)           (geometric mean)&#xA;```&#xA;&#xA;Then π is approximated by:&#xA;&#xA;```&#xA;π ≈ 2aₙ² / (1 − Σ 2ᵏ(aₖ² − bₖ²))&#xA;```&#xA;&#xA;This converges **quadratically** — each iteration roughly doubles the number of correct digits. By step 25, you have over 45 million correct digits. It&#39;s the algorithm behind many record-setting π computations.&#xA;&#xA;### 2. Viète&#39;s Product (1593, the first infinite formula for π)&#xA;&#xA;A nested recurrence generates terms:&#xA;&#xA;```&#xA;a₁ = √2&#xA;aₙ₊₁ = √(2 + aₙ)&#xA;```&#xA;&#xA;Then:&#xA;&#xA;```&#xA;2/π = (a₁/2) · (a₂/2) · (a₃/2) · ...&#xA;```&#xA;&#xA;Written out: 2/π = (√2/2) · (√(2+√2)/2) · (√(2+√(2+√2))/2) · ...&#xA;&#xA;Each term is built from the previous one, giving it that Fibonacci &#34;each term depends on the last&#34; character.&#xA;&#xA;### 3. Archimedes&#39; Method (the original, ~250 BC)&#xA;&#xA;Start with a hexagon inscribed in a unit circle. Double the sides repeatedly:&#xA;&#xA;```&#xA;a₀ = 6 · sin(π/6) = 3        (inscribed hexagon perimeter / diameter)&#xA;b₀ = 6 · tan(π/6) = 2√3      (circumscribed hexagon)&#xA;&#xA;aₙ₊₁ = 2aₙbₙ / (aₙ + bₙ)    (harmonic mean)&#xA;bₙ₊₁ = √(aₙ₊₁ · bₙ)         (geometric mean)&#xA;```&#xA;&#xA;Both sequences squeeze toward π: `aₙ &lt; π &lt; bₙ` for all n. Archimedes used a 96-gon (4 iterations) to get 3.1408 &lt; π &lt; 3.1429.&#xA;&#xA;### 4. Fibonacci numbers and π (indirect connection)&#xA;&#xA;While the Fibonacci sequence itself doesn&#39;t converge to π, there&#39;s a striking identity linking them via arctangent:&#xA;&#xA;```&#xA;Σ arctan(1/F(2k)) for k=1,2,3,...&#xA;```&#xA;&#xA;relates to π through various arctangent identities (since arctan values sum to multiples of π/4). For example, there&#39;s a known result that infinite sums of `arctan(1/Fₙ)` over even-indexed Fibonacci numbers telescope to π/4 using the identity `arctan(1/F(2n)) = arctan(1/F(2n-1)) − arctan(1/F(2n+1))`.&#xA;&#xA;### 5. The Borwein Quartic Algorithm (1985)&#xA;&#xA;Converges **quartically** (digits quadruple each step):&#xA;&#xA;```&#xA;a₀ = 6 − 4√2,    y₀ = √2 − 1&#xA;&#xA;yₙ₊₁ = (1 − (1−yₙ⁴)^(1/4)) / (1 + (1−yₙ⁴)^(1/4))&#xA;aₙ₊₁ = aₙ(1+yₙ₊₁)⁴ − 2^(2n+3) · yₙ₊₁(1+yₙ₊₁+yₙ₊₁²)&#xA;```&#xA;&#xA;Then 1/aₙ → π. Just 5 iterations gives over 694 correct digits.&#xA;&#xA;## Summary&#xA;&#xA;| Method | Type | Convergence | Digits after 10 steps |&#xA;|---|---|---|---|&#xA;| Leibniz series | Alternating sum | ~1/n (awful) | ~10 |&#xA;| Viète product | Nested recurrence | Linear | ~6 |&#xA;| Archimedes | Coupled means | Linear | ~12 |&#xA;| Gauss-Legendre | Coupled AGM recurrence | Quadratic | ~2,800 |&#xA;| Borwein quartic | Coupled recurrence | Quartic | ~700,000 |&#xA;&#xA;The Gauss-Legendre algorithm is probably the closest in spirit to what you&#39;re asking — a simple recurrence rule you apply repeatedly, where π emerges from the interplay of the two sequences, much like φ emerges from the Fibonacci sequence.</html></oembed>