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!)
A293338 The integer k that minimizes |k/2^n - e|. 2
3, 5, 11, 22, 43, 87, 174, 348, 696, 1392, 2784, 5567, 11134, 22268, 44536, 89073, 178145, 356291, 712581, 1425163, 2850325, 5700650, 11401300, 22802601, 45605201, 91210403, 182420806, 364841611, 729683222, 1459366444, 2918732889, 5837465777, 11674931555 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = floor(1/2 + e*2^n).
a(n) = A027437(n) if (fractional part of e*2^n) < 1/2, else a(n) = A293337(n).
MATHEMATICA
z = 120; r = E;
Table[Floor[r*2^n], {n, 0, z}]; (* A027437 *)
Table[Ceiling[r*2^n], {n, 0, z}]; (* A293337 *)
Table[Round[r*2^n], {n, 0, z}]; (* A293338 *)
CROSSREFS
Sequence in context: A352006 A004039 A341532 * A168655 A005830 A007008
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 10 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 April 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)