OFFSET
1,3
COMMENTS
The definition mentions the Fibonacci word A005614. Note that the official Fibonacci word is A003849, which would give a different list, namely, the 2's-complement of the present list. - N. J. A. Sloane, Jan 12 2011
REFERENCES
J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1015
T. D. Noe, Table of n, a(n) for n = 1..1652 [The first 1652 terms written in binary, including leading zeros. Not a b-file.]
EXAMPLE
The Fibonacci word has a minimal complexity, i.e., for any n there are n+1 distinct subwords of length n (see for example Allouche and Shallit).
E.g. for n=1 they are '0' and '1', for n=2 '01', '10' and '11' or, in decimal notation '1','2',and '3'.
Some subwords prefixed with '0' have the same decimal value as shorter ones, but there is no real ambiguity as double zeros do not appear in the infinite Fibonacci word.
MATHEMATICA
iter=8; f=Nest[Flatten[# /. {0 -> {1}, 1 -> {1, 0}}] &, {1}, iter]; u={}; n=1; While[lst={}; k=0; While[num=FromDigits[Take[f, {1, n}+k], 2]; lst=Union[lst, {num}]; Length[lst]<n+1 && k<Length[f]-n, k++]; Length[lst]==n+1, u=Union[u, lst]; n++]; u
CROSSREFS
KEYWORD
nonn,nice,base
AUTHOR
Alexandre Losev, Jan 03 2011
EXTENSIONS
Definition clarified by N. J. A. Sloane, Jan 10 2011
STATUS
approved