| DATA
|
1, 2, 4, 6, 7, 8, 11, 12, 13, 14, 16, 18, 19, 20, 21, 24, 25, 26, 28, 30, 31, 32, 35, 36, 37, 38, 41, 42, 43, 45, 47, 48, 49, 50, 52, 54, 55, 56, 59, 60, 61, 62, 64, 66, 67, 68, 69, 72, 73, 74, 76, 78, 79, 80, 81, 83, 85, 86, 87, 90, 91, 92, 93, 96, 97, 98
|
| MATHEMATICA
|
s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {1, 0}}] &, {0}, 9] (* A010060 *)
w = StringJoin[Map[ToString, s]]
w1 = StringReplace[w, {"0110" -> "1"}]
st = ToCharacterCode[w1] - 48 (* A286064 *)
Flatten[Position[st, 0]] (* A286065 *)
Flatten[Position[st, 1]] (* A286066 *)
|