OFFSET
0,3
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 0..100
FORMULA
If p is prime, then a(p) = p*a(p-1).
a(n) = n! / A090630(n). - Joerg Arndt, Dec 08 2014
MATHEMATICA
perfectPowerQ[n_] := n == 1 || GCD @@ FactorInteger[n][[All, 2]] > 1; f[n_] := Block[{d = Divisors[n!], k = 1}, While[ ! perfectPowerQ[ d[[-k]]], k++]; n!/d[[-k]]]; Array[f, 41, 0] (* or *)
f[n_] := Block[{fi = FactorInteger[n!]}, n!/Times @@ (#1[[1]] ^ (2 Quotient[#1[[2]], 2])&) /@ fi]; f[4] = 3; f[5] = 15; f[21] = 230945; Array[f, 40]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Dec 07 2014
STATUS
approved