login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A005394 Leading term of Stirling's approximation to n!, sqrt(2*Pi)*n^(n+(1/2))/e^n, rounded to nearest integer. 5
0, 1, 2, 6, 24, 118, 710, 4980, 39902, 359537, 3598696, 39615625, 475687486, 6187239475, 86661001741, 1300430722199, 20814114415223, 353948328666101, 6372804626194309, 121112786592293963, 2422786846761133394, 50888617325509644403, 1119751494628234263302 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MAPLE
a:= n-> round(sqrt(2*Pi*n)*(n/exp(1))^n):
seq(a(n), n=0..23); # Alois P. Heinz, Jan 24 2024
MATHEMATICA
Table[Round[Sqrt[2*Pi]*Exp[-n]*n^(n + 1/2)], {n, 0, 100}] (* G. C. Greubel, Aug 16 2018 *)
PROG
(Magma) R:= RealField(); [Round(Sqrt(2*Pi)*Exp(-n)*n^(n + 1/2)): n in [0..100]]; // G. C. Greubel, Aug 16 2018
CROSSREFS
Sequence in context: A328442 A135106 A248837 * A095818 A369098 A264781
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and extended by Hugo Pfoertner, Jan 10 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 06:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)