Nepedia
Back to Discover
Fluent Reader
🔢

Modular arithmetic

math Maturity 7-9 Next article →

Have you ever noticed how a clock works? If it is 7 o'clock now, you might think that 8 hours later it would be 15 o'clock. But a standard clock only goes up to 12. Instead, the hand wraps around to show 3 o'clock.

Clock group
Clock group

This is a perfect example of modular arithmetic. In this system, numbers do not go on forever in a straight line. Instead, they wrap around when they reach a certain value. This special value is called the modulus. For a standard clock, the modulus is 12.

Clock group
Clock group

How does this math work step by step? We use a special word called congruence to describe numbers that act the same way. Two numbers are congruent modulo a certain value if they leave the same remainder. For example, 15 and 3 are congruent modulo 12. This is because both numbers end up at the same spot on the clock face. You can also use this with subtraction. If you subtract 3 from 15, you get 12. Since 12 is a multiple of our modulus, the numbers are congruent.

Clock group
Clock group

This way of thinking about numbers has a long history. A famous mathematician named Carl Friedrich Gauss helped develop this modern approach. He wrote about these ideas in his book called Disquisitiones Arithmeticae. This book was published in the year 1801. His work helped turn these observations into a deep part of number theory.

Clock group
Clock group

Because of his work, we can now use these mathematical loops to solve very hard puzzles. He showed how these patterns fit together in a logical way.

There are many important facts about these number loops. Every non-zero integer can be used as a modulus. For example, in a modulus of 12, the number 12 acts like 0. This is because after 12 hours, the clock hand returns to the start. We can also find something called a modular multiplicative inverse. This is a special number that helps us perform division in these systems. This only works if the numbers are coprime, which means they share no common factors.

Clock group
Clock group

We use this math in our world every single day. It helps computers keep secrets through a field called cryptography. For instance, systems like RSA and Diffie–Hellman use these rules to protect data. It is also used to check for mistakes in long numbers. Book numbers called ISBNs use modulo 10 or 11 to find errors. Bank account numbers use modulo 97 to make sure numbers are typed correctly. Even chemists use it to identify different chemical compounds.

Clock group
Clock group
425 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Clock group.svg
Clock group.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.