Elementary Number Theory

Similar documents
Elementary Number Theory II

Simultaneous Linear, and Non-linear Congruences

Ch 4.2 Divisibility Properties

CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

Chapter 5: The Integers

2. THE EUCLIDEAN ALGORITHM More ring essentials

2 Elementary number theory

4 Powers of an Element; Cyclic Groups

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

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

5: The Integers (An introduction to Number Theory)

Chapter 2. Divisibility. 2.1 Common Divisors

NOTES ON SIMPLE NUMBER THEORY

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

1 Overview and revision

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

MATH10040 Chapter 1: Integers and divisibility

Divisibility in Z. Definition Let a, b Z be integers. We say that b divides a, if there exists c Z such that a = b c; we write b a.

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

1. Factorization Divisibility in Z.

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

4.4 Solving Congruences using Inverses

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

Introduction Integers. Discrete Mathematics Andrei Bulatov

Ma/CS 6a Class 2: Congruences

Part V. Chapter 19. Congruence of integers

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

CISC-102 Fall 2017 Week 6

Chapter 1 A Survey of Divisibility 14

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.

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

Rings and modular arithmetic

Number theory (Chapter 4)

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

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

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

4. Number Theory (Part 2)

Intermediate Math Circles February 26, 2014 Diophantine Equations I

The Fundamental Theorem of Arithmetic

Notes on Systems of Linear Congruences

Homework #2 solutions Due: June 15, 2012

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Chapter 5. Modular arithmetic. 5.1 The modular ring

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

NOTES ON INTEGERS. 1. Integers

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

The Euclidean Algorithm and Multiplicative Inverses

a = qb + r where 0 r < b. Proof. We first prove this result under the additional assumption that b > 0 is a natural number. Let

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

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.

MAS1202/MAS2202 Number Systems and the Foundations of Analysis. Semester 1, 2009/2010

DIVISIBILITY AND GREATEST COMMON DIVISORS

4 Number Theory and Cryptography

1. multiplication is commutative and associative;

Divisibility. Chapter Divisors and Residues

Direct Proof Divisibility

Lecture 4: Number theory

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

Number Theory Proof Portfolio

Number Theory and Group Theoryfor Public-Key Cryptography

Division Algorithm B1 Introduction to the Division Algorithm (Procedure) quotient remainder

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Contribution of Problems

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

T i t l e o f t h e w o r k : L a M a r e a Y o k o h a m a. A r t i s t : M a r i a n o P e n s o t t i ( P l a y w r i g h t, D i r e c t o r )

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

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

A FIRST COURSE IN NUMBER THEORY

Euclidean Domains. Kevin James

Elementary Number Theory Review. Franz Luef

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

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

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2.

With Question/Answer Animations. Chapter 4

Coding Theory ( Mathematical Background I)

Number Theory Notes Spring 2011

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

Chapter 5. Number Theory. 5.1 Base b representations

Further linear algebra. Chapter II. Polynomials.

8 Primes and Modular Arithmetic

Elementary Properties of the Integers

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

3 The fundamentals: Algorithms, the integers, and matrices

PMATH 340 Lecture Notes on Elementary Number Theory. Anton Mosunov Department of Pure Mathematics University of Waterloo

HOMEWORK ASSIGNMENT 5

18 Divisibility. and 0 r < d. Lemma Let n,d Z with d 0. If n = qd+r = q d+r with 0 r,r < d, then q = q and r = r.

Mathematics for Computer Science Exercises for Week 10

Wilson s Theorem and Fermat s Little Theorem

ELEMENTS OF NUMBER THEORY

Chapter 7. Number Theory. 7.1 Prime Numbers

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

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false.

Introduction to Sets and Logic (MATH 1190)

Transcription:

Elementary Number Theory CIS002-2 Computational Alegrba and Number Theory David Goodwin david.goodwin@perisic.com 09:00, Tuesday 25 th October 2011

Contents 1 Some definitions 2 Divisibility Divisors Euclid s Algorithm Bezout s Identity 3 Class Exercises

Some technical language theorem - a statement that has been proven on the basis of previously established statements lemma - a proven statement used as a stepping-stone toward the proof of another statement proof - a convincing demonstration that some mathematical statement is necessarily true corollary - a statement that follows readily from a previous statement

L. Carroll Can you do Division? Divide a loaf by a knife - what s the answer to that?

Theorem (1.1) If a and b are integers with b 0, then there is a unique pair of integers q and r such that a qb r and 0 r b We call q the quotient and r the remainder. q is the integer part of aßb and is symbolised by Öaßb.

Example (1.1) If n is a square, then n leaves a remainder 0 or 1 when divided by 4 n Ô4q r Õ 2 16q 2 8qr r 2 r 0 n 4 4q 2 2qr 0 r 1 n 4 4q 2 2qr 1 r 2 n 4 4q 2 2qr 1 r 3 n 4 4q 2 2qr 2 0 1

Definition If a and b are any integers, and a qb for some integer q, then we say that b divides a (or b is a factor of a, or a is a multiple of b). When b divides a we write b a and we use b a when b does not divide a.

Theorem (1.2) (a) If a b and b c then a c (b) If a b and c d then ac bd (c) If m 0, then a b if and only if ma mb (d) If d a and a 0 then d a (e) If c divides a 1,...,a k, then c divides a 1 u 1 a k u k for all integers u 1,...,u k (f) a b and b a if and only if a b

Greatest common divisor Definition If d a and d b we say d is a common divisor (or common factor) of a and b. If a and b are both not 0, we find from Theorem (1.2.d) that no common divisor is greater than max Ô a, b Õ. This is the greatest common divisor (or highest common factor) and is denoted by gcd Ôa,bÕ.

Euclid s Algorithm Lemma (1.3) If a qb Proof. r then gcd Ôa,bÕ gcd Ôb,r Õ Any common divisor of b and r also divides qb r a (from Theorem (1.2.e)), and since r a qb it follows that and common divisor of a and b also divides r. Therefore the two pairs a, b and b, r have the same common divisors, and so the same greatest common divisor.

Bezout s Identity We use Euclid s algorithm to give a simple expression for d gcd Ôa,bÕ Theorem (1.4) If a and b are integers (not both 0), then there exists integers u and v such that gcd Ôa,bÕ au bv

Theorem (1.5) Let a and b be integers (both not 0) with greatest common divisor d. Then an integer c has the form ax by for some x,y È Z if and only if c is a multiple of d. In particular, d is the least positive integer of the form ax by Ôx,y È ZÕ. Definition Two integers a and b are coprime (or relatively prime) if gcd Ôa,bÕ 1. A set of integers are coprime if gcd Ôa 1,a 2,... Õ 1 and are mutually coprime if gcd Ôa i,a j Õ 1 whenever i j. If a set of integers are mutually coprime then they are aslo coprime, but the converse if false.

Corollary (1.6) Two integers a and b are coprime if and only if there exists integers x and y such that ax by 1

Corollary (1.7) If gcd Ôa,bÕ d then for every integer m 0, and gcd Ôma,mbÕ md gcd a d, b Å 1 d

Corollary (1.8) Let a and b be coprime integers. (a) If a c and b c then ab c (b) If a bc then a c

Questions 1 What are the possible remainders when a perfect square is divided by 3, or by 5, or by 6? 2 If a divides b, and c divides d. must a c divide b d? 3 Calculate gcd Ô1485, 1745Õ using Euclid s algorithm. 4 Calculate gcd Ô1485, 1745Õ using Bezout s Identity.