OFFSET
0,3
COMMENTS
We have two versions of this sequence, this and A240571, because there is no universal agreement on how to round a number like 9/2. - N. J. A. Sloane, Dec 13 2015
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
MAPLE
a:= n-> round(n^n/n!):
seq(a(n), n=0..32); # Alois P. Heinz, Dec 13 2015
MATHEMATICA
Table[Floor[n^n/n! + 1/2], {n, 40}]
PROG
(Magma) [Round(n^n/Factorial(n)): n in [1..40]];
(PARI) s=[]; for(n=1, 30, s=concat(s, round(n^n/n!))); s \\ Colin Barker, Jan 19 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 15 2014
STATUS
approved