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!)
A293341 The integer k that minimizes |k/2^n - 1/e|. 4
0, 1, 1, 3, 6, 12, 24, 47, 94, 188, 377, 753, 1507, 3014, 6027, 12055, 24109, 48219, 96437, 192875, 385750, 771499, 1542998, 3085996, 6171993, 12343986, 24687971, 49375943, 98751886, 197503771, 395007542, 790015084, 1580030169, 3160060337, 6320120675 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = floor(1/2 + (1/e)*2^n).
a(n) = A293339(n) if (fractional part of (1/e)*2^n) < 1/2, else a(n) = A293340(n).
MATHEMATICA
z = 120; r = 1/E;
Table[Floor[r*2^n], {n, 0, z}]; (* A293339 *)
Table[Ceiling[r*2^n], {n, 0, z}]; (* A293340 *)
Table[Round[r*2^n], {n, 0, z}]; (* A293341 *)
CROSSREFS
Sequence in context: A264507 A137711 A068032 * A048719 A115807 A366277
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 16 11:35 EDT 2024. Contains 371711 sequences. (Running on oeis4.)