OFFSET
1,2
COMMENTS
Also the number of irreducible factors of Phi(p,x)-1, for cyclotomic polynomial Phi(p,x) and prime p. The formula is Phi(p,x)-1 = x*Product_{n>1, n|p-1} Phi(n,x). - T. D. Noe, Oct 17 2003
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Karl Prachar, Über die Anzahl der Teiler einer natürlichen Zahl, welche die Form p-1 haben, Monatshefte für Mathematik, Vol. 59 (1955), pp. 91-97.
Eric Weisstein's World of Mathematics, Cyclotomic Polynomial.
FORMULA
From Amiram Eldar, Apr 16 2024: (Start)
Formulas from Prachar (1955):
Sum_{prime(n) < x} a(n) = x * log(log(x)) + B*x + O(x/log(x)), where B is a constant.
There is a constant c > 0 such that for infinitely many values of n we have a(n) > exp(c * log(prime(n))/log(log(prime(n))))). (End)
MAPLE
for i from 1 to 500 do if isprime(i) then print(tau(i-1)); fi; od;
A008328 := proc(n)
numtheory[tau](ithprime(n)-1) ;
end proc: # R. J. Mathar, Oct 30 2015
MATHEMATICA
DivisorSigma[0, #-1]&/@Prime[Range[90]] (* Harvey P. Dale, Dec 08 2011 *)
PROG
(PARI) a(n) = numdiv(prime(n)-1); \\ Michel Marcus, Feb 25 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved