Euclidean Algorithm

    Consider two integers a and b, not both zero. If one of these integers is zero, the greatest common divisor of euclidean algorithm _gr_1.gif]and euclidean algorithm _gr_2.gif] is obviously the numerical value for the other. Since a negative integer has the same divisors as its numerical value, we may assume without loss of generality that both euclidean algorithm _gr_3.gif] and euclidean algorithm _gr_4.gif] are positive integers with say euclidean algorithm _gr_5.gif] is greater than or equal to euclidean algorithm _gr_6.gif]. The method to be described derives from Euclid and is known as Euclid's Algorithm.

    Divide euclidean algorithm _gr_7.gif] by euclidean algorithm _gr_8.gif] obtaining the quotient euclidean algorithm _gr_9.gif] and the remainder euclidean algorithm _gr_10.gif]. Then, if euclidean algorithm _gr_11.gif] is not zero, divide euclidean algorithm _gr_12.gif] by euclidean algorithm _gr_13.gif] obtaining the quotient euclidean algorithm _gr_14.gif] and remainder euclidean algorithm _gr_15.gif]. Then if euclidean algorithm _gr_16.gif] is not zero then we repeat this process and divide euclidean algorithm _gr_17.gif] by euclidean algorithm _gr_18.gif], obtaining the quotient euclidean algorithm _gr_19.gif] and remainder euclidean algorithm _gr_20.gif]. This process, or "algorithm", is repeated until we first obtain the remainder of zero. At the conclusion of the process we have the greatest common divisor which is the last nonzero remainder.

Proposition (Greatest Common Divisor) Let euclidean algorithm _gr_21.gif] and euclidean algorithm _gr_22.gif] be positive integers.

    (i) Any two nonzero integers euclidean algorithm _gr_23.gif] and euclidean algorithm _gr_24.gif] have a greatest common divisor, which can be expressed as the smallest positive linear combination of euclidean algorithm _gr_25.gif] and euclidean algorithm _gr_26.gif]
    
    (ii) An integer is a linear combination of euclidean algorithm _gr_27.gif] and euclidean algorithm _gr_28.gif] if and only if it is a multiple of their greatest common divisor.  
    
    (iii) There exists integers euclidean algorithm _gr_29.gif] and euclidean algorithm _gr_30.gif] such that euclidean algorithm _gr_31.gif] if and only if euclidean algorithm _gr_32.gif]
    
    (iv) If euclidean algorithm _gr_33.gif] and euclidean algorithm _gr_34.gif] then euclidean algorithm _gr_35.gif]
    
    (v) If euclidean algorithm _gr_36.gif] euclidean algorithm _gr_37.gif] and euclidean algorithm _gr_38.gif] then euclidean algorithm _gr_39.gif]
    
    (vi) euclidean algorithm _gr_40.gif] if and only if euclidean algorithm _gr_41.gif] and euclidean algorithm _gr_42.gif]
    
    (vii) If euclidean algorithm _gr_43.gif] and euclidean algorithm _gr_44.gif] is a common divisor of euclidean algorithm _gr_45.gif] and euclidean algorithm _gr_46.gif] then euclidean algorithm _gr_47.gif] if and only if euclidean algorithm _gr_48.gif]
    
    (viii) If euclidean algorithm _gr_49.gif] and euclidean algorithm _gr_50.gif] then euclidean algorithm _gr_51.gif]
    
    (ix) If euclidean algorithm _gr_52.gif] then euclidean algorithm _gr_53.gif]

    Proof. (i) For every positive integer there are only a finite number of divisors and thus given two integers there are only a finite number of common divisors. Therefore, the greatest common divisor of every pair of integers must exist and be unique. The fact that euclidean algorithm _gr_54.gif] is the smallest linear combination of euclidean algorithm _gr_55.gif] and euclidean algorithm _gr_56.gif] follows from the Euclidean Algorithm.
    (ii) Let euclidean algorithm _gr_57.gif] then since euclidean algorithm _gr_58.gif] the Well-Ordering Axiom yields a smallest positive integer, say euclidean algorithm _gr_59.gif] Then euclidean algorithm _gr_60.gif] for some integers euclidean algorithm _gr_61.gif] and euclidean algorithm _gr_62.gif] By the Division Algorithm euclidean algorithm _gr_63.gif] with euclidean algorithm _gr_64.gif] and so euclidean algorithm _gr_65.gif] Whence euclidean algorithm _gr_66.gif] Therefore, euclidean algorithm _gr_67.gif] and similarly, euclidean algorithm _gr_68.gif] So euclidean algorithm _gr_69.gif] is a common divisor of euclidean algorithm _gr_70.gif] and euclidean algorithm _gr_71.gif] Let euclidean algorithm _gr_72.gif] be a common divisor of euclidean algorithm _gr_73.gif] and euclidean algorithm _gr_74.gif] Then euclidean algorithm _gr_75.gif] for some integers euclidean algorithm _gr_76.gif] and euclidean algorithm _gr_77.gif] Then euclidean algorithm _gr_78.gif] as desired.
    (iii)  Apply (ii).
    (iv)  
