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

28 - The Euclidean Algorithm

from V - Mathematics that all good mathematicians need

Kevin Houston
Affiliation:
University of Leeds
Get access

Summary

An algorithm must be seen to be believed.

Donald Knuth, The Art of Computer Programming, Vol. 1, 1999

The Euclidean Algorithm is a very powerful device. We will apply it to three problems:

  • Finding the gcd of two numbers.

  • Finding integer solutions to equations like 32x + 17y = 45, i.e. those of the form ax + by = c.

  • Finding additional hypotheses so that when n|ab we can say something about whether or not n divides a or b.

  • We will show how the proofs are created and how they are polished for the final version. Hopefully, it will show that there is a huge difference between the way a proof is created and how it is presented.

    The Division Lemma

    The obvious way to find the gcd of two integers is to factorize them – we know we can do this by the Fundamental Theorem of Arithmetic (Theorem 25.5) – and find what common prime factors they have. Multiplying these together gives the gcd. For example, 440 = 23 × 5 × 11 and 1300 = 22 × 52 × 13. The common factors are 22 and 5 so the gcd is 22 × 5 = 20.

    The problem is that factorization is hard for large numbers. Instead of this brute force method we shall give a more useful method. We start with a lemma.

    Type
    Chapter
    Information
    How to Think Like a Mathematician
    A Companion to Undergraduate Mathematics
    , pp. 196 - 207
    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.

    • The Euclidean Algorithm
    • 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.029
    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.

    • The Euclidean Algorithm
    • 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.029
    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.

    • The Euclidean Algorithm
    • 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.029
    Available formats
    ×