OFFSET
1,3
EXAMPLE
For n=2, i=2 gives a prime (3), so a(2)=1.
For n=10, i=2,3,6,8,9 give primes, so a(10)=5.
PROG
(PARI) nphi(n)=local(c); c=0; for (i=1, n-1, if (isprime(i*n-1), c++)); c for(i=1, 60, print1(", "nphi(i)))
(PARI) a(n) = sum(i=1, n, isprime(i*n-1)); \\ Michel Marcus, Mar 17 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jul 28 2003
EXTENSIONS
a(2) corrected and more terms from Michel Marcus, Mar 17 2014
STATUS
approved