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

A293364
The integer k that minimizes |k/2^n - log 2|.
3
1, 1, 3, 6, 11, 22, 44, 89, 177, 355, 710, 1420, 2839, 5678, 11357, 22713, 45426, 90852, 181704, 363409, 726817, 1453635, 2907270, 5814540, 11629080, 23258160, 46516320, 93032640, 186065279, 372130559, 744261118, 1488522236, 2977044472, 5954088944
OFFSET
0,3
LINKS
FORMULA
a(n) = floor(1/2 + (log 2)*2^n).
a(n) = A293362(n) if (fractional part of (log 2)*2^n) < 1/2, else a(n) = A293363(n).
MATHEMATICA
z = 120; r = Log[2];
Table[Floor[r*2^n], {n, 0, z}]; (* A293362 *)
Table[Ceiling[r*2^n], {n, 0, z}]; (* A293363 *)
Table[Round[r*2^n], {n, 0, z}]; (* A293364 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 11 2017
STATUS
approved