Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Reciprocal links
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Two properties of Greatest Common Divisor

Greatest Common Divisor is one of the best known arithmetic notions. It's also one of the most common and useful tools in arithmetic. In 3 Glass and Hour Glass problems we used the following property of gcd:

  1. For every pair of whole numbers a and b there exist two integers s and t such that as + bt = gcd(a,b).

The fact is a byproduct of the Euclid's Algorithm. However, when one hears it the first time, the reaction is often that of disbelief. Why? gcd? Of all things! The following statement (which is implied by the first one) asserts the central role played by gcd among linear combinations as + bt.

  1. gcd(a,b) is the least positive integer representable in the form as + bt. All the rest are multiples of gcd(a,b).

It's not by accident or magic that gcd(a,b) is representable in the form as + bt. In all seriousness, if not gcd - nothing else would. Obviously, #1 follows from #2 which generalizes #1 by actually specializing the assertion.

For the completeness sake, let's prove #2 directly, without invoking #1. To this end, assume that g = as + bt is the least positive linear combination of a and b. Since a linear combination of a and b is divisible by any of their common factors (gcd(a,b), in particular), gcd(a,b)|g and, hence, gcd(a,b)g.

Note that g must divide a; for, otherwise, a = gu + r for some integers u and r, 0r<g. This would give r = a - ug = (1 - us) - utb. In other words, r, an integer smaller than g, would also be representable as a linear combination of a and b which would contradict our assumption that g is the least such integer. Therefore, g|a. Similarly, g|b. Since, g is a common divisor of a and b, we get, by definition, ggcd(a,b) which, combined with the opposite inequality obtained previously, implies that the two are indeed equal: g = gcd(a,b). QED.

Note that as + bt = gcd(a,b) implies that any common divisor of a and b also divide gcd(a,b).

Copyright © 1996-2008 Alexander Bogomolny

28676843Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

product of fractions
Posted by ke_45
3 messages
08:37 AM, May-06-08

Distance to the horizon
Posted by Monty
3 messages
04:38 PM, May-08-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Nim Games - a query
Posted by Akash Kumar
1 messages
08:53 AM, Apr-15-08

A typo in
Posted by alexwajn
1 messages
11:36 PM, Apr-19-08