Number Theory

Total Page:16

File Type:pdf, Size:1020Kb

Number Theory CHAPTER 3 Number Theory 1. Factors or not According to Carl Friedrich Gauss (1777-1855) mathematics is the “queen of sciences” and number theory is the “queen of mathematics”, where “queen” stands for elevated and beautiful. Number theory is mainly the study of the system of integers Z = 0, 1, 2,... and the consequences of the fact that division is not always possible within{Z.± E.g.± 15/3 } Z but 15/4 / Z. ∈ Let us start∈ with the well-known “long division” that has rather surprising consequences. EXAMPLE 1.1. 300 396 090 006 223 88323 | 669 223 88323 | 66900 (= 300 223) 21423 · 2007 21423 20070 (= 90 223) 1353 · 1338 1353 1338 (= 6 223) 45 · 45 What is really being done and what has been achieved? On the right some zeros are filled in that are not written on the left. We now see that 88323 300 223 90 223 6 223 = 45. − · − · − · In effect, multiples of 223 were subtracted from 88323 until 223 could not be subtracted anymore without running into negative numbers. The mathematical content of “long divi- sion” is the following theorem and “long division” is just an efficient way of finding q and r in the “Division Theorem”. 1 2 3. NUMBER THEORY THEOREM 1.2. Division Theorem. Given integers a, b, b > 0, there exist unique integers q and r such that a = qb + r, 0 r < b ≤ The quotient q and the remainder r can be found by repeated subtractionof b. The division algorithm is just an efficient way for computing q and r by repeated subtractions. EXAMPLE 1.3. Let a = 567923 and b = 735. Find non-negative integers q and r such that 567923 = 735q + r and 0 r < 735. Answer: By Long Division≤ we find q = 772 and r = 503. EXAMPLE 1.4. Let a = 3257397 and b = 7593. Find non-negative integers q and r such that 3257397 = 7593q + r and 0 r < 7593. Answer: By Long Division we find≤ q = 429 and r = 0. DEFINITION 1.5. An integer a is even ifa = 2x for some integer x, i.e., r = 0 in Theorem ??. An integer b is odd if b = 2x + 1 for some integer x in Z, i.e., r = 1 in Theorem ??. PROPOSITION 1.6. Every integer is either even or odd. The product of two odd integers is odd. PROOF. Let a and b be odd integers. According to the definition of “odd integer” there exist integers x and y such that a = 2x + 1 and b = 2y + 1. Then ab = (2x + 1)(2y + 1)=(2x + 1)(2y)+(2x + 1) 1 · = 2(y(2x + 1)) + 2x + 1 = 2(y(2x + 1) + x) + 1. Here z = y(2x + 1) + x is an integer by the closure properties of Z, hence ab = 2z + 1is an odd number. THEOREM 1.7. √2 is not rational. PROOF. (Aristotle) By way of contradiction assume that √2 = a/b where either a or b 2 2 2 is odd. Then 2b = a , hence a is even and therefore a is even. This means that a = 2a′ 2 2 2 2 and substituting 2b = 4a′ . Thus b = 2a′ . This says that b is even, a contradiction. DEFINITION 1.8. (1) Let a, f be integers. We say that f is a factor of a if a = f someinteger or a = f a′ for some integer a′. · · (2) Let a and b be given integers. An integer f is a common factor ofaandbif f is a factor of a and a factor of b. (3) The greatest common factor of two integers a and b is the largest among the common factors of a and b. The greatest common factor of a and b is denoted by gcf(a,b). 1. FACTORS OR NOT 3 REMARK 1.9. In the literature it is much more common to say f divides a (or f divides a evenly) than to say that f is a factor of a. However, the first gets confused with other uses of “divide” and therefore we will avoid its use. REMARK 1.10. Suppose that a and b are positive integers. Then b is a factor of a if and only if in the Division Theorem a = qb+r the remainder r = 0. Therefore instead of saying b is a factor of a it is also said that b divides a evenly. Factoring Rules. Let a be a positive integer given in base 10 representation. Then the following rules are true. (1) 2 is a factor of a if its units digit is even. (2) 3 is a factor of a if 3 is a factor of the sum of the digits of a. (3) 4 is a factor of a if 4 is a factor of the number formed by the last two digits of a. (4) 9 is a factor of a if 9 is a factor of the sum of the digits of a. Recall that gcf(a,b) is the largest among the common factors of a and b. Therefore gcf(a,b) can be found in the following way which is instructive but not very efficient. REMARK 1.11. Finding greatest common factors Let a and b be given integers. (1) List the positive factors of both a and b. (2) List the common (positive) factors of a and b. (3) Pick the largest in the list of common factors. EXAMPLE 1.12. Finding greatest common factors. Let a = 12 and b = 28. (1) The positive factors of 12 are 1,2,3,4,6,12. (2) The positive factors of 28 are 1,2,4,7,14,28. (3) The common factors are 1,2,4. (4) The greatest common factor is 4. EXAMPLE 1.13. Let a = 240 and b = 330. The positive factors 0f 240 are 1,2,3,4,5,6,8,10,12,15,16,20,24,30,40,48,60,80,120,240, and the positive factors of 330 are 1,2,3,5,6,10,11,15,22,30,33,55,66,110,165,330. The positive common factors of a and b are 1,2,3,5,6,10,15,30, and the greatest common factor of a and b is 30, gcf(240,330) = 30. The following lemmas will be used over and over again and should be memorized. LEMMA 1.14. Let a,b,c be integers and suppose that c = a + b. If a number f is a factor of two of the three integers a,b,c, then f is a factor of the third. LEMMA 1.15. Let a andb be integers. If f isa factorofa, then f is afactorof ab. 4 3. NUMBER THEORY EXERCISE 1.16. (1) Rewrite the number 1239584 in the form as 1239584 = 12395 100 + 84. Use Lemma ?? and Lemma ?? to show that 4 is a factor of 1239584· because 4 is a factor of 84. (2) Rewrite the number 1239582 in the form as 1239582 = 12395 100 + 82. Use Lemma ?? and Lemma ?? to show that 4 is NOT a factor of 1239582· because 4 is NOT a factor of 82. The Euclidean Algorithm is a very beautiful and efficient way of finding the greatest com- mon factor of two integers. It is bases on the following fact. LEMMA 1.17. Let a and b be integers and a = bq + r for some integers q and r. Then the common factors of a and b are exactly the same as those of b and r. In particular, gcf(a,b) = gcf(b,r). EXAMPLE 1.18. Let a = 56371 and b = 3476. Then a = 16 b + 755, hence · gcf(56371,3476) = gcf(3476,755). Further, 3476 = 4 755 + 456, so · gcf(56371,3476) = gcf(3476,755) = gcf(755,456). Further, 755 = 1 456 + 299, 456 = 1 299 + 157, 299 = 1 157 + 122, 157 = 1 122 + 35, hence · · · · gcf(56371,3476) = gcf(755,456) = gcf(456,299) = gcf(299,157) = gcf(157,122) = gcf(122,35). It is clear that 35 has the positive factors 1,5,7,35 and of these only 1 is a factor of 122. Hence gcf(56371,3476) = 1. THEOREM 1.19. Let a and b be (positive) integers. Then there exist integers u and v such that gcf(a,b) = ua + vb. Consequently, every common factor of a and b is a factor of gcf(a,b). The integers u, v and gcf(a,b) can be found efficiently using the Euclidean Algorithm described below. EXAMPLE 1.20. Let a = 569321 and b = 347. Then gcf(69321,347) = gcf(a,b) = ua+vb where gcf(a,b) = 1,u = 36 and v = 59065. − PROOF. 1. FACTORS OR NOT 5 (1) 569321 = 1 569321 + 0 347 (2) 347 = 0 · 569321 + 1 · 347 (3)=(1) 1640 (2) 241 = 1 · 569321 1640 · 347 (4)=(−2) 1 · (3) 106 = 1 · 569321 +− 1641 · 347 (5)=(3) − 2 · (4) 29 = −3 · 569321 4922 · 347 (6)=(4) − 3 · (5) 19 = 10 · 569321 +− 16407 · 347 (7)=(−5) · (6) 10 = −13 · 569321 21329 · 347 (8)=(6) − (7) 9 = 23 · 569321 +− 37736 · 347 (9)=(7) − (8) 1 = −36 · 569321 59065 · 347 − · − · The long divisions used: 569321 = 1640 347 + 241 347 = 1 · 241 + 106 241 = 2 · 106 + 29 106 = 3 · 29 + 19 29 = 1 · 19 + 10 19 = 1 · 10 + 9 10 = 1 · 9 + 1 · The same process can be done in a short form that only lists the essential data. action a b (1) 569321 1 0 (2) 347 0 1 (3)=(1) 1640 (2) 241 1 - 1640 (4)=(−2) 1 · (3) 106 -1 + 1641 (5)=(3) − 2 · (4) 29 3 - 4922 (6)=(4) − 3 · (5) 19 -10 + 16407 (7)=(5)-(6)− · 10 13 - 21329 (8)=(6)-(7) 9 -23 + 37736 (9)=(7)-(8) 1 36 - 59065 EXAMPLE 1.21.
Recommended publications
  • Black Hills State University
    Black Hills State University MATH 341 Concepts addressed: Mathematics Number sense and numeration: meaning and use of numbers; the standard algorithms of the four basic operations; appropriate computation strategies and reasonableness of results; methods of mathematical investigation; number patterns; place value; equivalence; factors and multiples; ratio, proportion, percent; representations; calculator strategies; and number lines Students will be able to demonstrate proficiency in utilizing the traditional algorithms for the four basic operations and to analyze non-traditional student-generated algorithms to perform these calculations. Students will be able to use non-decimal bases and a variety of numeration systems, such as Mayan, Roman, etc, to perform routine calculations. Students will be able to identify prime and composite numbers, compute the prime factorization of a composite number, determine whether a given number is prime or composite, and classify the counting numbers from 1 to 200 into prime or composite using the Sieve of Eratosthenes. A prime number is a number with exactly two factors. For example, 13 is a prime number because its only factors are 1 and itself. A composite number has more than two factors. For example, the number 6 is composite because its factors are 1,2,3, and 6. To determine if a larger number is prime, try all prime numbers less than the square root of the number. If any of those primes divide the original number, then the number is prime; otherwise, the number is composite. The number 1 is neither prime nor composite. It is not prime because it does not have two factors. It is not composite because, otherwise, it would nullify the Fundamental Theorem of Arithmetic, which states that every composite number has a unique prime factorization.
    [Show full text]
  • The Least Common Multiple of a Quadratic Sequence
    The least common multiple of a quadratic sequence Javier Cilleruelo Abstract For any irreducible quadratic polynomial f(x) in Z[x] we obtain the estimate log l.c.m. (f(1); : : : ; f(n)) = n log n + Bn + o(n) where B is a constant depending on f. 1. Introduction The problem of estimating the least common multiple of the ¯rstPn positive integers was ¯rst investigated by Chebyshev [Che52] when he introduced the function ª(n) = pm6n log p = log l.c.m.(1; : : : ; n) in his study on the distribution of prime numbers. The prime number theorem asserts that ª(n) » n, so the asymptotic estimate log l.c.m.(1; : : : ; n) » n is equivalent to the prime number theorem. The analogous asymptotic estimate for any linear polynomial f(x) = ax + b is also known [Bat02] and it is a consequence of the prime number theorem for arithmetic progressions: q X 1 log l.c.m.(f(1); : : : ; f(n)) » n ; (1) Á(q) k 16k6q (k;q)=1 where q = a=(a; b). We address here the problem of estimating log l.c.m.(f(1); : : : ; f(n)) when f is an irreducible quadratic polynomial in Z[x]. When f is a reducible quadratic polynomial the asymptotic estimate is similar to that we obtain for linear polynomials. This case is studied in section x4 with considerably less e®ort than the irreducible case. We state our main theorem. Theorem 1. For any irreducible quadratic polynomial f(x) = ax2 + bx + c in Z[x] we have log l.c.m.
    [Show full text]
  • Eureka Math™ Tips for Parents Module 2
    Grade 6 Eureka Math™ Tips for Parents Module 2 The chart below shows the relationships between various fractions and may be a great Key Words tool for your child throughout this module. Greatest Common Factor In this 19-lesson module, students complete The greatest common factor of two whole numbers (not both zero) is the their understanding of the four operations as they study division of whole numbers, division greatest whole number that is a by a fraction, division of decimals and factor of each number. For operations on multi-digit decimals. This example, the GCF of 24 and 36 is 12 expanded understanding serves to complete because when all of the factors of their study of the four operations with positive 24 and 36 are listed, the largest rational numbers, preparing students for factor they share is 12. understanding, locating, and ordering negative rational numbers and working with algebraic Least Common Multiple expressions. The least common multiple of two whole numbers is the least whole number greater than zero that is a What Came Before this Module: multiple of each number. For Below is an example of how a fraction bar model can be used to represent the Students added, subtracted, and example, the LCM of 4 and 6 is 12 quotient in a division problem. multiplied fractions and decimals (to because when the multiples of 4 and the hundredths place). They divided a 6 are listed, the smallest or first unit fraction by a non-zero whole multiple they share is 12. number as well as divided a whole number by a unit fraction.
    [Show full text]
  • Fundamental Arithmetic
    FUNDAMENTAL ARITHMETIC Prime Numbers Prime numbers are any whole numbers greater than 1 that can only be divided by 1 and itself. Below is the list of all prime numbers between 1 and 100: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 Prime Factorization Prime factorization is the process of changing non-prime (composite) numbers into a product of prime numbers. Below is the prime factorization of all numbers between 1 and 20. 1 is unique 6 = 2 ∙ 3 11 is prime 16 = 2 ∙ 2 ∙ 2 ∙ 2 2 is prime 7 is prime 12 = 2 ∙ 2 ∙ 3 17 is prime 3 is prime 8 = 2 ∙ 2 ∙ 2 13 is prime 18 = 2 ∙ 3 ∙ 3 4 = 2 ∙ 2 9 = 3 ∙ 3 14 = 2 ∙ 7 19 is prime 5 is prime 10 = 2 ∙ 5 15 = 3 ∙ 5 20 = 2 ∙ 2 ∙ 5 Divisibility By using these divisibility rules, you can easily test if one number can be evenly divided by another. A Number is Divisible By: If: Examples 2 The last digit is 5836 divisible by two 583 ퟔ ퟔ ÷ 2 = 3, Yes 3 The sum of the digits is 1725 divisible by three 1 + 7 + 2 + 5 = ퟏퟓ ퟏퟓ ÷ 3 = 5, Yes 5 The last digit ends 885 in a five or zero 88 ퟓ The last digit ends in a five, Yes 10 The last digit ends 7390 in a zero 739 ퟎ The last digit ends in a zero, Yes Exponents An exponent of a number says how many times to multiply the base number to itself.
    [Show full text]
  • 3Understanding Addition and Subtraction
    Understanding Addition 3 and Subtraction Copyright © Cengage Learning. All rights reserved. SECTION Understanding Addition and 3.3 Subtraction of Fractions Copyright © Cengage Learning. All rights reserved. What do you think? • Why do we need a common denominator to add (or subtract) two fractions ? • What pictorial representations can we use for addition and subtraction with fractions? 3 Understanding Addition and Subtraction of Fractions There are many algorithms that enable us to manipulate fractions quickly : I is simply not enough for an elementary teacher to know how to compute. It is crucial that the teacher also know the whys behind the hows and can use a variety of representations to explain them. 4 Investigation 3.3a – Using Fraction Models to Understand Addition of Fractions Using the area model, the length model, or the set model, determine the sum of and then explain why we need to find a common denominator in order to add fractions. 5 Investigation 3.3a – Discussion This is an excellent place to demonstrate the role of manipulatives. Using pattern blocks How might you use pattern blocks to add and (see Figure 3.8)? Figure 3.8 6 Investigation 3.3a – Discussion continued If we let the hexagon represent 1, then the trapezoid is the parallelogram is and the triangle is Using the notion of addition as combining, we can combine the two, and we have We could be humorous and say that parallelogram + trapezoid = baby carriage! The key question , though, is to determine the value of this amount . The solution lies in realizing that to name an amount with a fraction, we must have equal - size parts.
    [Show full text]
  • Greatest Common Divisor and Least Common Multiple
    Greatest Common Divisor and Least Common Multiple Document #: WG21 N3845 Date: 2014-01-01 Revises: None Project: JTC1.22.32 Programming Language C++ Reply to: Walter E. Brown <[email protected]> Contents 1 Introduction ............. 1 4 Acknowledgments .......... 3 2 Implementation ........... 2 5 Bibliography ............. 4 3 Proposed wording .......... 3 6 Document history .......... 4 Abstract This paper proposes two frequently-used classical numeric algorithms, gcd and lcm, for header <cstdlib>. The former calculates the greatest common divisor of two integer values, while the latter calculates their least common multiple. Both functions are already typically provided in behind-the-scenes support of the standard library’s <ratio> and <chrono> headers. Die ganze Zahl schuf der liebe Gott, alles Übrige ist Menschenwerk. (Integers are dear God’s achievement; all else is work of mankind.) —LEOPOLD KRONECKER 1 Introduction 1.1 Greatest common divisor The greatest common divisor of two (or more) integers is also known as the greatest or highest common factor. It is defined as the largest of those positive factors1 shared by (common to) each of the given integers. When all given integers are zero, the greatest common divisor is typically not defined. Algorithms for calculating the gcd have been known since at least the time of Euclid.2 Some version of a gcd algorithm is typically taught to schoolchildren when they learn fractions. However, the algorithm has considerably wider applicability. For example, Wikipedia states that gcd “is a key element of the RSA algorithm, a public-key encryption method widely used in electronic commerce.”3 Note that the standard library’s <ratio> header already requires gcd’s use behind the scenes; see [ratio.ratio]: Copyright c 2014 by Walter E.
    [Show full text]
  • New Results on the Least Common Multiple of Consecutive Integers
    New results on the least common multiple of consecutive integers Bakir FARHI and Daniel KANE Département de Mathématiques, Université du Maine, Avenue Olivier Messiaen, 72085 Le Mans Cedex 9, France. [email protected] Harvard University, Department of Mathematics 1 Oxford Street, Cambridge MA 02139, USA. [email protected] Abstract When studying the least common multiple of some nite sequences of integers, the rst author introduced the interesting arithmetic functions , dened by n(n+1):::(n+k) . He gk (k 2 N) gk(n) := lcm(n;n+1;:::;n+k) (8n 2 N n f0g) proved that is periodic and is a period of . He raised gk (k 2 N) k! gk the open problem consisting to determine the smallest positive period Pk of gk. Very recently, S. Hong and Y. Yang have improved the period k! of gk to lcm(1; 2; : : : ; k). In addition, they have conjectured that Pk is always a multiple of the positive integer lcm(1;2;:::;k;k+1) . An immediate k+1 consequence of this conjecture states that if (k+1) is prime then the exact period of gk is precisely equal to lcm(1; 2; : : : ; k). In this paper, we rst prove the conjecture of S. Hong and Y. Yang and then we give the exact value of . We deduce, as a corollary, Pk (k 2 N) that Pk is equal to the part of lcm(1; 2; : : : ; k) not divisible by some prime. MSC: 11A05 Keywords: Least common multiple; arithmetic function; exact period. 1 Introduction Throughout this paper, we let N∗ denote the set N n f0g of positive integers.
    [Show full text]
  • Exploring Least Common Multiples and Divisibility Through Visual Art
    Bridges 2019 Conference Proceedings Divisible Skylines: Exploring Least Common Multiples and Divisibility through Visual Art Saara Lehto1, Anne-Maria Ernvall-Hytönen2, and Tommi Sottinen3 1Dept. of Mathematics and Statistics, University of Helsinki, Finland; saara.lehto@helsinki.fi 2Mathematics and Statistics, Åbo Akademi University, Finland; aernvall@abo.fi 3School of Technology and Innovations, University of Vaasa, Finland; tommi.sottinen@iki.fi Abstract We present an alternative way to consider number theoretic concepts through visual art. Our visualization method, Divisible Skylines, is an artistically motivated study of least common multiples. It demonstrates how beauty and mathematical understanding can join hands in the study of divisibility. We present original artwork based on our method, examine mathematical properties of Divisible Skylines through the artwork, and point out several artisti- cally interesting visual aspects. Our method opens possibilities for developing playful and creative ways to teach divisibility and number theory. Divisible Skylines offer interest for artists, educators and students alike. Introduction The basis of this paper is the artwork Divisible Dreams by Saara Lehto (Figure1). The creative process behind this work entwines mathematics and visual art in a natural and intriguing way. Divisibility has previously been embodied with rhythms [3], but not many visual representations can be found. We present a visualization method that is both mathematically illustrative and artistically pleasing. Figure 1: Divisible Dreams by Saara Lehto, 2019 335 Lehto, Ernvall-Hytönen, and Sottinen In the heart of Divisible Dreams is a visualization method designed for finding least common multiples. In this paper we will explain this method and discover how number theoretic concepts and artistically interesting questions intertwine in the exploration of the artwork.
    [Show full text]
  • (3) Greatest Common Divisor
    (3) Greatest common divisor In mathematics, the greatest common divisor (gcd), also known as the greatest common factor (gcf), or highest common factor (hcf), of two or more non-zero integers, is the largest positive integer that divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4. This notion can be extended to polynomials, see greatest common divisor of two polynomials. Overview Example The number 54 can be expressed as a product of two other integers in several different ways: Thus the divisors of 54 are: Similarly the divisors of 24 are: The numbers that these two lists share in common are the common divisors of 54 and 24: The greatest of these is 6. That is the greatest common divisor of 54 and 24. One writes: Reducing fractions The greatest common divisor of a and b is written as gcd(a, b), or sometimes simply as (a, b). For example, gcd(12, 18) = 6, gcd(−4, 14) = 2. 1 Two numbers are called relatively prime, or coprime if their greatest common divisor equals 1. For example, 9 and 28 are relatively prime. Calculation Using Euclid's algorithm A much more efficient method is the Euclidean algorithm, which uses the division algorithm in combination with the observation that the gcd of two numbers also divides their difference. To compute gcd(48,18), divide 48 by 18 to get a quotient of 2 and a remainder of 12. Then divide 18 by 12 to get a quotient of 1 and a remainder of 6. Then divide 12 by 6 to get a remainder of 0, which means that 6 is the gcd.
    [Show full text]
  • Finite Mathematics Review 2 1. for the Numbers 360 and 1035 Find
    Finite Mathematics Review 2 1. For the numbers 360 and 1035 find a. Prime factorizations. Using these prime factorizations find next b. The greatest common factor. c. The least common multiple. Solution. a. 3602180229022245222335;=× =×× =××× =××××× 1035=× 3 345 =×× 3 3 115 =××× 3 3 5 23. The prime factorizations are 360=×× 232 3 5 and 1035 =×× 32 5 23. b. To find the greatest common factor we take each prime factor from factorizations of 360 and 1035 with the smaller of two exponents. Thus GCF(360,1035)=×= 32 5 45. c. To find the least common multiple we take each prime factor from factorizations of 360 and 1035 with the larger of two exponents. Thus LCM (360,1035)=×××= 232 3 5 23 8280. 2. Find the greatest common factor of the numbers 3464 and 5084 using the Euclidean algorithm. Solution. The following table shows the sequence of operations. Dividend Divisor Quotient Remainder 5084 3464 1 1620 3464 1620 2 224 1620 224 7 52 224 52 4 16 52 16 3 4 16 4 4 0 Thus the greatest common factor of 5084 and 3464 is 4. 3. Determine which one of the two infinite decimal fractions 0.12123123412345... and 0.473121121121.... represents a rational number. Find the irreducible fraction which corresponds to this rational number. Solution. The first infinite decimal though has a pattern but it is not a periodic pattern, no group of digits repeats in this pattern. Thus this infinite decimal represents an irrational number. In the second decimal we have a repeating group of digits – 121 and therefore this decimal represents a rational number.
    [Show full text]
  • 4.3 Primes and Greatest Common Divisors
    ICS 141: Discrete Mathematics I (Fall 2014) 4.3 Primes and Greatest Common Divisors Primes An integer p greater than 1 is called prime if the only positive factors of p are 1 and p. A positive integer that is greater than 1 and is not prime is called composite. The Fundamental Theory of Arithmetic Every integer greater than 1 can be written uniquely as a prime or as the product of two or more primes where the prime factors are written in order of nondecreasing size. Theorem 2 p If n is a composite integer, then n has a prime divisor less than or equal to n. Greatest Common Divisor Let a and b be integers, not both zero. The largest integer d such that d j a and d j b is called the greatest common divisor of a and b. The greatest common divisor of a and b is denoted by gcd(a; b). Finding the Greatest Common Divisor using Prime Factorization Suppose the prime factorizations of a and b are: a1 a2 an a = p1 p2 ··· pn b1 b2 bn b = p1 p2 ··· pn where each exponent is a nonnegative integer, and where all primes occurring in either prime factorization are included in both, with zero exponents if necessary. Then: min(a1;b1) min(a2;b2) min(an;bn) gcd(a; b) = p1 p2 ··· pn Relatively Prime The integers a and b are relatively prime if their greatest common divisor is 1. Least Common Multiple The least common multiple of the positive integers a and b is the smallest positive integer that is divisible by both a and b.
    [Show full text]
  • The Integers
    Outline Euclid's Algorithm for GCD The Least Common Multiple Prime numbers Prime Factorization The Integers Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing March 20-21, 2018 Outline Euclid's Algorithm for GCD The Least Common Multiple Prime numbers Prime Factorization 1 Euclid's Algorithm for GCD Mathematical Foundations The Algorithm 2 The Least Common Multiple 3 Prime numbers 4 Prime Factorization Outline Euclid's Algorithm for GCD The Least Common Multiple Prime numbers Prime Factorization Greatest Common Divisor The greatest common divisor (gcd) of two integers, a; b, is the largest integer that divides both. Formally, the gcd(a; b) is the greatest integer d such that d j a and d j b. Examples: gcd(1; x) = 1 gcd(10; 2) = 2 gcd(2; 10) = 2 gcd(2; 15) = 1 gcd(14; 10) = 2 gcd(13; 13) = 13 Outline Euclid's Algorithm for GCD The Least Common Multiple Prime numbers Prime Factorization Greatest Common Divisor Lemma 1: For x 2 Z +, gcd(x; 0) = x Proof: 0 divided by anything is 0 with no remainder. (Arithmetic.) Therefore, any integer, x, divides 0. (Definition of \divides".) Any integer, x, divides itself. (x=x = 1; with remainder 0, and definition of divides.) x is the largest integer that divides x. (Definition of divides.) gcd(x; 0) = x. (Definition of gcd.) Outline Euclid's Algorithm for GCD The Least Common Multiple Prime numbers Prime Factorization Greatest Common Divisor Lemma 2: For a; b; q; r 2 Z and either a 6= 0 or b 6= 0. if a = bq + r then gcd(a; b) = gcd(b; r) Proof by division into parts: Part 1a.
    [Show full text]