OFFSET
1,5
COMMENTS
It appears that only a(4), corresponding to the prime 7, is zero.
LINKS
T. D. Noe, Table of n, a(n) for n=1..2000
Eric Weisstein, MathWorld: Primitive Root
EXAMPLE
a(5)=3 because the primitive roots of 11 are 2, 6, 7 and 8. Adding these numbers to 11 produce three primes: 13, 17 and 19.
MATHEMATICA
Join[{1}, Table[p=Prime[n]; g=Select[Range[2, p-1], MultiplicativeOrder[ #, p]==p-1&]; Length[Select[p+g, PrimeQ]], {n, 2, 2000}]]
Table[Count[p+PrimitiveRootList[p], _?PrimeQ], {p, Prime[Range[80]]}] (* Harvey P. Dale, Aug 03 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Mar 12 2008
STATUS
approved
