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
2, 27, 271, 2718, 27182, 271828, 2718281, 27182818, 271828182, 2718281828, 27182818284, 271828182845, 2718281828459, 27182818284590, 271828182845904, 2718281828459045, 27182818284590452, 271828182845904523, 2718281828459045235, 27182818284590452353, 271828182845904523536 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) <= A011544(n) <= a(n)+1. - Danny Rorabaugh, Mar 07 2015
LINKS
FORMULA
a(n) = floor(e*10^n).
MATHEMATICA
Module[{nn=30, edgs}, edgs=RealDigits[E, 10, nn][[1]]; Table[ FromDigits[ Take[ edgs, n]], {n, nn}]] (* Harvey P. Dale, Oct 04 2017 *)
PROG
(PARI) a(n) = floor(exp(1)*10^n); \\ Michel Marcus, Mar 08 2015
(Python)
from sympy import E
def a(n): return int(E*10**n)
print([a(n) for n in range(21)]) # Michael S. Branicky, Feb 27 2021
CROSSREFS
Sequence in context: A267547 A302174 A195604 * A221186 A220530 A199021
KEYWORD
nonn,easy,base
AUTHOR
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 30 04:04 EDT 2024. Contains 372118 sequences. (Running on oeis4.)