login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A095997
Number of divisors of n! that are coprime to n.
1
1, 1, 2, 2, 8, 2, 30, 12, 32, 10, 270, 12, 792, 72, 144, 336, 5376, 96, 14688, 432, 1520, 1600, 96000, 960, 48576, 7392, 48384, 7056, 917280, 720, 2332800, 172800, 122880, 122880, 304128, 31104, 19595520, 559872, 1119744, 262656, 102435840, 46080, 258048000, 3225600, 3386880
OFFSET
1,3
COMMENTS
a(p_i) < a(p_j) for i<j.
LINKS
MATHEMATICA
f[n_] := Length[ Select[ Divisors[n! ], GCD[ #, n] == 1 &]]; Table[ f[n], {n, 33}]
PROG
(PARI) a(n)={if(n<=2, 1, numdiv(Mat(select(f->n%f[1], Col(factor(n!))))))} \\ Andrew Howroyd, Nov 05 2019
CROSSREFS
Sequence in context: A363418 A245497 A086328 * A274139 A283995 A056189
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jul 19 2004, based on a suggestion from Leroy Quet, Jun 18 2004
EXTENSIONS
Terms a(34) and beyond from Andrew Howroyd, Nov 05 2019
STATUS
approved