OFFSET
1,1
COMMENTS
Also, primes for which -27 is a primitive root. Proof: -27 = (-3)^3, so -27 is a primitive root just when -3 is a primitive root and the prime is not 3k+1. Now if -3 is a primitive root, then -3 is not a quadratic residue and so the prime is not 3k+1. - Don Reble, Sep 15 2007
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
pr=-3; Select[Prime[Range[200]], MultiplicativeOrder[pr, # ] == #-1 &]
PROG
(Python)
from sympy import n_order, nextprime
from itertools import islice
def A105875_gen(startvalue=2): # generator of terms >= startvalue
p = max(startvalue-1, 1)
while (p:=nextprime(p)):
if p!=3 and n_order(-3, p) == p-1:
yield p
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 24 2005
STATUS
approved