OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..2000
Aviezri S. Fraenkel, Jonathan Levitt, Michael Shimshoni, Characterization of the set of values f(n)=[n alpha], n=1,2,..., Discrete Math. 2 (1972), no.4, 335-345.
Eric Weisstein's World of Mathematics, Beatty Sequence.
FORMULA
a(n) = floor(n*(e^2+1)/(e^2-e+1)). - Michel Marcus, Jan 05 2015
MAPLE
A059564:=n->floor(n*(exp(1)^2+1)/(exp(1)^2-exp(1)+1)): seq(A059564(n), n=1..100); # Wesley Ivan Hurt, Jan 03 2016
MATHEMATICA
Table[Floor[n (E^2 + 1)/(E^2 - E + 1)], {n, 80}] (* Wesley Ivan Hurt, Jan 03 2016 *)
PROG
(PARI) { default(realprecision, 100); e=exp(1); b=(e^2 + 1)/(e^2 - e + 1); for (n = 1, 2000, write("b059564.txt", n, " ", floor(n*b)); ) } \\ Harry J. Smith, Jun 28 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mitch Harris, Jan 22 2001
STATUS
approved