OFFSET
2,3
REFERENCES
Tom M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, Table 10.2, pp. 216-217.
LINKS
Amiram Eldar, Table of n, a(n) for n = 2..10000
EXAMPLE
Smallest primitive root mod 7 is 3; 2 = 3^2 mod 7; 7 is 4th prime; so a(4) = 2.
MATHEMATICA
a[n_] := Module[{p, b, lg = 1}, b = PrimitiveRoot[p = Prime[n]]; While[ PowerMod[b, lg, p] != 2 , lg++]; lg]; Array[a, 100, 2] (* Jean-François Alcover, Sep 03 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 09 2000
EXTENSIONS
More terms from James A. Sellers, Apr 09 2000
STATUS
approved