Fractal Lab

Symbolic / L-system

Fibonacci word fractal

The infinite Fibonacci word is the limit of the substitution 1 → 10, 0 → 1 (or equivalently fn = fn−1 fn−2). Drawing it with a turtle that steps forward on each symbol and turns according to bit parity produces the Fibonacci word fractal.

Fibonacci word fractal, drawn from the 20-th Fibonacci word (10,946 symbols).

At a glance

Word length at step nFn (Fibonacci numbers)
Drawing ruleForward 1 step per symbol; on ‘0’ turn left 90° if index is odd, right 90° if even
Hausdorff dimension3 log φ / log(1 + √2) ≈ 1.6379

Connection to the golden ratio

The Fibonacci word is the canonical example of a Sturmian sequence. It encodes the irrational rotation by 1/φ on the circle: read each step of the rotation, output 0 or 1 depending on which half of the circle you land in. The result is aperiodic, so the Fibonacci word fractal has no exact periodicity at any scale.

Properties

References

Try it

Run an interactive playground at /tools/fibonacci-word.

Quick quiz

Test yourself on fibonacci-word

5 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.The Fibonacci word is built by the substitution:

  2. Q2.Length of the Fibonacci word at step n is:

  3. Q3.Drawing the Fibonacci word as a curve at 90° turns gives the Fibonacci word fractal with Hausdorff dimension approximately:

  4. Q4.The Fibonacci word is closely related to:

  5. Q5.Why is the Fibonacci word fractal sometimes called 'aperiodic' as a tiling pattern?

0 of 5 answered