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 results
Take result mod m
Final result
Start with numbers a, b and modulus m. Find remainders of a and b by m, perform operation, then take remainder again.
