How to calculate
Reduce each side of each identity modulo the same integer. For example, multiplication distributes over addition because a(b + c) and ab + ac have the same residue.
Worked example
Use First value 2 · Second value 5 · Third value 7 · Modulus 6. The result is All five identities hold.
Input and result notes
Enter integers of up to 100 digits. Calculations are exact.