OFFSET
0,7
COMMENTS
All terms are squarefree (A005117). - Michel Marcus, Feb 15 2016
LINKS
David A. Corneth, Table of n, a(n) for n = 0..7585
FORMULA
a(n) = rad(n!)/core(n!) = A336643(n!). - Benoit Cloitre, Mar 12 2022
EXAMPLE
In the prime power factorization 2^7*3^4*5*7 of 9! only the exponent of 3 is even. Thus a(9)=3.
MATHEMATICA
Table[Times@@Select[FactorInteger[n!], EvenQ[#[[2]]]&][[;; , 1]], {n, 0, 50}] (* Harvey P. Dale, Feb 24 2023 *)
PROG
(PARI) a(n) = {my(f = factor(n!)); for (k=1, #f~, f[k, 2] = 1 - (f[k, 2] % 2); ); factorback(f); } \\ Michel Marcus, Feb 15 2016
(PARI) a(n) = {my(res=1); forprime(p=2, n\2, e=val(n, p); if(e%2==0, res*=p)); res}
val(n, p) = my(r=0); while(n, r+=n\=p); r \\ David A. Corneth, Feb 24 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Apr 06 2014
EXTENSIONS
More terms from Michel Marcus, Feb 15 2016
STATUS
approved