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

A065616
a(n) = floor(log_2(n)*2^n/n).
2
0, 2, 4, 8, 14, 27, 51, 96, 180, 340, 644, 1223, 2331, 4455, 8534, 16384, 31514, 60728, 117217, 226593, 438636, 850191, 1649842, 3205121, 6232878, 12132352, 23636673, 46088018, 89934782, 175624455, 343195340, 671088640, 1313061077, 2570645473
OFFSET
1,2
LINKS
MATHEMATICA
Table[Floor[Log[2, n] 2^n/n], {n, 40}] (* Harvey P. Dale, Mar 12 2018 *)
PROG
(PARI) { default(realprecision, 100); t=1/log(2); for (n=1, 200, write("b065616.txt", n, " ", floor( t*log(n)*2^n/n + 0.0000001)) ) } \\ Harry J. Smith, Oct 24 2009
(Maxima) makelist(floor(log(n)/log(2)*2^n/n), n, 1, 50); /* Martin Ettl, Oct 17 2012 */
CROSSREFS
Sequence in context: A048140 A179817 A214255 * A164147 A321402 A210669
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 03 2001
EXTENSIONS
a(8) corrected, a(34) added by Harry J. Smith, Oct 24 2009
STATUS
approved