A202149 Triangle read by rows: T(n, k) = mod(2^k, n), where 1 <= k < n.
0, 2, 1, 2, 0, 0, 2, 4, 3, 1, 2, 4, 2, 4, 2, 2, 4, 1, 2, 4, 1, 2, 4, 0, 0, 0, 0, 0, 2, 4, 8, 7, 5, 1, 2, 4, 2, 4, 8, 6, 2, 4, 8, 6, 2, 2, 4, 8, 5, 10, 9, 7, 3, 6, 1, 2, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 2, 4, 8, 3, 6, 12, 11, 9, 5, 10, 7, 1, 2, 4, 8, 2, 4, 8, 2, 4
Offset: 2
Examples
Triangle starts: 0 2 1 2 0 0 2 4 3 1 2 4 2 4 2 2 4 1 2 4 1 2 4 0 0 0 0 0 2 4 8 7 5 1 2 4 2 4 8 6 2 4 8 6 2 2 4 8 5 10 9 7 3 6 1 2 4 8 4 8 4 8 4 8 4 8
Links
- T. D. Noe, Rows n = 2..100, flattened
Crossrefs
Programs
-
Mathematica
ColumnForm[Table[PowerMod[2, k, n], {n, 2, 20}, {k, n - 1}], Center]
Comments