Compute ord_N(2) in Z_N.
Test script.
Compute an inverse.
Generalize.