A086145 Triangle read by rows in which T(n,k) is the least positive integer s such that p divides k^s-1, where p=prime(n) and k ranges from 1 to p-1.
1, 1, 2, 1, 4, 4, 2, 1, 3, 6, 3, 6, 2, 1, 10, 5, 5, 5, 10, 10, 10, 5, 2, 1, 12, 3, 6, 4, 12, 12, 4, 3, 6, 12, 2, 1, 8, 16, 4, 16, 16, 16, 8, 8, 16, 16, 16, 4, 16, 8, 2, 1, 18, 18, 9, 9, 9, 3, 6, 9, 18, 3, 6, 18, 18, 18, 9, 9, 2, 1, 11, 11, 11, 22, 11, 22, 11, 11, 22, 22, 11, 11, 22
Offset: 1
Examples
Triangle T(n,k) begins (with offsets 1): [1] [1, 2] [1, 4, 4, 2] [1, 3, 6, 3, 6, 2] [1, 10, 5, 5, 5, 10, 10, 10, 5, 2] [1, 12, 3, 6, 4, 12, 12, 4, 3, 6, 12, 2] [1, 8, 16, 4, 16, 16, 16, 8, 8, 16, 16, 16, 4, 16, 8, 2]
Links
- T. D. Noe, Rows n=1..50, flattened
Programs
-
Mathematica
Flatten[Table[MultiplicativeOrder[ #,p] & /@ Range[p-1], {p, Prime[Range[10]]}]] (* T. D. Noe, Apr 01 2010 *)
-
PARI
tabf(nn) = {for (n=1, nn, p = prime(n); for (k=1, p-1, print1(znorder(Mod(k, p)), ", ");); print(););} \\ Michel Marcus, Feb 05 2015
Comments