OFFSET
0,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
EXAMPLE
2 * e = 5.436563656918..., so a(2) = 5.
3 * e = 8.1548454853771357..., so a(3) = 8.
4 * e = 10.87312731383618..., so a(4) = 11.
MATHEMATICA
Round[E * Range[0, 60]] (* Harvey P. Dale, Jan 08 2014 *)
PROG
(PARI) a(n)=n*exp(1)\1 \\ Charles R Greathouse IV, Jan 08 2014
(Haskell)
a022852 = round . (* exp 1) . fromIntegral
-- Reinhard Zumkeller, Mar 17 2015
(Magma) [Round(n*Exp(1)): n in [0..60]]; // G. C. Greubel, Sep 29 2018
(Scala) (0L to 59L).map(n => Math.round(n * Math.E)) // Alonso del Arte, Dec 14 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Zero prepended by Harvey P. Dale, Jan 08 2014
STATUS
approved