login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A293354 The integer k that minimizes |k/2^n - r|, where r = Euler's constant (0.577216...). 3
1, 1, 2, 5, 9, 18, 37, 74, 148, 296, 591, 1182, 2364, 4729, 9457, 18914, 37828, 75657, 151314, 302627, 605254, 1210509, 2421018, 4842036, 9684072, 19368144, 38736288, 77472575, 154945150, 309890300, 619780601, 1239561202, 2479122403, 4958244807, 9916489614 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Clark Kimberling, Table of n, a(n) for n = 0..1000

FORMULA

a(n) = floor(1/2 + r*2^n), where r = Euler's constant (0.577216...).

a(n) = A293352(n) if (fractional part of r*2^n) < 1/2, else a(n) = A293353(n).

MATHEMATICA

z = 120; r = EulerGamma;

Table[Floor[r*2^n], {n, 0, z}];   (* A293352 *)

Table[Ceiling[r*2^n], {n, 0, z}]; (* A293353 *)

Table[Round[r*2^n], {n, 0, z}];   (* A293354 *)

PROG

(PARI) for(n=0, 50, print1(round(Euler*2^n), ", ")) \\ G. C. Greubel, Aug 29 2018

(MAGMA) R:= RealField(100); [Round(EulerGamma(R)*2^n) : n in [0..50]]; // G. C. Greubel, Aug 29 2018

CROSSREFS

Cf. A001620, A293352, A293353.

Sequence in context: A068036 A077947 A077972 * A293329 A152546 A286713

Adjacent sequences:  A293351 A293352 A293353 * A293355 A293356 A293357

KEYWORD

nonn,easy

AUTHOR

Clark Kimberling, Oct 09 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 03:36 EDT 2019. Contains 322294 sequences. (Running on oeis4.)