|
|
|
|
3, 4, 5, 8, 9, 10, 12, 13, 14, 17, 18, 19, 21, 22, 23, 26, 27, 28, 31, 32, 33, 35, 36, 37, 40, 41, 42, 44, 45, 46, 49, 50, 51, 54, 55, 56, 58, 59, 60, 63, 64, 65, 67, 68, 69, 72, 73, 74, 76, 77, 78, 81, 82, 83, 86, 87, 88, 90, 91, 92, 95, 96, 97, 99, 100
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(n) - a(n-1) is in {1,2,3} for n >= 2, and a(n)/n -> (6 - sqrt(2))/3.
|
|
LINKS
|
|
|
EXAMPLE
|
As a word, A286993 = 11000110001000110..., in which 0 is in positions 3,4,5,8,9,...
|
|
MATHEMATICA
|
s = Nest[Flatten[# /. {0 -> 1, 1 -> {1, 1, 0}}] &, {1}, 11]; (* Sturmian word A080764 *)
w = StringJoin[Map[ToString, s]];
w1 = StringReplace[w, {"0" -> "000", "111"->"1"}]
st = ToCharacterCode[w1] - 48 ; (* A286993 *)
Flatten[Position[st, 0]]; (* A286994 *)
Flatten[Position[st, 1]]; (* A286995 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|