login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A015558
Nearest integer to (n/e)^n.
1
0, 1, 1, 5, 21, 116, 751, 5628, 47811, 453999, 4765190, 54782415, 684597510, 9239952802, 133952757201, 2075907567336, 34247231626810, 599244998013964, 11084682598687313, 216127622080213321
OFFSET
1,4
LINKS
MAPLE
Digits := 64:f := n->round(evalf((n/E)^n));
MATHEMATICA
Table[Round[(n/E)^n], {n, 20}] (* Harvey P. Dale, May 06 2013 *)
PROG
(PARI) for(n=1, 20, print1(round(n^n*exp(-n)), ", ")) \\ G. C. Greubel, Dec 30 2017
(Magma) [Round(n^n*Exp(-n)): n in [1..30]]; // G. C. Greubel, Dec 30 2017
CROSSREFS
Sequence in context: A121881 A041321 A082428 * A168598 A002711 A218962
KEYWORD
nonn
AUTHOR
STATUS
approved