Published online by Cambridge University Press: 05 July 2014
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.
To save this book to your Kindle, first ensure [email protected] 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.