What Is Modulo Reduction, and How Do You Use It?
At a glance
- 1. Choose the modulus
Specify the positive integer m that determines which numbers count as equivalent.
- 2. Replace by a remainder
Reduce each integer to its remainder from 0 through m minus 1.
- 3. Do the calculation
Add, subtract, or multiply the reduced values, then reduce the result again.
- 4. Check for division
Cancel a factor only when the conditions for modular cancellation are satisfied.
Modulo reduction means replacing an integer with a simpler integer that has the same remainder when divided by a chosen positive integer. This is useful for simplifying calculations and proving statements about divisibility or remainders.
For example, reducing modulo 5 replaces 17 by 2, because both leave remainder 2 upon division by 5. The notation is , read as “17 is congruent to 2 modulo 5.”
What congruence means
For integers and and a positive integer ,
means that divides . Equivalently, and have the same remainder when divided by .
A common convention is to represent each congruence class by its least nonnegative remainder: one of . Thus, modulo 5, the integer is represented by 3, since .
Congruence is not the same as ordinary equality. The statement does not say that 17 equals 2; it says their difference is divisible by 5.
Which operations allow reduction?
You may replace an integer by a congruent one inside sums, differences, and products. If and , then
The same rule applies to powers with nonnegative integer exponents: if , then . In practice, reduce intermediate results as you go so the numbers stay small.
Worked example
Calculate , meaning find the least nonnegative remainder after division by 11.
First reduce each number modulo 11:
Substitute these simpler values and calculate:
So the remainder is 0, and the original expression is divisible by 11. You can verify this directly: .
Reducing powers
Reduction is also useful when a power is large. To find , note that . Therefore,
The least nonnegative remainder is 2. The key is to find a small power or repeating pattern, then use it to simplify the exponentiation.
Common mistakes
Treating congruence as equality
The statement allows you to replace 38 by 5 in a calculation modulo 11. It does not allow that replacement in an ordinary integer equation.
Forgetting to reduce the final result
An answer such as 22 is congruent to 0 modulo 11, but the least nonnegative remainder is 0. Reduce the final value if the problem asks for a remainder.
Canceling a factor without checking
In ordinary arithmetic, you can divide both sides of an equation by any nonzero number. Modular congruences are different: a factor is safely cancellable modulo when it has a multiplicative inverse modulo . An integer has such an inverse exactly when its greatest common divisor with is 1.
For example, from , you cannot conclude by canceling 2. The original congruence says that 6 divides , which is equivalent to 3 dividing . Thus the correct result is .
A quick checklist
When reducing a calculation modulo , identify the modulus, replace values with convenient congruent remainders, and use addition, subtraction, or multiplication as usual. Reduce again whenever it helps. If you need to divide or cancel, first check whether the factor has an inverse modulo ; otherwise the modulus or solution set may change.
References
- Elementary Number Theory
- A Friendly Introduction to Number Theory
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.