login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A054513
Log_b 10 where b is smallest primitive root (A001918) mod n-th prime.
10
5, 10, 3, 17, 3, 23, 14, 24, 8, 10, 19, 48, 7, 23, 16, 34, 9, 66, 28, 86, 35, 25, 45, 48, 25, 95, 33, 47, 85, 87, 105, 32, 142, 16, 41, 40, 139, 157, 94, 35, 90, 46, 133, 47, 12, 119, 5, 204, 88, 115, 103, 191, 209, 54, 148, 110, 110, 174, 94, 218, 1, 244, 27, 1, 278, 315
OFFSET
5,1
REFERENCES
Tom M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, Table 10.2, pp. 216-217.
LINKS
MATHEMATICA
a[n_] := Module[{p, b, lg = 1}, b = PrimitiveRoot[p = Prime[n]]; While[ PowerMod[b, lg, p] != 10, lg++]; lg]; Array[a, 100, 5] (* Jean-François Alcover, Sep 03 2016 *)
PROG
(PARI) a(n)=znlog(10, znprimroot(prime(n))) \\ Charles R Greathouse IV, Oct 03 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 09 2000
EXTENSIONS
More terms from James A. Sellers, Apr 09 2000
STATUS
approved