Primitive Roots and order
Matrix should show, for any natural a < m, the order of a (mod m). The order is smallest exponent h such that a^h = 1 (mod m).
Primitive roots mod m will be mod 1 only in the final column. (note primitives only exist if m is not 2, 4, p^k or 2p^k for p odd prime -- soon to be displayed)