COT 3100, Spring 2001 Applications of Discrete Structures

Slides:



Advertisements
Similar presentations
Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
Advertisements

The Integers and Division. Outline Division: Factors, multiples Exercise 2.3 Primes: The Fundamental Theorem of Arithmetic. The Division Algorithm Greatest.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
February 19, 2015Applied Discrete Mathematics Week 4: Number Theory 1 The Growth of Functions Question: If f(x) is O(x 2 ), is it also O(x 3 )? Yes. x.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 03/15/11
Chapter II. THE INTEGERS
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
CS555Spring 2012/Topic 61 Cryptography CS 555 Topic 6: Number Theory Basics.
BY MISS FARAH ADIBAH ADNAN IMK
The Integers and Division
Divisibility October 8, Divisibility If a and b are integers and a  0, then the statement that a divides b means that there is an integer c such.
Integers Number Theory = Properties of Integers
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 3 (Part 2): The Fundamentals: Algorithms, the.
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
7.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –Integers – –Division, GCD – –Euclidean Alg – –Mod! Reading:
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Module #8: Basic Number Theory
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown Chapter 4 – Finite Fields.
The Integers & Division. a divides b if a is not zero there is a m such that a.m = b “a is a factor of b” “b is a multiple of a” a|b Division.
Copyright © Curt Hill Divisibility and Modular Arithmetic A Topic in Number Theory.
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics)  정수와 나눗셈 (The Integers and Division)
Copyright © Zeph Grunschlag, Basic Number Theory Zeph Grunschlag.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/37 Module.
Chapter 2 (Part 1): The Fundamentals: Algorithms, the Integers & Matrices The Integers and Division (Section 2.4)
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
Module #9 – Number Theory 1/5/ Algorithms, The Integers and Matrices.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Basic Number Theory.
Introduction to Number Theory
Discrete Mathematics
AF2. Turn off your phones Primes, gcd, some examples, reading.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Module #9 – Number Theory 6/11/20161 Chapter 3 Algorithms, Integers and Matrices.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Discrete Mathematics Chapter 2 The Fundamentals : Algorithms, the Integers, and Matrices. 大葉大學 資訊工程系 黃鈴玲.
Chapter 3 The Fundamentals: Algorithms, the integers, and matrices Section 3.4: The integers and division Number theory: the part of mathematics involving.
Agenda Review:  Relation Properties Lecture Content:  Divisor and Prime Number  Binary, Octal, Hexadecimal Review & Exercise.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Number-Theoretic Algorithms
COT 3100, Spring 2001 Applications of Discrete Structures
CS 210 Discrete Mathematics The Integers and Division (Section 3.4)
B504/I538: Introduction to Cryptography
CSE15 Discrete Mathematics 03/15/17
Advanced Algorithms Analysis and Design
Integers and Division Section 3.4.
Number-Theoretic Algorithms (UNIT-4)
CMSC Discrete Structures
Introduction to Number Theory
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Applied Discrete Mathematics Week 3: Algorithms
Applied Discrete Mathematics Week 4: Number Theory
Module #8: Basic Number Theory
Number Theory.
Enough Mathematical Appetizers!
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
Discrete Mathematics and its Applications
Module #8: Basic Number Theory
The Integers & Division
Discrete Mathematics and its Applications
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Copyright © Zeph Grunschlag,
Divisibility and Modular Arithmetic
Applied Discrete Mathematics Week 10: Introduction to Counting
Number Theory.
Discrete Mathematics Chapter 4 Number Theory. Discrete Mathematics Chapter 4 Number Theory.
Module #9: Basic Number Theory
Presentation transcript:

COT 3100, Spring 2001 Applications of Discrete Structures Section #1089X - MWF 4th period Dr. Michael P. Frank Lecture #19 Wed., Feb. 21, 2001 2/21/01 Lecture #19

Administrivia HW5, Quiz5 being returned Lecture Today: Friday: Finish §2.3, the Integers and Division. Basic number theory. Friday: Quiz on §2.2-2.3. 2/21/01 Lecture #19

