Introduction Integers. Discrete Mathematics Andrei Bulatov

Similar documents
With Question/Answer Animations. Chapter 4

3 The fundamentals: Algorithms, the integers, and matrices

4 Number Theory and Cryptography

Introduction to Sets and Logic (MATH 1190)

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

Ch 4.2 Divisibility Properties

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Discrete Structures Lecture Primes and Greatest Common Divisor

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

MATH10040: Numbers and Functions Homework 1: Solutions

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

MATH 215 Final. M4. For all a, b in Z, a b = b a.

Homework 3, solutions

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

8 Primes and Modular Arithmetic

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Solutions to Assignment 1

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

Math 3336 Section 4.3 Primes and Greatest Common Divisors. Prime Numbers and their Properties Conjectures and Open Problems About Primes

Introduction to Number Theory. The study of the integers

We want to show P (n) is true for all integers

A number that can be written as, where p and q are integers and q Number.

Appendix: a brief history of numbers

. As the binomial coefficients are integers we have that. 2 n(n 1).

Downloaded from

MATHEMATICS X l Let x = p q be a rational number, such l If p, q, r are any three positive integers, then, l that the prime factorisation of q is of t

Summary Slides for MATH 342 June 25, 2018

Chapter 1 A Survey of Divisibility 14

7. Prime Numbers Part VI of PJE

NOTES ON SIMPLE NUMBER THEORY

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

Lecture 4: Number theory

Section Summary. Division Division Algorithm Modular Arithmetic

EDULABZ INTERNATIONAL NUMBER SYSTEM

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CISC 1400 Discrete Structures

Mathematical Induction

Bell Quiz 2-3. Determine the end behavior of the graph using limit notation. Find a function with the given zeros , 2. 5 pts possible.

Standard forms for writing numbers

4.3 - Primes and Greatest Common Divisors

Discrete Mathematics. Spring 2017

Elementary Number Theory

Complete Induction and the Well- Ordering Principle

Number Theory and Graph Theory

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Number Theory and Cryptography

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

4. Number Theory (Part 2)

Ma/CS 6a Class 2: Congruences

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division

A Readable Introduction to Real Mathematics

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

3 The Fundamentals:Algorithms, the Integers, and Matrices

Primes. Rational, Gaussian, Industrial Strength, etc. Robert Campbell 11/29/2010 1

Chapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices. Integers & Algorithms (2.5)

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Math 412: Number Theory Lecture 3: Prime Decomposition of

Warm-Up. Use long division to divide 5 into

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Discrete Mathematics GCD, LCM, RSA Algorithm

Four Basic Sets. Divisors

The Real Number System

An Algorithm for Prime Factorization

Elementary Number Theory

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

Primes and Factorization

Numbers and their divisors

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

LECTURE 1: DIVISIBILITY. 1. Introduction Number theory concerns itself with studying the multiplicative and additive structure of the natural numbers

CS March 17, 2009

Fundamentals of Pure Mathematics - Problem Sheet

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

ZEROS OF POLYNOMIAL FUNCTIONS ALL I HAVE TO KNOW ABOUT POLYNOMIAL FUNCTIONS

2-3 The Remainder and Factor Theorems

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Here is another characterization of prime numbers.

God may not play dice with the universe, but something strange is going on with the prime numbers.

Real Number. Euclid s division algorithm is based on the above lemma.

Downloaded from

To hand in: (a) Prove that a group G is abelian (= commutative) if and only if (xy) 2 = x 2 y 2 for all x, y G.

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

D i v i s i b i l i t y

Numbers. 2.1 Integers. P(n) = n(n 4 5n 2 + 4) = n(n 2 1)(n 2 4) = (n 2)(n 1)n(n + 1)(n + 2); 120 =

COT 3100 Applications of Discrete Structures Dr. Michael P. Frank

Multiplying and dividing integers Student Activity Sheet 2; use with Exploring Patterns of multiplying and dividing integers

Chapter 2. Divisibility. 2.1 Common Divisors

Around Prime Numbers And Twin Primes

CSE 20 DISCRETE MATH. Winter

Discrete Mathematics. Spring 2017

Long division for integers

Topics in Number Theory

Lecture 7 Number Theory Euiseong Seo

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Well-Ordering Principle. Axiom: Every nonempty subset of Z + has a least element. That is, if S Z + and S, then S has a smallest element.

Transcription:

Introduction Integers Discrete Mathematics Andrei Bulatov

Discrete Mathematics - Integers 9- Integers God made the integers; all else is the work of man Leopold Kroenecker

