login
A286803
Positions of 1 in A286801; complement of A286802.
3
1, 2, 4, 5, 8, 10, 11, 13, 14, 17, 19, 20, 22, 23, 25, 26, 29, 31, 32, 34, 35, 38, 40, 41, 43, 44, 46, 47, 50, 52, 53, 55, 56, 59, 61, 62, 64, 65, 68, 70, 71, 73, 74, 76, 77, 80, 82, 83, 85, 86, 89, 91, 92, 94, 95, 97, 98, 101, 103, 104, 106, 107, 110, 112
OFFSET
1,2
COMMENTS
a(n) - a(n-1) is in {1,2,3} for n>=2, and a(n)/n -> 6 - 3*sqrt(2).
LINKS
EXAMPLE
As a word, A286801 = 11011001011011001011011..., in which 1 is in positions 1,2,4,5,8,10,...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 0, 1}, 1 -> {0}}] &, {0}, 16]; (* Pell word, A171588 *)
w = StringJoin[Map[ToString, s]];
w1 = StringReplace[w, {"0" -> "110", "1" -> "010"}];
st = ToCharacterCode[w1] - 48 ; (* A286801 *)
Flatten[Position[st, 0]]; (* A286802 *)
Flatten[Position[st, 1]]; (* A286803 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 16 2017
STATUS
approved