OFFSET
4,1
LINKS
David A. Corneth, Table of n, a(n) for n = 4..10003
FORMULA
a(n) = A079210(n, 2*n). - Michel Marcus, Apr 25 2022
EXAMPLE
The positive divisors of 5! = 120 are 1,2,3,4,5,6,8,10,12,15,20,24,30,40,60,120. a(5) is the 10th of these, which is 15.
MATHEMATICA
a = {}; For[n = 4, n < 70, n++, i = 1; c = 0; While[c < 2n, If[Mod[n!, i] == 0, c++ ]; i++ ]; AppendTo[a, i - 1]]; a (* Stefan Steinerberger, Nov 24 2007 *)
Table[Divisors[n!][[2n]], {n, 4, 70}] (* Harvey P. Dale, Apr 24 2022 *)
PROG
(PARI) a(n) = { my(t = 0, nf = n!); for(i = n+1, oo, if(nf % i == 0, t++; if(t == n, return(i)) ) ) } \\ David A. Corneth, Apr 25 2022
(Python)
from math import factorial
def a(n):
nf, t = factorial(n), 0
for i in range(n+1, nf+1):
if nf%i == 0: t += 1
if t == n: return i
print([a(n) for n in range(4, 66)]) # Michael S. Branicky, Apr 25 2022 after David A. Corneth
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 20 2007
EXTENSIONS
Corrected and extended by Stefan Steinerberger, Nov 24 2007
STATUS
approved