login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A284790
Positions of 0 in A284789; complement of A284791.
3
1, 4, 5, 6, 7, 10, 11, 12, 14, 16, 17, 18, 19, 21, 23, 24, 25, 28, 29, 30, 31, 34, 35, 36, 38, 40, 41, 42, 45, 46, 47, 48, 50, 52, 53, 54, 55, 58, 59, 60, 62, 64, 65, 66, 67, 69, 71, 72, 73, 76, 77, 78, 79, 81, 83, 84, 85, 86, 89, 90, 91, 93, 95, 96, 97, 100
OFFSET
1,2
COMMENTS
a(n) - a(n-1) is in {1,2,3} for n>=2. Conjecture: a(n)/n -> 3/2.
LINKS
EXAMPLE
As a word, A284789 = 0110000110001010..., in which 0 is in positions 1,4,5,6,7,10,...
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {1, 0}}] &, {0}, 9] (* A010060 *)
w = StringJoin[Map[ToString, s]]
w1 = StringReplace[w, {"1001" -> "0"}]
st = ToCharacterCode[w1] - 48 (* A284789 *)
Flatten[Position[st, 0]] (* A284790 *)
Flatten[Position[st, 1]] (* A284791 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 09 2017
STATUS
approved