Review of §2.3 So Far a|b  “a divides b”  cZ: b=ac “p is prime”  p>1  aN: (1<a<p  a|p) Terms factor, divisor, multiple, composite. 2/21/01 Lecture #19

Fundamental Theorem of Arithmetic Its "Prime Factorization" Every positive integer has a unique representation as the product of a non-decreasing series of zero or more primes. 1 = (product of empty series) = 1 2 = 2 (product of series with one element) 4 = 2·2 (product of series 2,2) 2000 = 2·2·2·2·5·5·5; 2001 = 3·23·29 2/21/01 Lecture #19

Primes are Important When you visit a secure web site (https:… , lock or key icon unbroken), the browser and web site are using RSA encryption. This scheme uses public keys containing the product pq of two random large primes p and q which must be kept secret within your browser. So the security of your web transactions depends critically on the fact that all known factoring algorithms are intractable! (Exc. quantum algs.) 2/21/01 Lecture #19

The Division “Algorithm” Really just a theorem, not an algorithm… Name used for historical reasons. For any integer dividend a and divisor d>0, there is a unique quotient q and remainder r such that a=dq+r and 0r<d. a,dZ, d>0, !q,r: 0r<d, a=dq+r. Can find q and r by q=ad, r=aqd. 2/21/01 Lecture #19

Greatest Common Divisor The greatest common divisor gcd(a,b) of integers a,b (not both 0) is the largest (most positive) integer d that is a divisor both of a and of b. Example: gcd(24,36)=? Positive common divisors: 1,2,3,4,6,12… Greatest is 12. 2/21/01 Lecture #19

GCD shortcut If the prime factorizations are written as a=p1a1 p2a2 …pnan and b=p1b1 p2b2 …pnbn, then the GCD is given by gcd(a,b) = p1min(a1,b1) p2min(a2,b2) …pnmin(an,bn). Example: a=84=2·2·3·7 = 22·31·71 b=96=2·2·2·2·2·3 = 25·31·70 gcd(84,96) = 22·31·70 = 2·2·3 = 12. 2/21/01 Lecture #19

Relative Primality Integers a and b are called relatively prime iff their gcd = 1. Example: 21 and 10 are not prime, but they are relatively prime. 21=3·7 and 10=2·5, so they have no common factors > 1, so their gcd = 1. Integers a1,a2… are pairwise relatively prime if any two pairs ai, aj, ij, are rel. pr. 2/21/01 Lecture #19

Least Common Multiple lcm(a,b) of positive integers a, b, is the smallest positive integer that is a multiple both of a and of b. E.g. lcm(6,10)=30 If the prime factorizations are written as a=p1a1 p2a2 …pnan and b=p1b1 p2b2 …pnbn, then the LCM is given by lcm(a,b) = p1max(a1,b1) p2max(a2,b2) …pnmax(an,bn). 2/21/01 Lecture #19

The mod operator An integer “division remainder” operator. Let a,dZ with d>1. Then a mod d denotes the remainder r from the division “algorithm” with dividend a and divisor d; i.e. the remainder when a is divided by d. (Using e.g. long division.) Can compute a mod d using ada/d. In C programming language, “%” = mod. 2/21/01 Lecture #19

Modular Congruence Let Z+={nZ | n>0}, the positive integers. Let a,bZ, mZ+. Then a is congruent to b modulo m, written “ab (mod m)”, iff m|ab. Also equivalent to (ab) mod m=0. (Note this is a different use of “” than the meaning “is defined as” I’ve used before.) 2/21/01 Lecture #19

Useful Congruence Theorems Let a,bZ, mZ+. Then ab (mod m)  kZ a=b+km. Let a,b,c,dZ, mZ+. Then if ab (mod m) and cd (mod m), then: a+c  b+d (mod m), and ac  bd (mod m) 2/21/01 Lecture #19