Is Modulo Multiplication and Addition Associative, Distributive, and Commutative?

Test the associative, commutative, and distributive laws for addition and multiplication modulo an integer.

Result
—

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.

Kwong on modular arithmetic

Related calculators