OFFSET
1,4
COMMENTS
This is taking prime(0)=1. - Robert Israel, Dec 22 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
1, seq(nops(numtheory:-factorset(ithprime(n)*ithprime(n-1)+1)), n=2..100); # Robert Israel, Dec 22 2015
MATHEMATICA
Prepend[Table[PrimeNu[Prime@ n Prime[n - 1] + 1], {n, 2, 80}], 1] (* Michael De Vlieger, Dec 22 2015 *)
PROG
(PARI) a(n) = if (n==1, 1, omega(prime(n)*prime(n-1) + 1)); \\ Michel Marcus, Dec 22 2015
(Magma) [#PrimeDivisors((NthPrime(n)*(NthPrime(n-1))+1)): n in [1..100]]; // Vincenzo Librandi, Dec 23 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved