A156596 Infinite Fibonacci word fractal sequence.
1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 0, 2, 1, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 0, 1
Offset: 1
References
- M. Lothaire, Combinatorics on words, Cambridge University Press.
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
- A. Monnerot-Dumaine, Fibonacci word fractal
- Alexis Monnerot-Dumaine, The Fibonacci word fractal [Cached copy, with permission]
Programs
-
Haskell
a143667 n = a143667_list !! (n-1) a143667_list = f a003849_list where f (0:0:ws) = 0 : f ws; f (0:1:ws) = 1 : f ws; f (1:0:ws) = 2 : f ws -- Reinhard Zumkeller, Jul 29 2014
-
Mathematica
Partition[Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}]&, {0}, 10], 2] /. {{0, 0} -> {1, 2}, {0, 1} -> {1, 0}, {1, 0} -> {0, 2}} // Flatten (* Jean-François Alcover, Jul 16 2015 *)
Comments