OFFSET
0,7
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = A056626(n!).
MATHEMATICA
f1[p_, e_] := 1 + Floor[e/2]; f2[p_, e_] := 2^(1 - Mod[e, 2]); a[0] = a[1] = 0; a[n_] := Times @@ f1 @@@ (fct = FactorInteger[n!]) - Times @@ f2 @@@ fct; Array[a, 60, 0]
PROG
(PARI) a(n) = {my(e = factor(n!)[, 2]); vecprod(apply(x -> x\2 + 1, e)) - vecprod(apply(x -> 1 << (1 - x%2), e)); }
(Python)
from math import prod
from collections import Counter
from sympy import factorint
def A375188(n):
f = sum((Counter(factorint(m)) for m in range(2, n+1)), start=Counter()).values()
return prod((e>>1)+1 for e in f)-(1<<sum(e&1^1 for e in f)) # Chai Wah Wu, Aug 04 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Aug 03 2024
STATUS
approved