OFFSET
0,5
COMMENTS
a(n) is a square for all n except n = 4, 5 and 21 (Wilke, 1981). - Amiram Eldar, Jun 09 2022
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..500
Eric Weisstein's World of Mathematics, Perfect Powers.
Eric Weisstein's World of Mathematics, Factorial.
Kenneth M. Wilke, Problem 493, Pi Mu Epsilon Journal, Vol. 7, No. 4 (1981), p. 265; alternative link.
FORMULA
a(n)= n!/A251753(n). - Robert G. Wilson v, Dec 08 2014
MAPLE
f:= proc(n)
local F, k, d, r, s;
F:= ifactors(n!)[2];
r:= 1;
for k from 2 to F[1][2] do
r:= max(r, mul(f[1]^(k*floor(f[2]/k)), f=F))
od:
r
end proc:
1, 1, seq(f(n), n=2..100); # Robert Israel, Dec 08 2014
MATHEMATICA
IsPower[n_] := If[n==1, True, GCD@@(Transpose[FactorInteger[n]][[2]])>1]; Table[Select[Divisors[n! ], IsPower][[ -1]], {n, 0, 25}]
PROG
(PARI) a(n)=my(f=factor(n!), m=1); for(i=2, if(#f~, f[1, 2]), m=max(factorback(concat(Mat(f[, 1]), f[, 2]\i*i)), m)); m \\ Charles R Greathouse IV, Dec 09 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 13 2003
EXTENSIONS
More terms from T. D. Noe, Oct 04 2004
STATUS
approved