cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A090583 Gosper's approximation to n!, sqrt((2*n+1/3)*Pi)*n^n/e^n, rounded to nearest integer.

This page as a plain text file.
%I A090583 #33 Feb 16 2025 08:32:52
%S A090583 1,1,2,6,24,120,720,5039,40316,362851,3628561,39914615,478979481,
%T A090583 6226774954,87175314872,1307635379670,20922240412500,355679137660826,
%U A090583 6402240370021199,121642823201649058,2432860847996122437,51090157192742729183,1123984974735953018069
%N A090583 Gosper's approximation to n!, sqrt((2*n+1/3)*Pi)*n^n/e^n, rounded to nearest integer.
%H A090583 G. C. Greubel, <a href="/A090583/b090583.txt">Table of n, a(n) for n = 0..449</a> (terms 0..200 from Alois P. Heinz)
%H A090583 Peter Luschny, <a href="http://oeis.org/wiki/User:Peter_Luschny/FactorialFunction">Approximations to the Factorial Function</a>.
%H A090583 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/StirlingsApproximation.html">Stirling's Approximation</a>.
%p A090583 Digits:= 2000;
%p A090583 a:= n-> round(sqrt((2*n+1/3)*Pi)*n^n/exp(n)):
%p A090583 seq(a(n), n=0..30);  # _Alois P. Heinz_, Feb 04 2013
%t A090583 Join[{1}, Table[Round[Sqrt[(2*n + 1/3)*Pi]*n^n/Exp[n]], {n, 1, 50}]] (* _G. C. Greubel_, Nov 28 2017 *)
%o A090583 (PARI) a(n) = round(sqrt((2*n+1/3)*Pi)*n^n/exp(n)); \\ _Bill McEachen_, Aug 16 2014
%o A090583 (Magma) C<i> := ComplexField(); [Round(Sqrt((2*n + 1/3)*Pi(C))*n^n/Exp(n)): n in [0..30]]; // _G. C. Greubel_, Nov 28 2017
%Y A090583 Cf. A000142, A005394, A055775.
%K A090583 nonn
%O A090583 0,3
%A A090583 _Hugo Pfoertner_, Jan 10 2004