If euclidean algorithm _gr_79.gif] then there exist integers euclidean algorithm _gr_80.gif] and euclidean algorithm _gr_81.gif] such that euclidean algorithm _gr_82.gif] Thus euclidean algorithm _gr_83.gif] for some euclidean algorithm _gr_84.gif] since euclidean algorithm _gr_85.gif] Therefore, euclidean algorithm _gr_86.gif]
    (v)   
If euclidean algorithm _gr_87.gif] then there exist integers euclidean algorithm _gr_88.gif] and euclidean algorithm _gr_89.gif] such that euclidean algorithm _gr_90.gif] Thus euclidean algorithm _gr_91.gif] for some euclidean algorithm _gr_92.gif] and euclidean algorithm _gr_93.gif] since euclidean algorithm _gr_94.gif] and   euclidean algorithm _gr_95.gif] Therefore, euclidean algorithm _gr_96.gif]
    (vi)  
If euclidean algorithm _gr_97.gif] then there exist integers euclidean algorithm _gr_98.gif] and euclidean algorithm _gr_99.gif] such that euclidean algorithm _gr_100.gif] Thus, euclidean algorithm _gr_101.gif] and so euclidean algorithm _gr_102.gif] Also,    euclidean algorithm _gr_103.gif] and so euclidean algorithm _gr_104.gif] Conversely, if euclidean algorithm _gr_105.gif] then there exists integers euclidean algorithm _gr_106.gif] and euclidean algorithm _gr_107.gif] such that euclidean algorithm _gr_108.gif] If euclidean algorithm _gr_109.gif] then there exists integers euclidean algorithm _gr_110.gif] and euclidean algorithm _gr_111.gif] such that euclidean algorithm _gr_112.gif] Thus,   euclidean algorithm _gr_113.gif] euclidean algorithm _gr_114.gif] for some integers euclidean algorithm _gr_115.gif] and euclidean algorithm _gr_116.gif] Therefore, euclidean algorithm _gr_117.gif] as desired.
    (vii)
If euclidean algorithm _gr_118.gif] then there exist integers euclidean algorithm _gr_119.gif] and euclidean algorithm _gr_120.gif] such that euclidean algorithm _gr_121.gif] and so euclidean algorithm _gr_122.gif] since euclidean algorithm _gr_123.gif] and euclidean algorithm _gr_124.gif] Thus, euclidean algorithm _gr_125.gif] Conversely, if euclidean algorithm _gr_126.gif] euclidean algorithm _gr_127.gif] and euclidean algorithm _gr_128.gif] then there exists integers euclidean algorithm _gr_129.gif] and euclidean algorithm _gr_130.gif] such that euclidean algorithm _gr_131.gif] Therefore, euclidean algorithm _gr_132.gif] euclidean algorithm _gr_133.gif] for some euclidean algorithm _gr_134.gif] and euclidean algorithm _gr_135.gif] Thus euclidean algorithm _gr_136.gif] and so euclidean algorithm _gr_137.gif]
    (viii)
If euclidean algorithm _gr_138.gif] then there exist integers euclidean algorithm _gr_139.gif] and euclidean algorithm _gr_140.gif] such that euclidean algorithm _gr_141.gif] If euclidean algorithm _gr_142.gif] then euclidean algorithm _gr_143.gif] for some integer euclidean algorithm _gr_144.gif] Thus, euclidean algorithm _gr_145.gif] and so euclidean algorithm _gr_146.gif] as desired.  
    
(ix) Suppose euclidean algorithm _gr_147.gif] and let euclidean algorithm _gr_148.gif] be the set of common divisors of euclidean algorithm _gr_149.gif] and euclidean algorithm _gr_150.gif] and let euclidean algorithm _gr_151.gif] be the set of common divisors of euclidean algorithm _gr_152.gif] and euclidean algorithm _gr_153.gif]. We will first show that euclidean algorithm _gr_154.gif] If euclidean algorithm _gr_155.gif] then euclidean algorithm _gr_156.gif] and euclidean algorithm _gr_157.gif] for some euclidean algorithm _gr_158.gif] and euclidean algorithm _gr_159.gif] Thus, euclidean algorithm _gr_160.gif] euclidean algorithm _gr_161.gif] euclidean algorithm _gr_162.gif] Hence, euclidean algorithm _gr_163.gif] so that euclidean algorithm _gr_164.gif] Conversely, suppose euclidean algorithm _gr_165.gif] is a common divisor of euclidean algorithm _gr_166.gif] and euclidean algorithm _gr_167.gif] so that euclidean algorithm _gr_168.gif] and euclidean algorithm _gr_169.gif] Thus, euclidean algorithm _gr_170.gif] euclidean algorithm _gr_171.gif] euclidean algorithm _gr_172.gif] Thus euclidean algorithm _gr_173.gif] so that euclidean algorithm _gr_174.gif] euclidean algorithm _gr_175.gif] Therefore, euclidean algorithm _gr_176.gif] Hence the largest element in euclidean algorithm _gr_177.gif] namely euclidean algorithm _gr_178.gif] is the same as the largest element in euclidean algorithm _gr_179.gif] namely euclidean algorithm _gr_180.gif] euclidean algorithm _gr_181.gif]

Proposition (Euclidean Algorithm) Let euclidean algorithm _gr_182.gif] and euclidean algorithm _gr_183.gif] be positive integers with euclidean algorithm _gr_184.gif] If euclidean algorithm _gr_185.gif] then euclidean algorithm _gr_186.gif] If euclidean algorithm _gr_187.gif] then apply the division algorithm repeatedly as follows:

euclidean algorithm _gr_188.gif]

euclidean algorithm _gr_189.gif]

euclidean algorithm _gr_190.gif]

euclidean algorithm _gr_191.gif]

euclidean algorithm _gr_192.gif]

euclidean algorithm _gr_193.gif]

This process ends when a remainder of 0 is obtained. This must occur after a finite number of steps; that is, for some euclidean algorithm _gr_194.gif]

euclidean algorithm _gr_195.gif]

euclidean algorithm _gr_196.gif]

Then euclidean algorithm _gr_197.gif] the last nonzero remainder, is the greatest common divisor of euclidean algorithm _gr_198.gif] and euclidean algorithm _gr_199.gif]

    Proof. The proof follows from the property: if euclidean algorithm _gr_200.gif] then euclidean algorithm _gr_201.gif] Thus, if euclidean algorithm _gr_202.gif] then euclidean algorithm _gr_203.gif] and so euclidean algorithm _gr_204.gif] Also, as in the statement of the proposition, euclidean algorithm _gr_205.gif] euclidean algorithm _gr_206.gif] euclidean algorithm _gr_207.gif] euclidean algorithm _gr_208.gif] euclidean algorithm _gr_209.gif] euclidean algorithm _gr_210.gif] euclidean algorithm _gr_211.gif] euclidean algorithm _gr_212.gif]

Example (Euclidean Algorithm) Use the Euclidean Algorithm to find euclidean algorithm _gr_213.gif] By the Division Algorithm,

euclidean algorithm _gr_214.gif]

euclidean algorithm _gr_215.gif]

euclidean algorithm _gr_216.gif]

Thus, euclidean algorithm _gr_217.gif] euclidean algorithm _gr_218.gif]

Proposition (GCD and Linear Combinations) There are an infinite number of ways to write euclidean algorithm _gr_219.gif] as a linear combination of euclidean algorithm _gr_220.gif] and euclidean algorithm _gr_221.gif]

    Proof. Let euclidean algorithm _gr_222.gif] There exists integers euclidean algorithm _gr_223.gif] and euclidean algorithm _gr_224.gif] such that euclidean algorithm _gr_225.gif] and thus, for any integer euclidean algorithm _gr_226.gif] we have
    
euclidean algorithm _gr_227.gif]

which expresses euclidean algorithm _gr_228.gif] as a linear combination of euclidean algorithm _gr_229.gif] and euclidean algorithm _gr_230.gif] euclidean algorithm _gr_231.gif]

Cite this as:
Euclidean Algorithm
Published by Library of Math -- Online math organized by subject into topics.
Written by Smith, David A.
http://www.libraryofmath.com/euclidean-algorithm.html
 
    
Library of Math
Online Math Organized by Subject Into Topics
math search
Library of Math AddThis Feed Button
The Library of Math - Online Math Organized by Subject Into Topics.
© 2005 - 2008 www.LibraryOfMath.com All rights reserved.
about us | feedback | privacy policy | terms of use | mision statement | help

Page copy protected against web site content infringement by Copyscape Valid CSS! Valid HTML 4.01 Transitional Subscribe to the Library of Math Feed
Art & Photography Shop | Being Healthy Shop | Best Sports Mall | Cafe Food Lover | Cafe Gift Shop | Cafe Internet Shop | Career Archives | City Annals
Countries Shop | Crazy Kids World | Dallas Cowboys Football Shop | Headline News Shop | Heart Boutique | Lover of Pets | Military Support Store
Musical Boutique | Online Math Store | Political Ramblings | Shop by Auction | Shop of Learning | Shop of Technology | Shop of Travels | Special Occasion Shop
Store of Hobbies | Theology Store | USA States Shop | Your Animal Store | Your Fitness World | Your Funny Store | Your Science Store