Discrete Mathematics - Integers 9-3 Division Most of useful properties of integers are related to division If a and b are integers with a, we say that a divides b if there is an integer c such that b = ac. When a divides b we say that a is a divisor (factor) of b, and that b is a multiple of a. The notation a b denotes that a divides b. We write a b when a does not divide b Example. Let n and d be positive integers. How many positive integers not exceeding n are divisible by d? The numbers in question have the form dk, where k is a positive integer and < dk n. Therefore, < k n/d. Thus the answer is n/d

Discrete Mathematics - Integers 9-4 Properties of Divisibility Let a, b, and c be integers. Then (i) if a b and a c, then a (b + c); (ii) if a b, then a bc for all integers c; (iii) if a b and b c, then a c. Proof. (i) Suppose a b and a c. This means that there are k and m such that b = ak and c = am. Then b + c = ak + am = a(k + m), and a divides b + c.

Discrete Mathematics - Integers 9-5 Properties of Divisibility (cntd) If a, b, and c are integers such that a b and a c, then a mb + nc whenever m and n are integers. Proof. By part (ii) it follows that a mb and a nc. By part (i) it follows that a mb + nc. If a b and b a, then a = ±b. Proof. Suppose that a b and b a. Then b = ak and a = bm for some integers k and m. Therefore a = bm = akm, which is possible only if k,m = ±.

Discrete Mathematics - Integers 9-6 The Division Algorithm Theorem (The division algorithm) Let a be an integer and d a positive integer. Then there are unique integers q and r, with r < d, such that a = dq + r d is called the divisor, a is called the dividend, q is called the quotient, and r is called the remainder Examples: - Let a = and d = Then = 9 + - Let a = - and d = 3 Then - = 3 (-4) + - Let a = 3 and d = Then 3 = + 3

Discrete Mathematics Primes 3-7 Representation of Integers In most cases we use decimal representation of integers. For example, 657 means 6 + 5 + 7 = Let b be a positive integer greater than. Then if n is a positive integer, it can be expressed uniquely in the form k k k k n = a b + a b + L+ a b + a where k is a nonnegative number, a k, ak, K,a, a are nonnegative integers less than b, and a k Such a representation of n is called the base b expansion of n, denoted by (a a Ka a ) k k b 6 + 5 + 7

Discrete Mathematics Primes 3-8 Binary Expansion a Important case of a base is. The base expansion is called the binary expansion of a number k k n = a + a + L+ a + a Find the binary expansion of 65 8 65 a k 4 8 65 = 8 + 8 = 4 + 4 = + k 4 a a a 3 4 a5 a6 = + = 5 + 5 = + 65 = () 5 5 = + = + a 7

Discrete Mathematics Primes 3-9 Hexadecimal Expansion Using A, B, C, D, E, F for,,, 3, 4, 5, respectively, find the base 6 expansion of 7567

Discrete Mathematics Primes 3- Primes Every integer n (except for and -) has at least positive divisors, and n (or -n). A positive number that does not have any other positive divisor is called prime Prime numbers:, 3, 5, 7,, 3, 7, 9, 3, 9, 3, 37, 4, 43, Mersenne numbers are the numbers of the form M = n n There are many prime numbers among Mersenne numbers. The greatest known prime number is M 358657 358657 = 358439369395 The next candidate is = M M6 A positive number that is not prime is called composite

Discrete Mathematics Primes 3- Composite Numbers Every composite number has a prime divisor. Proof. Let S be the set of all composite numbers that do not have a prime divisor Since S N, by the Well-Ordering Principle, it has a least element r. As r is not prime, it has a divisor, therefore, r = uv for some positive integers u and v. u < r and v < r. Therefore u S, and u has a prime divisor p. Since p u and u r, we conclude that p r, a contradiction.

Discrete Mathematics Primes 3- How many prime numbers are there? Theorem (Euclid) There are infinitely many prime numbers. Proof. By contradiction. Suppose that { p,p, K, pk} is the set of all prime numbers, and let a = pp Kpk + Since a is greater than any member of the list, a is composite. By the previous statement, a has a prime divisor, that is for some we have p j a Since p j a and p p p Kp we have p a p p Kp = j k A contradiction. n If n is a positive integer, then there are approximately prime ln n numbers not exceeding n j k p j

Discrete Mathematics Primes 3-3 Open Problems about Primes Goldbach s Conjecture Every positive even number can be represented as the sum of two prime numbers. For example: 4 = +, 8 = 5 + 3, 4 = 37 + 5 Goldbach s conjecture is known to be true for even numbers 7 up to The Twin Prime Conjecture Twin primes are primes that differ by, such as 3 and 5, 5 and 7, and 3, etc. The Twin Prime Conjecture asserts that there are infinitely many twin primes. 7,96 The record twin primes: 6,896,987,339,975 ±

Discrete Mathematics Primes 3-4 Homework Exercises from the Book No., 4,, 5, 6 (page 3)