login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A285680
{1010->2}-transform of the infinite Fibonacci word A003849.
4
0, 1, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 1, 0, 0, 2
OFFSET
1,5
LINKS
EXAMPLE
As a word, A003849 = 01001010010010100..., and replacing each 1010 by 2 gives 01002010020201002010020201002020100201...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}] &, {0}, 13] ; (* A003849 *)
w = StringJoin[Map[ToString, s]]
w1 = StringReplace[w, {"1010" -> "2"}]
st = ToCharacterCode[w1] - 48; (* A285680 *)
Flatten[Position[st, 0]]; (* A285681 *)
Flatten[Position[st, 1]]; (* A285682 *)
Flatten[Position[st, 2]]; (* A285683 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 11 2017
STATUS
approved