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”).

A065731
Largest square <= n!.
3
1, 1, 1, 4, 16, 100, 676, 4900, 40000, 362404, 3625216, 39904489, 478996996, 6226945921, 87177877081, 1307672296225, 20922784184449, 355687416544329, 6402373660047556, 121645099966283776, 2432902006216007824, 51090942169052381124, 1124000727752683686724
OFFSET
0,4
LINKS
FORMULA
a(n) = floor(sqrt(n!))^2.
a(n) = A048760(A000142(n)).
MATHEMATICA
Array[Floor@ Sqrt[#!]^2 &, 21, 0] (* Michael De Vlieger, Dec 06 2018 *)
PROG
(PARI) a(n) = { sqrtint(n!)^2 } \\ Harry J. Smith, Oct 28 2009
(Magma) [Floor(Sqrt(Factorial(n)))^2: n in [0..25]]; // Vincenzo Librandi, Dec 07 2018
CROSSREFS
KEYWORD
easy,nonn,changed
AUTHOR
Labos Elemer, Nov 15 2001
EXTENSIONS
Offset changed from 1 to 0 by Harry J. Smith, Oct 28 2009
STATUS
approved