login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A024506 A068033 A293337 * A287425 A088052 A045693
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 11 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 22 14:07 EDT 2024. Contains 375369 sequences. (Running on oeis4.)