login
A286907
{0->00,1->01}-transform of the Sturmian word A080764.
3
0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1
OFFSET
1
COMMENTS
A080764 = 1101101110110111011011011101..., and replacing each 0 by 00 and each 1 by 01 gives 010100010100010101000101000..., in which the positions of 0 are given by A286939, and of 1, by A286940.
LINKS
MATHEMATICA
s = Nest[Flatten[# /. {0 -> 1, 1 -> {1, 1, 0}}] &, {1}, 11]; (* Sturmian word A080764 *)
w = StringJoin[Map[ToString, s]];
w1 = StringReplace[w, {"0" -> "00", "1" -> "01"}]
st = ToCharacterCode[w1] - 48 ; (* A286907 *)
Flatten[Position[st, 0]]; (* A286908 *)
Flatten[Position[st, 1]]; (* A286909 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 18 2017
STATUS
approved