Professional Documents
Culture Documents
Modular arithmetic
modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after they reach a certain valuethe modulus.
A familiar use of modular arithmetic is its use in the 12-hour clock. In which the day is divided into two 12 hour periods.
For Example
Suppose a doctor prescribes you a pill which you have to take every 4 hours.What time should you take the next pill if you had taken the first pill at 11am.
For Example
Suppose you are canning pickles following a recipe that calls for soaking mangoes in brine for 30 hours.If you put the mangoes into brine at 10.00am,determine when you have to take them out.