Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-vpsfw Total loading time: 0 Render date: 2024-07-17T06:42:43.852Z Has data issue: false hasContentIssue false

8 - Euclid's Algorithm

Published online by Cambridge University Press:  05 July 2014

Philip N. Klein
Affiliation:
Brown University, Rhode Island
Get access

Summary

In Section 4.3.3 of Chapter 4, we introduced the notion of modular multiplicative inverses: for a modulus m, two integers a and b are mod-m multiplicative inverses if a · b ≡ 1 (mod m). In Section 4.3.4, we demonstrated a method for finding mod-m multiplicative inverses: write down the mod-m multiplication table for all mod-m representatives, and search for ones in the table. In Section 4.3.5, we observed that, for the modulus 6, some integers don't have multiplicative inverses, even integers that are not congruent mod-6 to 0. The method we present in this chapter will explain this phenomenon.

In this chapter, we describe a good algorithm for calculating modular multiplicative inverses. The algorithm is an extension of one attributed to the classical mathematician Euclid, who supposedly lived around 300 B.C. He is known primarily for his contribution to and systematization of geometry, but his famous book Elements also addressed number theory.

The measuring puzzle

Suppose you are given two containers and told how many cups of water each one can hold. You are also given an empty basin that can hold an unlimited amount of water. What is the smallest positive number of cups you can leave in the basin by using these two containers? The rules of the puzzle allow you to fill either container with water either from the tap or the basin, and to pour the water from the container either down the drain or into the basin.

Type
Chapter
Information
A Cryptography Primer
Secrets and Promises
, pp. 89 - 105
Publisher: Cambridge University Press
Print publication year: 2014

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.

  • Euclid's Algorithm
  • Philip N. Klein, Brown University, Rhode Island
  • Book: A Cryptography Primer
  • Online publication: 05 July 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139084772.009
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.

  • Euclid's Algorithm
  • Philip N. Klein, Brown University, Rhode Island
  • Book: A Cryptography Primer
  • Online publication: 05 July 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139084772.009
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.

  • Euclid's Algorithm
  • Philip N. Klein, Brown University, Rhode Island
  • Book: A Cryptography Primer
  • Online publication: 05 July 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139084772.009
Available formats
×