Exact solutions and canonical forms : an application of modular arithmetic