Sturmian Fractals
The Collatz dropping sign rule (Parts 4–7 of the Dropping Zeta Spectrum thread) is a Sturmian cutting sequence of slope — the same complexity class as the Fibonacci word and the symbolic side of irrational rotation. When you feed a Sturmian word into a turtle-graphics program, the curve you get out is a direct geometric fingerprint of the sequence's structure.
This page lets you play with the recipe interactively.
What you're seeing
The turtle starts at the purple dot (0, 0) facing right. For each symbol of the chosen sequence it draws a unit segment forward, then maybe turns by the chosen angle. The orange dot is where the curve ends. Color along the path encodes time direction (purple → cyan → yellow).
Two turtle recipes are available:
- Wikipedia recipe (default) — the canonical Fibonacci-word-fractal rule: turn 90° (or whatever angle you've chosen) only on symbol 0, alternating left/right by the symbol's index parity. This is the rule that produces the famous self-similar Fibonacci curve.
- Dragon recipe — turn at every step, left on 0 and right on 1. For Sturmian sequences this typically produces bounded diamond-tiling shapes; for high-entropy sequences it produces 2D-Brownian-motion-like blobs.
What the four sequences are
| Sequence | What each symbol means | Where it comes from |
|---|---|---|
| log₂3 Sturmian | Sign of for the -th Collatz dropping class | Proved closed form in Parts 4–7 |
| Fibonacci word | Letter of the standard Fibonacci word | Reference Sturmian — slope |
| Stopping-Class parity | where = parity-class count of class | The full-entropy result of Part 8 |
| Custom rational | Sturmian cutting sequence of slope | Eventually -automatic; visible for small , transient for deep CF convergents |
Note that none of these are individual Collatz orbits — they are meta-sequences indexed by class number, one symbol per equivalence class. The "Collatz orbit of " panel from the static gallery image lives elsewhere.
Things worth poking at
- Angle 120° on the Sturmian sequences gives beautiful triangular tilings.
- Angle 90° on log₂3 collapses to the regular rectangular tiling — that's the original "boring" panel.
- Stopping-Class parity at any angle, dragon recipe: looks like Brownian motion / DLA. That visual is the Part 8 "full-entropy" result.
- Custom rational at small q (e.g. , ): periodic-ish shapes. At deep convergents like or , the rational sequence is visually identical to log₂3 for short lengths.
- 3D mode: drag to rotate, scroll to zoom. The 3D Wikipedia recipe alternates yaw / pitch on 0-symbols by index mod 4 — turning the planar fractal into a Hilbert-3D-curve-like structure.
Reference: the static gallery
Companion static images with the same recipe, generated by scripts/collatz_fibonacci_fractal.py, scripts/collatz_fractal_variants.py:
data/collatz_fibonacci_fractal.png— original 2×2 (Fibonacci ref, log₂3 sign, Stopping-Class parity, orbit of )data/collatz_fractal_angles.png— 2×4 angle scan at 60° / 72° / 90° / 120°data/collatz_fractal_dragon.png— dragon recipe on all four sequences