OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2000
FORMULA
MAPLE
for i from 1 to 500 do if isprime(i) then print(tau(i+1)); fi; od;
A008329 := proc(n)
numtheory[tau](ithprime(n)+1) ;
end proc: # R. J. Mathar, Oct 30 2015
MATHEMATICA
DivisorSigma[0, #]&/@(Prime[Range[100]]+1) (* Harvey P. Dale, Apr 12 2011 *)
PROG
(PARI) a(n) = numdiv(prime(n)+1); \\ Michel Marcus, Mar 25 2018
(Magma) [NumberOfDivisors(NthPrime(n)+1): n in [1..100]]; // Vincenzo Librandi, Mar 25 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset corrected by Leroy Quet, Oct 08 2008
STATUS
approved