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”).
%I #14 Sep 08 2022 08:44:40
%S 0,1,1,5,21,116,751,5628,47811,453999,4765190,54782415,684597510,
%T 9239952802,133952757201,2075907567336,34247231626810,599244998013964,
%U 11084682598687313,216127622080213321
%N Nearest integer to (n/e)^n.
%H G. C. Greubel, <a href="/A015558/b015558.txt">Table of n, a(n) for n = 1..445</a>
%p Digits := 64:f := n->round(evalf((n/E)^n));
%t Table[Round[(n/E)^n],{n,20}] (* _Harvey P. Dale_, May 06 2013 *)
%o (PARI) for(n=1,20, print1(round(n^n*exp(-n)), ", ")) \\ _G. C. Greubel_, Dec 30 2017
%o (Magma) [Round(n^n*Exp(-n)): n in [1..30]]; // _G. C. Greubel_, Dec 30 2017
%K nonn
%O 1,4
%A _Simon Plouffe_