login
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
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
KEYWORD
nonn,easy,base
AUTHOR
STATUS
approved