from V - Mathematics that all good mathematicians need
This is the kind of arithmetic I like.
Chico in The Magnificent SevenWhen I was a student I was not particularly impressed with modular arithmetic. Initially, to me, it seemed like an abstract toy to play with. It didn't look as though it was useful or deep. Now I fully appreciate it as I have seen it used repeatedly, and widely, in real-life applications such as cryptography (which includes internet security), data storage, bar-codes, ISBN details (on the backs of books) and even magic tricks.
The idea of modular arithmetic is very simple. Take a natural number, say n. Then, we consider two integers to be equivalent if their remainders on division by n are equal. For example, take n = 5. Then 22 and 57 are the same because they both have the same remainder, in this case 2, when we divide by 5.
In this chapter we will study some elementary properties of modular arithmetic before moving on to some applications in number theory.
Modular arithmetic
We begin with the definition.
Definition 29.1
If two integers x and y have the same remainder when we divide by a natural number n, then we say that x and y are equivalent modulo n (or x equals y mod n or x equals y modulo n) and write x mod n = y mod n or more briefly x = y mod n.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.