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”).

A043687
a(n) = (s(n)-1)/2, where s(n) is the n-th number whose base-2 representation has exactly 3 runs.
3
2, 4, 5, 6, 8, 9, 11, 12, 13, 14, 16, 17, 19, 23, 24, 25, 27, 28, 29, 30, 32, 33, 35, 39, 47, 48, 49, 51, 55, 56, 57, 59, 60, 61, 62, 64, 65, 67, 71, 79, 95, 96, 97, 99, 103, 111, 112, 113, 115, 119, 120, 121, 123, 124, 125, 126, 128, 129
OFFSET
1,1
COMMENTS
a(n) = A238246(n) - 1. - Reinhard Zumkeller, Feb 20 2014
LINKS
MATHEMATICA
(# - 1)/2&/@Select[Range[1000], Length[Split[IntegerDigits[#, 2]]]==3&] (* Vincenzo Librandi, Feb 22 2014 *)
CROSSREFS
Cf. A238246.
Sequence in context: A366160 A288174 A280998 * A087118 A249115 A039032
KEYWORD
nonn,base
STATUS
approved