OFFSET
1,6
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
MATHEMATICA
Table[Length@Select[FactorInteger[n!], EvenQ@Last@#&], {n, 80}] (* Giorgos Kalogeropoulos, Nov 02 2021 *)
PROG
(PARI) a(n) = my(f=factor(n!)); #select(x->(! (x%2)), f[, 2]); \\ Michel Marcus, Nov 03 2021
(PARI) a(n) = my(res = 0); forprime(p = 2, n\2, res+=(val(n, p)%2==0)); res
val(n, p) = my(r=0); while(n, r+=n\=p); r \\ David A. Corneth, Nov 03 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wolfdieter Lang, Nov 02 2021
STATUS
approved