OFFSET
0,5
COMMENTS
a(n) = A005361(n!). For n >= 2, a(n) = the number of positive divisors of n! which themselves are each divisible by every prime <= n. For p = any prime, a(p) = a(p-1). a(0)=a(1)=1 because the product of the exponents is over the empty set.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000 (first 1001 terms from G. C. Greubel)
Jean-Marie De Koninck and William Verreault, Arithmetic functions at factorial arguments, Publications de l'Institut Mathematique, Vol. 115, No. 129 (2024), pp. 45-76.
FORMULA
a(n) = exp((n/log(n)) * (Sum_{k=0..M} e_k/log(n)^k) + O(n/log(n)^(M+2))) for any given integer M >= 0, where e_k = k! * Sum_{j=0..k} (1/j!) * Sum_{s>=1} (log(s+1)^j/(s+1))*log(1+1/s) are constants (e_0 = A085361) (De Koninck and Verreault, 2024, p. 54, Theorem 4.4). - Amiram Eldar, Dec 10 2024
EXAMPLE
6! = 720 has a prime factorization of 2^4 * 3^2 * 5^1. So a(6) = 4*2*1 = 8.
Also, 720 is divisible by a(6)=8 positive divisors which themselves are each divisible by every prime <= 6 (i.e., are each divisible by 2*3*5 = 30): 30, 60, 90, 120, 180, 240, 360, 720.
MAPLE
A005361 := proc(n) mul( op(2, i), i=ifactors(n)[2]) ; end: A135291 := proc(n) A005361(n!) ; end: seq(A135291(n), n=0..50) ; # R. J. Mathar, Dec 12 2007
# Alternative:
b:= proc(n) option remember; `if`(n<1, 1,
b(n-1)+add(i[2]*x^i[1], i=ifactors(n)[2]))
end:
a:= n-> mul(i, i=coeffs(b(n))):
seq(a(n), n=0..44); # Alois P. Heinz, Jun 02 2025
MATHEMATICA
Table[Product[FactorInteger[n! ][[i, 2]], {i, 1, Length[FactorInteger[n! ]]}], {n, 0, 50}] (* Stefan Steinerberger, Dec 05 2007 *)
Table[Times@@Transpose[FactorInteger[n!]][[2]], {n, 0, 50}] (* Harvey P. Dale, Aug 16 2011 *)
PROG
(PARI) valp(n, p)=my(s); while(n\=p, s+=n); s
a(n)=my(s=1); forprime(p=2, n\2, s*=valp(n, p)); s \\ Charles R Greathouse IV, Oct 09 2016
(Python)
from math import prod
from collections import Counter
from sympy import factorint
def A135291(n): return prod(sum((Counter(factorint(i)) for i in range(2, n+1)), start=Counter()).values()) # Chai Wah Wu, Jun 02 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 03 2007
EXTENSIONS
More terms from Stefan Steinerberger and R. J. Mathar, Dec 05 2007
STATUS
approved
