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.

A055227 Nearest integer to sqrt( n! ).

This page as a plain text file.
%I A055227 #20 Dec 10 2024 15:00:32
%S A055227 1,1,1,2,5,11,27,71,201,602,1905,6318,21886,78911,295260,1143536,
%T A055227 4574144,18859677,80014834,348776577,1559776269,7147792818,
%U A055227 33526120082,160785623545,787685471323,3938427356615,20082117944246,104349745809074,552166953567228
%N A055227 Nearest integer to sqrt( n! ).
%H A055227 T. D. Noe, <a href="/A055227/b055227.txt">Table of n, a(n) for n = 0..300</a>
%F A055227 a(n) = A000194(A000142(n)).
%t A055227 Round[Sqrt[Range[0,30]!]] (* _Harvey P. Dale_, Aug 27 2013 *)
%o A055227 (Python)
%o A055227 from gmpy2 import isqrt
%o A055227 A055227_list, g = [1], 1
%o A055227 for i in range(1, 101):
%o A055227     g *= i
%o A055227     s = isqrt(g)
%o A055227     A055227_list.append(int(s if g-s*(s+1) <= 0 else s+1))  # _Chai Wah Wu_, Jul 24 2015
%Y A055227 Cf. A000142, A000194, A260373.
%K A055227 easy,nonn
%O A055227 0,4
%A A055227 _Henry Bottomley_, Jun 21 2000