Order Mod n | Primitive Roots and Indices | BMLabs Mathematics