OFFSET
1,4
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..5000
EXAMPLE
a(5) = 2 because 5! = 120; largest square divisor is 4, squarefree part is 30; GCD(4, 30) = 2.
a(7) = 1 because 7! = 5040; the largest square divisor is 144 and the squarefree part is 35 and these are coprime.
MATHEMATICA
Table[GCD[Times @@ Flatten@ Map[Table[#1, 2 Floor[#2/2]] & @@ # &, #], Times @@ Flatten@ Map[Table[#1, Floor[Mod[#2, 2]]] & @@ # &, #]] &@ FactorInteger[n!], {n, 61}] (* Michael De Vlieger, Jul 26 2016 *)
PROG
(PARI) a(n) = my(fn=n!, cn=core(fn)); gcd(cn, fn/cn); \\ Michel Marcus, Dec 10 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 21 2000
STATUS
approved