OFFSET
0,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Beatty Sequence.
FORMULA
a(n)/n converges to e because |a(n)/n-e|=|a(n)-n*e|/n < 1/n. - Hieronymus Fischer, Jan 22 2006
MAPLE
MATHEMATICA
Table[ Floor[n*E], {n, 1, 61}]
PROG
(Haskell)
a022843 n = a022843_list !! n
a022843_list = map (floor . (* e) . fromIntegral) [0..] where e = exp 1
-- Reinhard Zumkeller, Jul 06 2013
(PARI) for (n=0, 100, print1(floor(n*exp(1)), ", ")) \\ Indranil Ghosh, Mar 21 2017
(Python)
import math
from mpmath import mp, e
mp.dps = 100
print([int(math.floor(n*e)) for n in range(51)]) # Indranil Ghosh, Mar 21 2017
(Magma) [Floor(n*Exp(1)): n in [0..60]]; // G. C. Greubel, Sep 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved