The Euclidean Algorithm Investigation Module MATH 558: Introductory Modern Algebra

Total Page:16

File Type:pdf, Size:1020Kb

The Euclidean Algorithm Investigation Module MATH 558: Introductory Modern Algebra The Euclidean Algorithm Investigation Module MATH 558: Introductory Modern Algebra In this module, we introduce and study the Euclidean Algorithm, a remarkably fast, systematic way of finding the greatest common divisor of any two positive integers. The backbone of Euclidean Algorithm is repeated use of the Division Algorithm, which is just a formal way of writing out the quotient and remainder when dividing one integer by another: The Division Algorithm. Let a and b be integers, where a > 0. Then there exist unique integers q and r, where 0 ≤ r < a, such that b = aq + r: Here, we are \dividing" the integer b by a; perhaps unsurprisingly, we call q the quotient, and r the remainder. For instance, a = 5 \goes into" b = 17 three times with two \left over," so the conclusion of the Division Algorithm can be written out simply as 17 = 5 · 3 + 2 just as we computed 5)17 in grade school. Notice that q = 3 and r = 2 here. Of course, the equations 17 = 5 · 2 + 7 and 17 = 5 · 4 + (−3) also hold, but the \remainders" 7 and −3 do not satisfy the requirement that 0 ≤ r < 5. Indeed, the Division Algorithm states that there is only one remainder in this range! 0. For each pair of integers a; b below, find q and r as in the Division Algorithm. (a) a = 11, b = 64. (c) a = 101, b = 0. (b) a = 64, b = 11. (d) a = 3, b = −11. 1. What does the remainder r equal whenever a divides b? Prove it! This problem shows that the Division Algorithm is closely related to the notion of an integer dividing another. This will eventually help us apply the Division Algorithm iteratively to compute greatest common divisors. To start, consider the following lemma: Lemma. Given integers a, b, q, and r, suppose that b = aq + r: If d is an integer for which d j a and d j b, then d j r. Do you think this lemma is true? Use your work in Problem 0 to investigate its statement. MATH 558: Modern Algebra 2 2. Prove the lemma by following these steps: (a) Write out, using equations, what the hypotheses d j a and d j b, and the conclusion, d j r, mean. Specify which values in your equations are integers! (b) Plug your results from (a) into the equation b = aq + r. (c) Solve for r in the resulting equation. Can you show the desired conclusion? Make sure to justify that certain value(s), if necessary, are integers! Now that you've proved the lemma, let's use it! It says, in particular, that if we apply the Division Algorithm to positive integers a < b (why is this assumption natural?), then then every common divisor of a and b is also a divisor of the remainder r. Remarkably, we can extend this to show that the greatest common divisor of b and a coincides with a and r, i.e., the GCD of the highlighted values in b = aq + r is the same as in b = aq + r. 3. Given a; b; q; r 2 Z such that b = aq + r, use the lemma to prove that any common divisor of a and b is a common divisor of a and r; then explain why (a; b) = (a; r). Factor each integer a and b into a product of primes, and use your answer to find (a; b). Record your answers for later (you don't need to turn in these calculations). • a = 24 and b = 60. • a = 156 and b = 198. • a = 5 159 and b = 455. (Use a calculator and your own cleverness!) As the integers get larger, did you notice that it becomes harder and harder to compute GCDs \by hand"? In fact, when we submit an online payment using our credit card number, the security depends on the computational difficulty of factoring large integers! Thus, your work in Problem 3, which allows one to replace the problem of finding the GCD of two integers with two smaller integers, is beneficial. This idea leads to the following algorithm: The Euclidean Algorithm. Given positive integers a and b for which a < b, apply the Division Algorithm successively: b = aq + r where 0 ≤ r < a a = rq1 + r1 where 0 ≤ r1 < r r = r1q2 + r2 where 0 ≤ r2 < r1 r1 = r2q3 + r3 where 0 ≤ r3 < r2 r2 = r3q4 + r4 where 0 ≤ r4 < r3 . rn−1 = rnqn+1 + rn+1 where 0 ≤ rn+1 < rn . Then the greatest common divisor of a and b equals the last nonzero remainder. MATH 558: Modern Algebra 3 Example (Applying the Euclidean Algorithm). Recall that you found (5 159; 455) by hand earlier. (It was a pain, right?) Let's apply the Euclidean Al- gorithm instead. Since it is always the larger integer, we take b = 5 159, and then a = 455. Applying the Division Algorithm to a and b, we first write 5 159 = 455 · 11 + 154: (1) Next, we replace b with a, and a with the remainder; i.e., shift the numbers underlined in blue left, into the spots that are underlined in red (we do nothing with the quotient!): 455 = 154 · 2 + 147: (2) Shifting again, we replace the leftmost integers with 154 and 147, respectively: 154 = 147 · 1 +7 ; (3) and finally, 147 =7 · 21 + 0: Since the remainder is zero, we see that the last nonzero remainder we 7. Hence, we conclude that the greatest common divisor of 5 159 and 455 is 7. Is this what you found earlier? Which method did you find to be faster? More straighforward? Now, why does the Euclidean Algorithm actually compute the GCD of a and b? Well the condition in the Division Algorithm on the remainder tells us that a > r > r1 > r2 > ··· are all nonnegative integers, so eventually one remainder must be zero and the chain must terminate by the Principle of Infinite Descent{there is no infinite descending chain of natural numbers{which is equivalent to the Well-ordering Principle (see homework problem 2.34!). Suppose that rn 6= 0, while rn+1 = 0. Then Problem 3, applied, iteratively, tells us that (a; b) = (a; r) = (r; r1) = (r1; r2) = ··· = (rn; rn+1) = (rn; 0) = rn: and (a; b) is certainly the last nonzero remainder! Notice that to prove the string of inequal- ities above carefully (instead of using our \and so on and so forth" idea), we would need to apply the Principle of Mathematical Induction. Think about how this would go! 4. Explain why (rn; 0) = rn above. 5. Use the Euclidean Algorithm to compute (a; b), showing all your steps: (a) a = 1001 and b = 1309. (b) a = 89 and b = 144. Next, we turn to an useful theorem, which can be justified via the Euclidean Algorithm: MATH 558: Modern Algebra 4 B´ezout'stheorem. Given any two integers a and b, let d denote their greatest com- mon divisor. Then there exist integers x and y such that ax + by = d: We often refer to the equation in the conclusion of B´ezout'stheorem as B´ezout'sidentity. 6. Use \guess and check" to find x; y in B´ezout'sIdentity given the values of a; b. (a) a = 5, b = 8 (b) a = 12, b = 20 (c) a = −100, b = 14 In the first two problems above, both a; b are positive, yet one of x; y is negative. Think about why this is the case! The Euclidean Algorithm allows us to create an algorithm for finding the values of x; y in B´ezout'sidentity, often called the Extended Euclidean Algorithm (EEA). We'll explain it through an example, using the integers a = 455 and b = 5 159 from our above example. Example (Extended Euclidean Algorithm). Let's again take a = 455 and b = 5 159; we found that (5 159; 455) = 7 in our earlier example. Our goal is to find integers x and y for which B´ezout'sidentity holds: 5 159x + 455y = 7: To begin the EEA, start with equation (3) in our example, and solve for 7, the GCD: 7 = 154 − 147 · 1: Notice that we are writing 7 in terms of the integers underlined in (3). We don't want to expand! Instead, we solve for the remainder, 147 in (2), i.e., 147 = 455 − 154 · 2, and substitute this for 147 in the equation above: 7 = 154 − (455 − 154 · 2) · 1: We then expand, writing the right-hand side as the sum of multiples of the integers underlined in red in equation (2): 7 = 154 − 455 + 154 · 2 = 154 · 3 + 455 · (−1): Finally, we continue this process using (1): 7 = (5 159 − 455 · 11) · 3 + 455 · (−1) = 5 159 · 3 + 455 · (−33 + −1) = 5 159 · 3 + 455 · (−34) So that x = 3 and y = −34 is a solution! MATH 558: Modern Algebra 5 Now that we have seen an example of applying the EEA, let's try it out! 7. For each pair a; b, perform the EEA to find the values for x; y in B´ezout'sTheorem, applied to a, b.. (a) a; b from Problem 5(a) (b) a; b from Problem 5(b) (c) a = 100, b = 101. Now that we have a handle on the EEA, maybe it is clearer to see that it can help us prove B´ezout'sTheorem. Given any two integers a; b, we can first find (a; b) by performing the Euclidean Algorithm and getting equations b = aq + r where 0 ≤ r < a a = rq1 + r1 where 0 ≤ r1 < r r = r1q2 + r2 where 0 ≤ r2 < r1 r1 = r2q3 + r3 where 0 ≤ r3 < r2 r2 = r3q4 + r4 where 0 ≤ r4 < r3 .
Recommended publications
  • The Role of the Interval Domain in Modern Exact Real Airthmetic
    The Role of the Interval Domain in Modern Exact Real Airthmetic Andrej Bauer Iztok Kavkler Faculty of Mathematics and Physics University of Ljubljana, Slovenia Domains VIII & Computability over Continuous Data Types Novosibirsk, September 2007 Teaching theoreticians a lesson Recently I have been told by an anonymous referee that “Theoreticians do not like to be taught lessons.” and by a friend that “You should stop competing with programmers.” In defiance of this advice, I shall talk about the lessons I learned, as a theoretician, in programming exact real arithmetic. The spectrum of real number computation slow fast Formally verified, Cauchy sequences iRRAM extracted from streams of signed digits RealLib proofs floating point Moebius transformtions continued fractions Mathematica "theoretical" "practical" I Common features: I Reals are represented by successive approximations. I Approximations may be computed to any desired accuracy. I State of the art, as far as speed is concerned: I iRRAM by Norbert Muller,¨ I RealLib by Branimir Lambov. What makes iRRAM and ReaLib fast? I Reals are represented by sequences of dyadic intervals (endpoints are rationals of the form m/2k). I The approximating sequences need not be nested chains of intervals. I No guarantee on speed of converge, but arbitrarily fast convergence is possible. I Previous approximations are not stored and not reused when the next approximation is computed. I Each next approximation roughly doubles the amount of work done. The theory behind iRRAM and RealLib I Theoretical models used to design iRRAM and RealLib: I Type Two Effectivity I a version of Real RAM machines I Type I representations I The authors explicitly reject domain theory as a suitable computational model.
    [Show full text]
  • Division by Fractions 6.1.1 - 6.1.4
    DIVISION BY FRACTIONS 6.1.1 - 6.1.4 Division by fractions introduces three methods to help students understand how dividing by fractions works. In general, think of division for a problem like 8..,.. 2 as, "In 8, how many groups of 2 are there?" Similarly, ½ + ¼ means, "In ½ , how many fourths are there?" For more information, see the Math Notes boxes in Lessons 7.2 .2 and 7 .2 .4 of the Core Connections, Course 1 text. For additional examples and practice, see the Core Connections, Course 1 Checkpoint 8B materials. The first two examples show how to divide fractions using a diagram. Example 1 Use the rectangular model to divide: ½ + ¼ . Step 1: Using the rectangle, we first divide it into 2 equal pieces. Each piece represents ½. Shade ½ of it. - Step 2: Then divide the original rectangle into four equal pieces. Each section represents ¼ . In the shaded section, ½ , there are 2 fourths. 2 Step 3: Write the equation. Example 2 In ¾ , how many ½ s are there? In ¾ there is one full ½ 2 2 I shaded and half of another Thatis,¾+½=? one (that is half of one half). ]_ ..,_ .l 1 .l So. 4 . 2 = 2 Start with ¾ . 3 4 (one and one-half halves) Parent Guide with Extra Practice © 2011, 2013 CPM Educational Program. All rights reserved. 49 Problems Use the rectangular model to divide. .l ...:... J_ 1 ...:... .l 1. ..,_ l 1 . 1 3 . 6 2. 3. 4. 1 4 . 2 5. 2 3 . 9 Answers l. 8 2. 2 3. 4 one thirds rm I I halves - ~I sixths fourths fourths ~I 11 ~'.¿;¡~:;¿~ ffk] 8 sixths 2 three fourths 4.
    [Show full text]
  • Chapter 2. Multiplication and Division of Whole Numbers in the Last Chapter You Saw That Addition and Subtraction Were Inverse Mathematical Operations
    Chapter 2. Multiplication and Division of Whole Numbers In the last chapter you saw that addition and subtraction were inverse mathematical operations. For example, a pay raise of 50 cents an hour is the opposite of a 50 cents an hour pay cut. When you have completed this chapter, you’ll understand that multiplication and division are also inverse math- ematical operations. 2.1 Multiplication with Whole Numbers The Multiplication Table Learning the multiplication table shown below is a basic skill that must be mastered. Do you have to memorize this table? Yes! Can’t you just use a calculator? No! You must know this table by heart to be able to multiply numbers, to do division, and to do algebra. To be blunt, until you memorize this entire table, you won’t be able to progress further than this page. MULTIPLICATION TABLE ϫ 012 345 67 89101112 0 000 000LEARNING 00 000 00 1 012 345 67 89101112 2 024 681012Copy14 16 18 20 22 24 3 036 9121518212427303336 4 0481216 20 24 28 32 36 40 44 48 5051015202530354045505560 6061218243036424854606672Distribute 7071421283542495663707784 8081624324048566472808896 90918273HAWKESReview645546372819099108 10 0 10 20 30 40 50 60 70 80 90 100 110 120 ©11 0 11 22 33 44NOT 55 66 77 88 99 110 121 132 12 0 12 24 36 48 60 72 84 96 108 120 132 144 Do Let’s get a couple of things out of the way. First, any number times 0 is 0. When we multiply two numbers, we call our answer the product of those two numbers.
    [Show full text]
  • Three Methods of Finding Remainder on the Operation of Modular
    Zin Mar Win, Khin Mar Cho; International Journal of Advance Research and Development (Volume 5, Issue 5) Available online at: www.ijarnd.com Three methods of finding remainder on the operation of modular exponentiation by using calculator 1Zin Mar Win, 2Khin Mar Cho 1University of Computer Studies, Myitkyina, Myanmar 2University of Computer Studies, Pyay, Myanmar ABSTRACT The primary purpose of this paper is that the contents of the paper were to become a learning aid for the learners. Learning aids enhance one's learning abilities and help to increase one's learning potential. They may include books, diagram, computer, recordings, notes, strategies, or any other appropriate items. In this paper we would review the types of modulo operations and represent the knowledge which we have been known with the easiest ways. The modulo operation is finding of the remainder when dividing. The modulus operator abbreviated “mod” or “%” in many programming languages is useful in a variety of circumstances. It is commonly used to take a randomly generated number and reduce that number to a random number on a smaller range, and it can also quickly tell us if one number is a factor of another. If we wanted to know if a number was odd or even, we could use modulus to quickly tell us by asking for the remainder of the number when divided by 2. Modular exponentiation is a type of exponentiation performed over a modulus. The operation of modular exponentiation calculates the remainder c when an integer b rose to the eth power, bᵉ, is divided by a positive integer m such as c = be mod m [1].
    [Show full text]
  • Survey of Modern Mathematical Topics Inspired by History of Mathematics
    Survey of Modern Mathematical Topics inspired by History of Mathematics Paul L. Bailey Department of Mathematics, Southern Arkansas University E-mail address: [email protected] Date: January 21, 2009 i Contents Preface vii Chapter I. Bases 1 1. Introduction 1 2. Integer Expansion Algorithm 2 3. Radix Expansion Algorithm 3 4. Rational Expansion Property 4 5. Regular Numbers 5 6. Problems 6 Chapter II. Constructibility 7 1. Construction with Straight-Edge and Compass 7 2. Construction of Points in a Plane 7 3. Standard Constructions 8 4. Transference of Distance 9 5. The Three Greek Problems 9 6. Construction of Squares 9 7. Construction of Angles 10 8. Construction of Points in Space 10 9. Construction of Real Numbers 11 10. Hippocrates Quadrature of the Lune 14 11. Construction of Regular Polygons 16 12. Problems 18 Chapter III. The Golden Section 19 1. The Golden Section 19 2. Recreational Appearances of the Golden Ratio 20 3. Construction of the Golden Section 21 4. The Golden Rectangle 21 5. The Golden Triangle 22 6. Construction of a Regular Pentagon 23 7. The Golden Pentagram 24 8. Incommensurability 25 9. Regular Solids 26 10. Construction of the Regular Solids 27 11. Problems 29 Chapter IV. The Euclidean Algorithm 31 1. Induction and the Well-Ordering Principle 31 2. Division Algorithm 32 iii iv CONTENTS 3. Euclidean Algorithm 33 4. Fundamental Theorem of Arithmetic 35 5. Infinitude of Primes 36 6. Problems 36 Chapter V. Archimedes on Circles and Spheres 37 1. Precursors of Archimedes 37 2. Results from Euclid 38 3. Measurement of a Circle 39 4.
    [Show full text]
  • Math 3010 § 1. Treibergs First Midterm Exam Name
    Math 3010 x 1. First Midterm Exam Name: Solutions Treibergs February 7, 2018 1. For each location, fill in the corresponding map letter. For each mathematician, fill in their principal location by number, and dates and mathematical contribution by letter. Mathematician Location Dates Contribution Archimedes 5 e β Euclid 1 d δ Plato 2 c ζ Pythagoras 3 b γ Thales 4 a α Locations Dates Contributions 1. Alexandria E a. 624{547 bc α. Advocated the deductive method. First man to have a theorem attributed to him. 2. Athens D b. 580{497 bc β. Discovered theorems using mechanical intuition for which he later provided rigorous proofs. 3. Croton A c. 427{346 bc γ. Explained musical harmony in terms of whole number ratios. Found that some lengths are irrational. 4. Miletus D d. 330{270 bc δ. His books set the standard for mathematical rigor until the 19th century. 5. Syracuse B e. 287{212 bc ζ. Theorems require sound definitions and proofs. The line and the circle are the purest elements of geometry. 1 2. Use the Euclidean algorithm to find the greatest common divisor of 168 and 198. Find two integers x and y so that gcd(198; 168) = 198x + 168y: Give another example of a Diophantine equation. What property does it have to be called Diophantine? (Saying that it was invented by Diophantus gets zero points!) 198 = 1 · 168 + 30 168 = 5 · 30 + 18 30 = 1 · 18 + 12 18 = 1 · 12 + 6 12 = 3 · 6 + 0 So gcd(198; 168) = 6. 6 = 18 − 12 = 18 − (30 − 18) = 2 · 18 − 30 = 2 · (168 − 5 · 30) − 30 = 2 · 168 − 11 · 30 = 2 · 168 − 11 · (198 − 168) = 13 · 168 − 11 · 198 Thus x = −11 and y = 13 .
    [Show full text]
  • 1.3 Division of Polynomials; Remainder and Factor Theorems
    1-32 CHAPTER 1. POLYNOMIAL AND RATIONAL FUNCTIONS 1.3 Division of Polynomials; Remainder and Factor Theorems Objectives • Perform long division of polynomials • Perform synthetic division of polynomials • Apply remainder and factor theorems In previous courses, you may have learned how to factor polynomials using various techniques. Many of these techniques apply only to special kinds of polynomial expressions. For example, the the previous two sections of this chapter dealt only with polynomials that could easily be factored to find the zeros and x-intercepts. In order to be able to find zeros and x-intercepts of polynomials which cannot readily be factored, we first introduce long division of polynomials. We will then use the long division algorithm to make a general statement about factors of a polynomial. Long division of polynomials Long division of polynomials is similar to long division of numbers. When divid- ing polynomials, we obtain a quotient and a remainder. Just as with numbers, if a remainder is 0, then the divisor is a factor of the dividend. Example 1 Determining Factors by Division Divide to determine whether x − 1 is a factor of x2 − 3x +2. Solution Here x2 − 3x +2is the dividend and x − 1 is the divisor. Step 1 Set up the division as follows: divisor → x − 1 x2−3x+2 ← dividend Step 2 Divide the leading term of the dividend (x2) by the leading term of the divisor (x). The result (x)is the first term of the quotient, as illustrated below. x ← first term of quotient x − 1 x2 −3x+2 1.3.
    [Show full text]
  • CSU200 Discrete Structures Professor Fell Integers and Division
    CSU200 Discrete Structures Professor Fell Integers and Division Though you probably learned about integers and division back in fourth grade, we need formal definitions and theorems to describe the algorithms we use and to very that they are correct, in general. If a and b are integers, a ¹ 0, we say a divides b if there is an integer c such that b = ac. a is a factor of b. a | b means a divides b. a | b mean a does not divide b. Theorem 1: Let a, b, and c be integers, then 1. if a | b and a | c then a | (b + c) 2. if a | b then a | bc for all integers, c 3. if a | b and b | c then a | c. Proof: Here is a proof of 1. Try to prove the others yourself. Assume a, b, and c be integers and that a | b and a | c. From the definition of divides, there must be integers m and n such that: b = ma and c = na. Then, adding equals to equals, we have b + c = ma + na. By the distributive law and commutativity, b + c = (m + n)a. By closure of addition, m + n is an integer so, by the definition of divides, a | (b + c). Q.E.D. Corollary: If a, b, and c are integers such that a | b and a | c then a | (mb + nc) for all integers m and n. Primes A positive integer p > 1 is called prime if the only positive factor of p are 1 and p.
    [Show full text]
  • Fast Integer Division – a Differentiated Offering from C2000 Product Family
    Application Report SPRACN6–July 2019 Fast Integer Division – A Differentiated Offering From C2000™ Product Family Prasanth Viswanathan Pillai, Himanshu Chaudhary, Aravindhan Karuppiah, Alex Tessarolo ABSTRACT This application report provides an overview of the different division and modulo (remainder) functions and its associated properties. Later, the document describes how the different division functions can be implemented using the C28x ISA and intrinsics supported by the compiler. Contents 1 Introduction ................................................................................................................... 2 2 Different Division Functions ................................................................................................ 2 3 Intrinsic Support Through TI C2000 Compiler ........................................................................... 4 4 Cycle Count................................................................................................................... 6 5 Summary...................................................................................................................... 6 6 References ................................................................................................................... 6 List of Figures 1 Truncated Division Function................................................................................................ 2 2 Floored Division Function................................................................................................... 3 3 Euclidean
    [Show full text]
  • Grade 7/8 Math Circles Modular Arithmetic the Modulus Operator
    Faculty of Mathematics Centre for Education in Waterloo, Ontario N2L 3G1 Mathematics and Computing Grade 7/8 Math Circles April 3, 2014 Modular Arithmetic The Modulus Operator The modulo operator has symbol \mod", is written as A mod N, and is read \A modulo N" or "A mod N". • A is our - what is being divided (just like in division) • N is our (the plural is ) When we divide two numbers A and N, we get a quotient and a remainder. • When we ask for A ÷ N, we look for the quotient of the division. • When we ask for A mod N, we are looking for the remainder of the division. • The remainder A mod N is always an integer between 0 and N − 1 (inclusive) Examples 1. 0 mod 4 = 0 since 0 ÷ 4 = 0 remainder 0 2. 1 mod 4 = 1 since 1 ÷ 4 = 0 remainder 1 3. 2 mod 4 = 2 since 2 ÷ 4 = 0 remainder 2 4. 3 mod 4 = 3 since 3 ÷ 4 = 0 remainder 3 5. 4 mod 4 = since 4 ÷ 4 = 1 remainder 6. 5 mod 4 = since 5 ÷ 4 = 1 remainder 7. 6 mod 4 = since 6 ÷ 4 = 1 remainder 8. 15 mod 4 = since 15 ÷ 4 = 3 remainder 9.* −15 mod 4 = since −15 ÷ 4 = −4 remainder Using a Calculator For really large numbers and/or moduli, sometimes we can use calculators to quickly find A mod N. This method only works if A ≥ 0. Example: Find 373 mod 6 1. Divide 373 by 6 ! 2. Round the number you got above down to the nearest integer ! 3.
    [Show full text]
  • History of Mathematics Log of a Course
    History of mathematics Log of a course David Pierce / This work is licensed under the Creative Commons Attribution–Noncommercial–Share-Alike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ CC BY: David Pierce $\ C Mathematics Department Middle East Technical University Ankara Turkey http://metu.edu.tr/~dpierce/ [email protected] Contents Prolegomena Whatishere .................................. Apology..................................... Possibilitiesforthefuture . I. Fall semester . Euclid .. Sunday,October ............................ .. Thursday,October ........................... .. Friday,October ............................. .. Saturday,October . .. Tuesday,October ........................... .. Friday,October ............................ .. Thursday,October. .. Saturday,October . .. Wednesday,October. ..Friday,November . ..Friday,November . ..Wednesday,November. ..Friday,November . ..Friday,November . ..Saturday,November. ..Friday,December . ..Tuesday,December . . Apollonius and Archimedes .. Tuesday,December . .. Saturday,December . .. Friday,January ............................. .. Friday,January ............................. Contents II. Spring semester Aboutthecourse ................................ . Al-Khw¯arizm¯ı, Th¯abitibnQurra,OmarKhayyám .. Thursday,February . .. Tuesday,February. .. Thursday,February . .. Tuesday,March ............................. . Cardano .. Thursday,March ............................ .. Excursus.................................
    [Show full text]
  • Discrete Mathematics Homework 3
    Discrete Mathematics Homework 3 Ethan Bolker November 15, 2014 Due: ??? We're studying number theory (leading up to cryptography) for the next few weeks. You can read Unit NT in Bender and Williamson. This homework contains some programming exercises, some number theory computations and some proofs. The questions aren't arranged in any particular order. Don't just start at the beginning and do as many as you can { read them all and do the easy ones first. I may add to this homework from time to time. Exercises 1. Use the Euclidean algorithm to compute the greatest common divisor d of 59400 and 16200 and find integers x and y such that 59400x + 16200y = d I recommend that you do this by hand for the logical flow (a calculator is fine for the arith- metic) before writing the computer programs that follow. There are many websites that will do the computation for you, and even show you the steps. If you use one, tell me which one. We wish to find gcd(16200; 59400). Solution LATEX note. These are separate equations in the source file. They'd be better formatted in an align* environment. 59400 = 3(16200) + 10800 next find gcd(10800; 16200) 16200 = 1(10800) + 5400 next find gcd(5400; 10800) 10800 = 2(5400) + 0 gcd(16200; 59400) = 5400 59400x + 16200y = 5400 5400(11x + 3y) = 5400 11x + 3y = 1 By inspection, we can easily determine that (x; y) = (−1; 4) (among other solutions), but let's use the algorithm. 11 = 3 · 3 + 2 3 = 2 · 1 + 1 1 = 3 − (2) · 1 1 = 3 − (11 − 3 · 3) 1 = 11(−1) + 3(4) (x; y) = (−1; 4) 1 2.
    [Show full text]