Concept Flow - Modular Arithmetic Basics
Start with two numbers a and b
Choose modulus m > 0
Calculate a mod m
Calculate b mod m
Perform operation (add, subtract, multiply) on (a mod m) and (b mod m)
Take result mod m
Final result
Start with numbers a, b and modulus m. Find a mod m and b mod m, do the operation, then mod m again to get the final result.