OFFSET
1,2
LINKS
FORMULA
a(n) = floor(e * n) - floor(e/(e-1) * n). - Franklin T. Adams-Watters, Nov 02 2006
MATHEMATICA
Table[Floor[n*E] - Floor[n*E/(E-1)], {n, 1, 75}] (* G. C. Greubel, Jun 19 2019 *)
PROG
(PARI) my(e=exp(1)); vector(75, n, (n*e)\1 - (n*e)\(e-1)) \\ G. C. Greubel, Jun 19 2019
(Magma) E:=Exp(1); [Floor(n*E) - Floor(n*E/(E-1)): n in [1..75]]; // G. C. Greubel, Jun 19 2019
(Sage) [floor(n*e) - floor(n*e/(e-1)) for n in (1..75)] # G. C. Greubel, Jun 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and extended by Franklin T. Adams-Watters, Nov 02 2006
STATUS
approved