Skip to main content Accessibility help
×
Hostname: page-component-84b7d79bbc-2l2gl Total loading time: 0 Render date: 2024-08-03T17:20:31.824Z Has data issue: false hasContentIssue false
This chapter is part of a book that is no longer available to purchase from Cambridge Core

29 - Modular arithmetic

from V - Mathematics that all good mathematicians need

Kevin Houston
Affiliation:
University of Leeds
Get access

Summary

This is the kind of arithmetic I like.

Chico in The Magnificent Seven

When 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.

Type
Chapter
Information
How to Think Like a Mathematician
A Companion to Undergraduate Mathematics
, pp. 208 - 217
Publisher: Cambridge University Press
Print publication year: 2009

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@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.

  • Modular arithmetic
  • Kevin Houston, University of Leeds
  • Book: How to Think Like a Mathematician
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808258.030
Available formats
×

Save book 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 Dropbox.

  • Modular arithmetic
  • Kevin Houston, University of Leeds
  • Book: How to Think Like a Mathematician
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808258.030
Available formats
×

Save book to Google Drive

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.

  • Modular arithmetic
  • Kevin Houston, University of Leeds
  • Book: How to Think Like a Mathematician
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808258.030
Available formats
×