VOOZH about

URL: https://oeis.org/A393242

⇱ A393242 - OEIS


login
A393242
a(n) is the number of divisors of n! with exactly n divisors.
2
0, 1, 1, 0, 2, 0, 4, 0, 8, 1, 6, 0, 30, 0, 5, 6, 54, 0, 48, 0, 76, 6, 7, 0, 470, 3, 8, 30, 109, 0, 197, 0, 1151, 10, 10, 9, 1232, 0, 11, 14, 1060, 0, 346, 0, 179, 131, 13, 0, 15117, 6, 156, 16, 305, 0, 1710, 15, 2516, 16, 15, 0, 7367, 0, 17, 212, 44498, 15, 697
OFFSET
0,5
COMMENTS
a(p) = 0 for every odd prime p. Proof: Since, according to the divisor function, tau(k) = product (e_i + 1) = p, we must have k = q^(p - 1) for some prime q. Thus we would need a prime q whose exponent in the factorization of p! equals p - 1. The largest exponent occurs for q = 2. By Legendre's formula v_2(p!) = p - s_2(p), where v_2(p!) is the exponent of 2 in the prime factorization of p!, and s_2(p) is the sum of the binary digits of p. For any odd prime p, the binary expansion contains at least two 1s, so s_2(p) >= 2. Hence v_2(p!) = p - s_2(p) < p - 1. Therefore no prime can occur with exponent p - 1 in p!, so such a k does not exist and a(p) = 0.
LINKS
Eric Weisstein's World of Mathematics, Divisor Function.
Wikipedia, Legendre's formula.
FORMULA
a(p) = 0 for odd primes p.
EXAMPLE
The a(6) = 4 divisors of 6! = 720 with exactly 6 divisors are 12 (1, 2, 3, 4, 6, 12), 18 (1, 2, 3, 6, 9, 18), 20 (1, 2, 4, 5, 10, 20) and 45 (1, 3, 5, 9, 15, 45).
MAPLE
A393242 := proc(N)
local a, i, k, l, n, p, t, b, w;
w := proc(f, g)
local c, e, m, r;
if f = 1 then return 1; end if;
if nops(g) = 0 then return 0; end if;
c := 0;
m := g[1];
r := g[2..-1];
for e from 0 to m do
if f mod (e + 1) = 0 then
c := c + w(f / (e + 1), r);
end if;
end do;
return c;
end proc;
a := [0];
l := [];
t := table();
for n from 1 to N do
p := ifactors(n)[2];
for i in p do
if member(i[1], l) then
t[i[1]] := t[i[1]] + i[2];
else
l := [op(l), i[1]];
t[i[1]] := i[2];
end if;
end do;
b := [seq(t[k], k in l)];
a := [op(a), w(n, b)];
end do;
return a;
end proc:
A393242(66);
MATHEMATICA
a[n_]:=Count[Length/@Divisors[ Divisors[n!]], n]; Array[a, 20, 0] (* James C. McMahon, Feb 24 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Feb 18 2026
STATUS
approved