{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

31 - Common Introduction Divisors Discrete Mathematics...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction Common Divisors Discrete Mathematics Andrei Bulatov
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Discrete Mathematics – Common Divisors 31-2 Previous Lecture Representation of numbers Prime and composite numbers
Image of page 2
Discrete Mathematics – Common Divisors 31-3 The Greatest Common Divisor For integers a and b, a positive integer c is said to be a common divisor of a and b if c | a and c | b Let a, b be integers such that a 0 or b 0. Then a positive integer c is called the greatest common divisor of a, b if (a) c | a and c | b (that is c is a common divisor of a, b) (b) for any common divisor d of a and b, we have d | c The greatest common divisor of a and b is denoted by gcd(a,b)
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Discrete Mathematics – Common Divisors 31-4 The Greatest Common Divisor (cntd) Theorem For any positive integers a and b, there is a uniquepositive integer c such that c is the greatest common divisor of a and b First try: Take the largest common divisor, in the sense of usual order Does not work: Why every other common divisor divides it? 4 1 2 3 5 11 7 10 6 9 12 8 a b gcd(a,b)
Image of page 4
Discrete Mathematics – Common Divisors 31-5 The Greatest Common Divisor (cntd) Proof . Given a, b, let S = { as + bt | s,t Z , as + bt > 0 }. Since S ≠ ∅ , it has a least element c. We show that c = gcd(a,b) We have c = ax + by for some integers x and y. If d | a and d | b, then d | ax + by = c. If c | a, we can use the division algorithm to find a = qc + r, where q,r are integers and 0 < r < c.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern