Chapter II. THE INTEGERS

Slides:



Advertisements
Similar presentations
Division & Divisibility. 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.
Advertisements

1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
Cryptography and Network Security
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.
Section 5-4 Greatest Common Factor and Least Common Multiple.
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.
NUMBER THEORY Chapter 1: The Integers. The Well-Ordering Property.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
Greatest Common Divisor. Definitions Let a and b be two non-zero integers. The greatest common divisor of a and b, denoted gcd(a,b) is the largest of.
Basic properties of the integers
Binary Operations.
Chapter 4 Properties of the integers: mathematical induction Yen-Liang Chen Dept of IM NCU.
Congruence of Integers
Congruence Classes Z n = {[0] n, [1] n, [2] n, …, [n - 1] n } = the set of congruence classes modulo n.
Division in the Integers Theorem 1. If n and m are integers and n>0, then m=qn+r for unique integers q and r with 0
Properties of the Integers: Mathematical Induction
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
The Integers and Division
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
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.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 3 (Part 2): The Fundamentals: Algorithms, the.
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
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.
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Mathematics of Cryptography Part I: Modular Arithmetic
February 24, 2015Applied Discrete Mathematics Week 4: Number Theory 1 Modular Arithmetic Let a be an integer and m be a positive integer. We denote by.
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.
Introduction to Cryptography
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
Cyclic Groups (9/25) Definition. A group G is called cyclic if there exists an element a in G such that G =  a . That is, every element of G can be written.
Rational Numbers and Fields
Number Theory 이재원 School of Information Technology Sungshin W. University.
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.
Math 409/409G History of Mathematics Books VII – IX of the Elements Part 1: Divisibility.
Cryptography and Network Security Chapter 4. Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic.
Tuesday’s lecture: Today’s lecture: One-way permutations (OWPs)
Application: Algorithms Lecture 20 Section 3.8 Wed, Feb 21, 2007.
Greatest Common Divisors & Least Common Multiples  Definition 4 Let a and b be integers, not both zero. The largest integer d such that d|a and d|b is.
Properties of the gcd Theorem: For any two integers a,b there exist integers x,y such that xa + yb = gcd(a,b). A proof will not be given at this point.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
CSCI 115 Chapter 1 Fundamentals. CSCI 115 §1.1 Sets and Subsets.
Discrete Mathematics
Divisibility and Modular Arithmetic
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
All About Division. Definition / A nonzero integer t is a divisor of an integer s if there is an integer u such that s = tu. / If t is a divisor of s,
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Number Theory: Prime and Composite Numbers
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
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,
Integers and Division Section 3.4.
CMSC Discrete Structures
Dividing Polynomials Long Division A little review:
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
Foundations of Discrete Mathematics
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Copyright © Zeph Grunschlag,
Applied Discrete Mathematics Week 10: Introduction to Counting
Number Theory.
Presentation transcript:

Chapter II. THE INTEGERS 2.3 Divisibility 2.4 Prime and Greatest Common Divisor 2.5 Congruence of Integers 2.6 Congruence Classes

--- in the set of integers Divisibility --- in the set of integers

Thm1: (The Well-Ordering Theorem; The Well-Ordering Principle) Every nonempty set S of positive integers contains a least element. That is, mS such that m  x, xS.

Definition: Let a, b  Z. We say a divides b if c  Z such that b = ac, denoted by ab. If ab, then we say that b is a multiple of a and a is a factor (or divisor) of b.

Theorem 2: The only divisors of 1 are 1 and -1. Note: 0 is a multiple of every integer in Z. Since 0 = 0x, x Z.

Thm3: (The Divisor Algorithm; The Euclidean Algorithm) Let a, b  Z with b>0. Then ! q and r in Z such that a = bq + r where 0  r < b. Note: 1. q = quotient (could be any integer); r = remainder ( 0) 2. ab if and only if r = 0

Ex1. Let a =357 and b =13. Then 357=13·27+6, that is, q = 27 and r = 6. If a = -357 and b =13, then -357=13·(-28)+7, that is, q = -28 and r = 7.

Definition: An integer d is called a greatest common divisor (GCD)of integers a and b if 1. d is a positive integer. 2. da and db. 3. If ca and cb, then cd. Note: We usually denote the GCD d of a and b by d = (a, b).

Use the Euclidean algorithm to find (a, b).

Ex2. Find (1776, 1492). Sol:

Ex3. Find (1400, -980). Sol:

Theorem4: Let a, bZ, not both 0. Then there is a GCD d in Z of a and b. Moreover, d = am + bn for integers m, n. The positive integer d is the smallest positive integer that can be written in this form.

Ex2’. Find integers m and n such that 4 = 1776m+ 1492n. By Ex2. We have1776 = 1492·1+284, 1492 = 284·5+72, 284 = 72·3+68, 72 = 68·1+4.

Ex3’. Find m, n such that 140 = 1400m + (-980)n. From Ex3, we have 1400 = (-980)·(-1)+420 -980 = 420·(-3)+280, 420 = 280·1+140.

Definition: Two integers a and b are relatively prime if (a, b) = 1. For instance: (2, 5) = 1, thus 2 and 5 are relatively prime. (-2, -5) =1, thus -2 and -5 are relatively prime.

Theorem 5. Let a, b and c be integers. If a and b are relatively prime and abc, then ac. Pf:

Definition: An integer p is called a prime if p > 1 and the only divisors of p are 1 and p. For instance: 2 and 5 are both primes. But –2 and 6 are not primes. Note: 1 is not a prime.

Thm6: (Euclid’s Lemma) Let a and b be integers. If p is a prime and pab, then pa or pb. Pf:

Cor7: Let a1, a2, …, an be integers and p is a prime. If pa1a2···an , then paj for some j = 1, 2, …, n.