login
A286806
Positions of 1 in A286804; complement of A286805.
4
3, 6, 7, 10, 11, 14, 17, 18, 21, 22, 25, 28, 29, 32, 33, 36, 37, 40, 43, 44, 47, 48, 51, 54, 55, 58, 59, 62, 63, 66, 69, 70, 73, 74, 77, 80, 81, 84, 85, 88, 91, 92, 95, 96, 99, 100, 103, 106, 107, 110, 111, 114, 117, 118, 121, 122, 125, 126, 129, 132, 133
OFFSET
1,1
COMMENTS
a(n) - a(n-1) is in {1,3} for n>=2, and a(n)/n -> 5 - 2*sqrt(2).
LINKS
EXAMPLE
As a word, A286804 = 0010011001100100110011..., in which 1 is in positions 3,6,7,10,11,...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 0, 1}, 1 -> {0}}] &, {0}, 16]; (* Pell word, A171588 *)
w = StringJoin[Map[ToString, s]];
w1 = StringReplace[w, {"000" -> ""}];
st = ToCharacterCode[w1] - 48 ; (* A286804 *)
Flatten[Position[st, 0]]; (* A286805 *)
Flatten[Position[st, 1]]; (* A286806 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 17 2017
STATUS
approved