OFFSET
1,1
EXAMPLE
a(3) = 53 because the primitive roots mod 53 are 2, 3, 5, 8, 12, 14, 18, 19, 20, 21, 22, 26, 27, ... and the 3 smallest are the first 3 primes 2, 3 and 5.
MATHEMATICA
p=2; t=1; Do[k=2; p=NextPrime@p; While[!Xor[PrimeQ@k, MultiplicativeOrder[k, p]==p-1], k++]; If[k>Prime@t, Print@p; t++; p=NextPrime[p, -1]], 10^6]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Giorgos Kalogeropoulos, Jul 02 2022
STATUS
approved