[go: up one dir, main page]

login
A286688
{0->00, 1->10}-transform of the Pell word, A171588.
4
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0
OFFSET
1
LINKS
EXAMPLE
As a word, A171588 = 001001000100100010010010001001000..., and replacing each 0 by 00 and each 1 by 10 gives 00001000001000000010000010...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 0, 1}, 1 -> {0}}] &, {0}, 6] (* A171588 *)
w = StringJoin[Map[ToString, s]]
w1 = StringReplace[w, {"0" -> "00", "1"->"10"}]
st = ToCharacterCode[w1] - 48 ; (* A286688 *)
Flatten[Position[st, 0]]; (* A286689 *)
Flatten[Position[st, 1]]; (* A286690 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 13 2017
STATUS
approved