play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Try our no ads browsing

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
Privacy Policy

Guest book
News sites

Recommend this site

Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Buying a book is a commitment to learning Table of content Try our no ads browsing 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

30163566Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
3 messages
10:42 AM, Sep-25-08

Help me find Hisashi ABE, Pythago ...
Posted by likesmath
1 messages
07:50 AM, Sep-28-08

triangle construction
Posted by Elianto84
5 messages
12:51 PM, Oct-05-08

k prisoners and k lightbulbs.
Posted by Randomer
0 messages
06:38 PM, Aug-30-08

Circles through the Orthocenter
Posted by Bui Quang Tuan
3 messages
09:08 AM, Sep-09-08

Build ABC from OHI
Posted by jack202
3 messages
09:10 AM, Oct-01-08

Possible mistake in "What Is Geom ...
Posted by David
1 messages
09:05 AM, Sep-25-08