User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
Range: 0โ€“40. Words grow exponentially.
Default: 0
Default: 01
Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

About

A Fibonacci word is an infinite binary string constructed by repeated concatenation: S(n) = S(n โˆ’ 1) โ‹… S(n โˆ’ 2), seeded with S(0) = 0 and S(1) = 01. The length of each word follows the Fibonacci number sequence exactly. The density of the character "0" converges to 1/ฯ† 0.6180, where ฯ† is the golden ratio. Fibonacci words appear in quasicrystal modeling, aperiodic tilings, and lossless data compression research. Miscounting the concatenation order or swapping operands produces a fundamentally different string family with incorrect fractal dimension properties.

This tool computes Fibonacci words up to order 40, reports exact lengths, character frequencies, and density convergence. Custom seed words are supported for generalized Fibonacci string systems. Note: word lengths grow exponentially. At order 40, the string contains over 165 million characters. The tool computes full metadata but truncates display beyond 10,000 characters to preserve browser responsiveness.

fibonacci words string concatenation combinatorics on words golden ratio formal language fibonacci sequence morphic words

Formulas

The classical Fibonacci word is defined by the recurrence:

S(n) = S(n โˆ’ 1) โ‹… S(n โˆ’ 2), for n โ‰ฅ 2

with initial seeds S(0) = 0 and S(1) = 01. The length of S(n) satisfies:

|S(n)| = F(n + 2)

where F(k) is the k-th Fibonacci number. The frequency ratio of character "0" converges to the inverse of the golden ratio:

limnโ†’โˆž |S(n)|0|S(n)| = 1ฯ† = ฯ† โˆ’ 1 0.6180339887

where ฯ† = 1 + โˆš52 1.6180339887. The Fibonacci word can also be generated by the morphism ฯƒ: 0 โ†’ 01, 1 โ†’ 0, iterated from 0.

where S = Fibonacci word string, n = order (generation index), F(k) = k-th Fibonacci number, ฯ† = golden ratio, |S|0 = count of character "0" in S.

Reference Data

Order nLength = F(n+2)Count of "0"Count of "1"Density of "0"Density โˆ’ 1/ฯ†
01101.000000+0.381966
12110.500000โˆ’0.118034
23210.666667+0.048633
35320.600000โˆ’0.018034
48530.625000+0.006966
513850.615385โˆ’0.002650
6211380.619048+0.001014
73421130.617647โˆ’0.000387
85534210.618182+0.000148
98955340.617978โˆ’0.000056
1014489550.618056+0.000022
151,5979876100.618034<0.000001
2017,71110,9466,7650.618034<0.000001
25196,418121,39375,0250.618034<0.000001
302,178,3091,346,269832,0400.618034<0.000001
3524,157,81714,930,3529,227,4650.618034<0.000001
40267,914,296165,580,141102,334,1550.618034<0.000001

Frequently Asked Questions

The Fibonacci number sequence adds integers: F(n) = F(nโˆ’1) + F(nโˆ’2). The Fibonacci word concatenates strings: S(n) = S(nโˆ’1) ยท S(nโˆ’2). The length of the n-th Fibonacci word equals the (n+2)-th Fibonacci number, so the two are structurally linked but operate in different domains - arithmetic vs. combinatorics on words.
Each concatenation appends S(nโˆ’2) to S(nโˆ’1). The count of "0" in S(n) equals the count in S(nโˆ’1) plus the count in S(nโˆ’2), following the same Fibonacci recurrence as the total length. The ratio of consecutive Fibonacci numbers converges to ฯ†, so the ratio of "0" count to total length converges to F(n+1)/F(n+2) โ†’ 1/ฯ† โ‰ˆ 0.6180.
Swapping operands produces a different string family. While the lengths remain identical (addition is commutative), the internal structure changes entirely. The resulting words lose the specific subword complexity and palindromic properties of the classical Fibonacci word. Pattern matching results and fractal analysis would be invalid.
Yes. This tool supports custom seeds. The concatenation recurrence S(n) = S(nโˆ’1) ยท S(nโˆ’2) applies regardless of seed content. However, the convergence properties - density approaching 1/ฯ† - only hold for the ratio of characters inherited from each seed, weighted by the Fibonacci growth rate. Custom seeds create generalized Fibonacci strings used in certain coding theory applications.
At order 25, the word exceeds 196,000 characters. At order 30, it surpasses 2 million. This tool computes full metadata (length, character counts, density) up to order 40 (267 million characters) but truncates the displayed string at 10,000 characters. The mathematical analysis remains exact regardless of display truncation.
The Fibonacci word is a Sturmian word - it has the lowest subword complexity among non-periodic infinite words, with exactly n+1 distinct factors of length n. The Thue-Morse sequence is cube-free and has different complexity. Both are morphic (generated by iterated substitution), but they belong to different classes in combinatorics on words.