login
A286690
Positions of 1 in A286688; complement of A286689.
3
5, 11, 19, 25, 33, 39, 45, 53, 59, 67, 73, 79, 87, 93, 101, 107, 115, 121, 127, 135, 141, 149, 155, 161, 169, 175, 183, 189, 197, 203, 209, 217, 223, 231, 237, 243, 251, 257, 265, 271, 277, 285, 291, 299, 305, 313, 319, 325, 333, 339, 347, 353, 359, 367, 373
OFFSET
1,1
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, A286688 = 00001000001000000010000010..., in which 1 is in positions 5,11,19,25,...
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