Question
What is modular arithmetic, how does it connect to clock problems, and how do we use the remainder theorem?
Solution — Step by Step
gives the remainder when is divided by .
We write to mean ” and leave the same remainder when divided by .”
So and .
A clock is modular arithmetic with . After 12, the numbers wrap around:
- 3 hours after 11 o’clock: (2 o’clock)
- 50 hours from now (starting at 9): (11 o’clock)
Days of the week use . If today is Monday (day 1), what day is it after 100 days? , so it is 2 days after Monday = Wednesday.
If and , then:
- Addition:
- Multiplication:
- Power:
These let us simplify large computations. For example, find the last digit of :
The last digit = .
, , , .
The cycle repeats every 4. Since , we get .
Last digit = 1.
graph TD
A[Modular Arithmetic Problem] --> B{What are we finding?}
B -->|Remainder| C[Divide and find remainder directly]
B -->|Last digit| D[Work mod 10, find cycle pattern]
B -->|Day of week| E[Work mod 7]
B -->|Clock time| F[Work mod 12 or mod 24]
D --> G[Find power cycle length]
G --> H[Reduce exponent mod cycle length]
H --> I[Compute small power]
Why This Works
Modular arithmetic works because remainders have consistent algebraic properties. When we add, subtract, or multiply, the remainders follow the same rules as the original numbers. This “modular consistency” is why we can reduce massive computations (like ) to tiny ones.
JEE Main frequently asks “find the remainder when is divided by ” type questions. The trick is always to find the cycle pattern first, then reduce the exponent. Last two digits problems use ; last digit problems use .
Alternative Method
For finding remainders of polynomials divided by , use the Remainder Theorem: the remainder when is divided by equals .
Example: Remainder when is divided by : . So the remainder is 22.
Common Mistake
Students try to compute directly and then find the remainder. This is impossible without a calculator. The whole point of modular arithmetic is to reduce FIRST, then compute. Find the cycle pattern of remainders (like repeating for ), then use the pattern to jump to the answer. Always reduce before computing, never after.