How to evaluate the least positive residue using brute force, Fermat’s Little Theorem and Chinese Remainder Theorem.