OFFSET
1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
EXAMPLE
Iterates, starting with 00:
00
0010
0010100
0010100100010
00101001000101000100100
001010010001010001001001000100100010100010
MATHEMATICA
s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];
w[n_] := StringReplace[w[n - 1], {"00" -> "0010", "1" -> "10"}]
Table[w[n], {n, 0, 8}]
st = ToCharacterCode[w[11]] - 48 (* A287931 *)
Flatten[Position[st, 0]] (* A287379 *)
Flatten[Position[st, 1]] (* A287380 *)
Table[StringLength[w[n]], {n, 1, 35}] (* A287381 conjectured *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 06 2017
STATUS
approved