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!)
A011543 Decimal expansion of e truncated to n places. 9

%I #25 Feb 27 2021 10:09:22

%S 2,27,271,2718,27182,271828,2718281,27182818,271828182,2718281828,

%T 27182818284,271828182845,2718281828459,27182818284590,

%U 271828182845904,2718281828459045,27182818284590452,271828182845904523,2718281828459045235,27182818284590452353,271828182845904523536

%N Decimal expansion of e truncated to n places.

%C a(n) <= A011544(n) <= a(n)+1. - _Danny Rorabaugh_, Mar 07 2015

%H Danny Rorabaugh, <a href="/A011543/b011543.txt">Table of n, a(n) for n = 0..999</a>

%F a(n) = floor(e*10^n).

%t Module[{nn=30,edgs},edgs=RealDigits[E,10,nn][[1]];Table[ FromDigits[ Take[ edgs, n]],{n,nn}]] (* _Harvey P. Dale_, Oct 04 2017 *)

%o (PARI) a(n) = floor(exp(1)*10^n); \\ _Michel Marcus_, Mar 08 2015

%o (Python)

%o from sympy import E

%o def a(n): return int(E*10**n)

%o print([a(n) for n in range(21)]) # _Michael S. Branicky_, Feb 27 2021

%Y Cf. A001113, A011544.

%Y Cf. A011545, A011547, A011549, A011551.

%K nonn,easy,base

%O 0,1

%A _N. J. A. Sloane_.

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)