[go: up one dir, main page]

login
A286692
Positions of 0 in A286691; complement of A286693.
3
1, 3, 4, 6, 9, 10, 12, 13, 15, 18, 19, 21, 22, 24, 25, 27, 30, 31, 33, 34, 36, 39, 40, 42, 43, 45, 46, 48, 51, 52, 54, 55, 57, 60, 61, 63, 64, 66, 69, 70, 72, 73, 75, 76, 78, 81, 82, 84, 85, 87, 90, 91, 93, 94, 96, 97, 99, 102, 103, 105, 106, 108, 111, 112
OFFSET
1,2
COMMENTS
a(n) - a(n-1) is in {1,2,3} for n>=2, and a(n)/n -> 4 - sqrt(8).
LINKS
EXAMPLE
As a word, A286691 = 0100101100100101100100100101100100..., in which 0 is in positions 1,3,4,6,9,...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 0, 1}, 1 -> {0}}] &, {0}, 6] (* A171588 *)
w = StringJoin[Map[ToString, s]]
w1 = StringReplace[w, {"0" -> "010", "1"->"110"}]
st = ToCharacterCode[w1] - 48 ; (* A286691 *)
Flatten[Position[st, 0]]; (* A286692 *)
Flatten[Position[st, 1]]; (* A286693 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 13 2017
STATUS
approved