OFFSET
0,6
REFERENCES
T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, Table 10.2, pp. 216-217.
EXAMPLE
Triangle starts:
0;
0,1;
0,1,3,2;
0,2,1,4,5,3;
0,1,8,2,4,9,7,3,6,5;
...
MATHEMATICA
T[n_, k_] := Module[{p, b, lg = 1}, b = PrimitiveRoot[p = Prime[n]]; While[ PowerMod[b, lg, p] != k , lg++]; lg]; T[_, 1] = 0; Table[T[n, k], {n, 1, 10}, {k, 1, Prime[n] - 1}] // Flatten (* Jean-François Alcover, Sep 03 2016 *)
CROSSREFS
KEYWORD
nonn,tabf,nice,easy
AUTHOR
N. J. A. Sloane, Apr 08 2000
EXTENSIONS
More terms from James A. Sellers, Apr 09 2000
STATUS
approved