This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A054509 #15 Jul 02 2025 16:01:59 %S A054509 3,9,5,15,14,18,6,25,27,1,28,38,18,51,7,40,32,14,5,73,17,8,70,83,71,1, %T A054509 13,73,73,11,42,88,1,67,102,134,28,109,57,160,118,182,107,44,181,47,1, %U A054509 73,140,132,1,49,240,110,1,59,205,160,158,174,186,18,250,122,282,153 %N A054509 Log_b 6 where b is smallest primitive root (A001918) mod n-th prime. %D A054509 Tom M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, Table 10.2, pp. 216-217. %H A054509 Amiram Eldar, <a href="/A054509/b054509.txt">Table of n, a(n) for n = 4..10000</a> %t A054509 a[n_] := Module[{p, b, lg = 1}, b = PrimitiveRoot[p = Prime[n]]; While[ PowerMod[b, lg, p] != 6, lg++]; lg]; Array[a, 100, 4] (* _Jean-François Alcover_, Sep 03 2016 *) %Y A054509 Cf. table in A054503. %Y A054509 Cf. A001918, A054505, A054506, A054507, A054508, A054510, A054511, A054512, A054513. %K A054509 nonn,easy %O A054509 4,1 %A A054509 _N. J. A. Sloane_, Apr 09 2000 %E A054509 More terms from _James Sellers_, Apr 09 2000