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

Similar documents
Math Introduction to Advanced Mathematics

1 Elementary number theory

1 Elementary number theory

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

r=1 The Binomial Theorem. 4 MA095/98G Revision

Math 302 Introduction to Proofs via Number Theory. Robert Jewett (with small modifications by B. Ćurgus)

36 Modular Arithmetic

Algorithmic number theory Cryptographic hardness assumptions. Table of contents

Integers and Mathematical Induction

9.5 Equivalence Relations

Ch 3.4 The Integers and Division

Euclid's Algorithm. MA/CSSE 473 Day 06. Student Questions Odd Pie Fight Euclid's algorithm (if there is time) extended Euclid's algorithm

CS 97SI: INTRODUCTION TO PROGRAMMING CONTESTS. Jaehyun Park

About the Author. Dependency Chart. Chapter 1: Logic and Sets 1. Chapter 2: Relations and Functions, Boolean Algebra, and Circuit Design

Number System. Introduction. Natural Numbers (N) Whole Numbers (W) Integers (Z) Prime Numbers (P) Face Value. Place Value

Discrete Mathematics Lecture 4. Harper Langston New York University

UCT Algorithm Circle: Number Theory

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Introduction to Sets and Logic (MATH 1190)

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

Chapter 3: Theory of Modular Arithmetic 1. Chapter 3: Theory of Modular Arithmetic

Modular Arithmetic. Marizza Bailey. December 14, 2015

Excerpt from "Art of Problem Solving Volume 1: the Basics" 2014 AoPS Inc.

Introduction to Modular Arithmetic

Mathematics. Jaehyun Park. CS 97SI Stanford University. June 29, 2015

DISCRETE MATHEMATICS

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

Chapter 4. Number Theory. 4.1 Factors and multiples

Discrete Mathematics SECOND EDITION OXFORD UNIVERSITY PRESS. Norman L. Biggs. Professor of Mathematics London School of Economics University of London

2 Solution of Homework

Chapter 18 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

Exercise Set Decide whether each matrix below is an elementary matrix. (a) (b) (c) (d) Answer:

COP 4516: Math for Programming Contest Notes

Lecture 7 Number Theory Euiseong Seo

Topic 10 Part 2 [474 marks]

Ngày 9 tháng 12 năm Discrete Mathematics Lecture-15

SECONDARY DRAFT SYLLABUS. 2. Representation of functions. 3. Types of functions. 4. Composition of functions (two and three)

Lemma (x, y, z) is a Pythagorean triple iff (y, x, z) is a Pythagorean triple.

Binary Relations McGraw-Hill Education

Module 2 Congruence Arithmetic pages 39 54

Uncharted Territory of Zero Divisor Graphs and Their Complements

Discrete Mathematics Course Review 3

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Univ. of Illinois Due Wednesday, Sept 13, 2017 Prof. Allen

Scan Scheduling Specification and Analysis

Finite Math - J-term Homework. Section Inverse of a Square Matrix

STUDENT NUMBER: MATH Final Exam. Lakehead University. April 13, Dr. Adam Van Tuyl

31.6 Powers of an element

4&5 Binary Operations and Relations. The Integers. (part I)

CS669 Network Security

MITOCW watch?v=kvtlwgctwn4

Prepared by Sa diyya Hendrickson. Package Summary

CS Network Security. Nasir Memon Polytechnic University Module 7 Public Key Cryptography. RSA.

A.1 Numbers, Sets and Arithmetic

1 / 43. Today. Finish Euclid. Bijection/CRT/Isomorphism. Fermat s Little Theorem. Review for Midterm.

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

is evenly divisibly by 10. What is the check digit for the mild RO TEL?

MAT 090 Brian Killough s Instructor Notes Strayer University

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

Chapter 1 An Introduction to Computer Science. INVITATION TO Computer Science 1

! Addition! Multiplication! Bigger Example - RSA cryptography

Algorithms (III) Yu Yu. Shanghai Jiaotong University

Definition 2 (Projective plane). A projective plane is a class of points, and a class of lines satisfying the axioms:

Discrete mathematics , Fall Instructor: prof. János Pach

REGULAR GRAPHS OF GIVEN GIRTH. Contents

UNIT-II NUMBER THEORY

Solutions to First Exam, Math 170, Section 002 Spring 2012

Elementary number theory

The Chinese remainder theorem

CS388C: Combinatorics and Graph Theory

Section A Arithmetic ( 5) Exercise A

Congruence Arithmetic

Algorithms (III) Yijia Chen Shanghai Jiaotong University

Summary of Course Coverage

Today. Finish Euclid. Bijection/CRT/Isomorphism. Review for Midterm.

COMPETENCY 1.0 UNDERSTAND THE STRUCTURE OF THE BASE TEN NUMERATION SYSTEM AND NUMBER THEORY

Package VeryLargeIntegers

AMS /672: Graph Theory Homework Problems - Week V. Problems to be handed in on Wednesday, March 2: 6, 8, 9, 11, 12.

(1) Modular arithmetic

Computable Euclidean Domains

Primes in Classes of the Iterated Totient Function

Lectures on Order and Topology

Math 126 Number Theory

Lecture Notes, CSE 232, Fall 2014 Semester

Calculation of extended gcd by normalization

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

Chapter 4 Section 2 Operations on Decimals

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

Discrete Math: Selected Homework Problems

Ramsey s Theorem on Graphs

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

2. Draw a non-isosceles triangle. Now make a template of this triangle out of cardstock or cardboard.

Course Learning Outcomes for Unit I. Reading Assignment. Unit Lesson. UNIT I STUDY GUIDE Number Theory and the Real Number System

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

Number Theory Open, Round 1 Test #101

AXIOMS FOR THE INTEGERS

Algorithms (III) Yijia Chen Shanghai Jiaotong University

Applied Cryptography and Network Security

Connecting Statements. Today. First there was logic jumping forward.. ..and then proofs and then induction...

Transcription:

The first exam will be on Wednesday, September 22, 2010. The syllabus will be sections 1.1 and 1.2 in Lax, and the number theory handout found on the class web site, plus the handout on the method of successive squaring in computing high powers of an integer modulo n. In the following lists, pages and results on the number theory handout will be referred by preceding the number with H. Thus, Page H.23 refers to page 23 of the handout, while Proposition H.1.2.3 refers to Proposition 1.2.3 of the handout. Following are some of the concepts and results you should know: Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element. The cardinality of X, denoted X, is the number of elements of X. Some formulas for the cardinality of combinations of sets X and Y : 1. X Y = X + Y X Y. 2. X Y = X Y. 3. P(X) = 2 X where P(X) denotes the power set of X, that is, P(X) is the set of all subsets of X. 4. {all functions f : X Y } = Y X. The number of ways to choose r elements (without replacement) from an n-element set is ( ) n n! = r r!(n r)!. Know the Binomial Theorem: If x and y are any numbers, then (x + y) n = n x n k y k, k=0 where ( ) n = k n! k!(n k)!. Know the Division Algorithm. Know the definition of a divides b for integers a and b (notation: a b). Know the definition of the greatest common divisor of the integers a and b (notation: (a, b)). Know the Euclidean Algorithm and how to use it to compute the greatest common divisor of integers a and b. Know how to use elementary row operations to codify the calculations needed for the Euclidean algorithm into a sequence of matrix operations as illustrated on Pages H.11 and H.12. Know the definition of relatively prime integers. Be sure to know Theorem H.12.3 (Page H.16) which relates the relative primeness of a and b to various divisibility conclusions. Know the definition of least common multiple of integers a and b (notation: [a, b]). 1

Know the relationship between the greatest common divisor, least common multiple, and the product of integers a and b: ab = (a, b)[a, b]. (Page H.22.) Know the definition of prime number. Know Euclid s Lemma: If p is a prime, a and b are integers, and p ab, then p a or p b (Corollary 2.19, Page 14). Know the Fundamental Theorem of Arithmetic (Theorem 2.21, Page 14 or Theorem H.1.2.7, Page H.18), and how to use it to compute the greatest common divisor and least common multiple of two integers a and b (Proposition 2.22, Page 15 or Proposition H.1.2.10, Page H.21). Know what it means for an integer a to be congruent modulo n to another integer b (notation a b mod n). Know the definition of congruence class of a modulo n (notation [a] n ). Know the definition of the number system Z n, and how to do arithmetic in Z n : [a] n + [b] n = [a + b] n [a] n [b] n = [ab] n Know the definition of [a] n is invertible in Z n, (Definition H.1.4.4, Page H.38) and know the criterion of invertibility of [a] n : An element [a] n Z n is invertible (or has a multiplicative inverse) if and only if (a, n) = 1, that is, if and only if a and n are relatively prime. Moreover, if r and s are integers such that ar + ns = 1, then [a] 1 n = [r] n. (Proposition H.1.4.5, Page H.38.) Know how to use the Euclidean algorithm to compute [a] 1 n, when the inverse exists. Know what it means for a nonzero congruence class [a] n Z n to be a zero divisor: there is [b] n = [0] n with [a] n [b] n = [0] n. (Definition H.1.4.3, Page H.38) Every nonzero element of Z n is either invertible or a zero divisor. (Proposition H.1.4.5, Page H.38.) Z n is the set of invertible elements of Z n. Z n is closed under multiplication, i.e., the product of any two elements of Z n is in Z n. If p is a prime, then Z p = Z p {[0] n }. (Corollary H.1.4.6, Page 39). Know what it means to solve a linear congruence ax b mod n. In particular, know that the solutions form congruence classes modulo n, so that they can be identified with elements of Z n. Know the criterion for solvability of a linear congruence, namely Theorem H.1.3.5, Page H.28. Know how to find all of the solutions to the linear congruence ax b mod n using the algorithm extracted from the proof of Theorem H.1.3.5, as described in class: 2

1. Calculate d = (a, n). 2. Test whether d divides b. (a) If d does not divide b, then there is no solution. (b) If d divides b then there are d solutions mod n. 3. To find the solutions in case (b), `divide the congruence through by d to get (a/d)x (b/d) mod (n/d). Notice that since a/d and n/d have greatest common divisor 1, this congruence will have a unique solution. 4. Calculate the inverse [e] n/d of [a/d] n/d, either by inspection or use the Euclidean algorithm. 5. Multiply the divided congruence by [e] n/d to get and calculate a solution c for x. [x] n/d = [e] n/d [b/d] n/d 6. The solutions to the original congruence ax b mod n will the d congruence classes mod n: [c] n, [c + (n/d)] n, [c + 2(n/d)] n,..., [c + (d 1)(n/d)] n. Know the Chinese Remainder Theorem (Theorem H.1.3.6, Page H.31), and how to solve simultaneous congruences. Know Fermat s theorem: if p is prime and p does not divide a then a p 1 1 mod p. (Corollary H.1.4.12, Page H.42). The Euler phi-function at n, denoted φ(n), is defined to be the number of positive integers less than or equal to n which are relatively prime to n. (Definition H.1.4.7, Page H.40) It is also true that φ(n) = Z n. (Page H.40). Know how to compute φ(n) from the two rules (Exercises 17 and 29, Pages H.44 45, and discussed in class): 1. If p is a prime k is any positive integer, then 2. If n and m are relatively prime, then φ(p k ) = p k p k 1. φ(nm) = φ(n)φ(m). Know how to to compute φ(n) from the prime factorization of n using the two rules listed above (Proposition H.1.4.8, Page H.41): If n = p k 1 1 pk r r, then ) ) φ(n) = (p k 1 1 pk 1 1 1 ) (p kr 1 pkr 1 1 ) = n (1 1p1 (1 1pr. Know Euler s Theorem: If n 2 and a is relatively prime to n, then a φ(n) 1 mod n. 3

Review Exercises Be sure that you know how to do all assigned homework exercises. The following are a few supplemental exercises similar to those already assigned as homework. These exercises are listed randomly. That is, there is no attempt to give the exercises in the order of presentation of material in the text. 1. Let X and Y be sets with cardinalities X = 4 and Y = 3. The following are 5 sets constructed from these two given sets: A = X Y B = P(X) C = P(Y ) D = {Functions f : X Y } E = {Functions f : Y X} Recall that P(X) denotes the power set of X, that is, the set of all subsets of X. Explain why this report cannot be correct. (Hint: Part (a) may be useful.) List these 5 sets in order according to their cardinality, starting with the set with the smallest number of elements and ending with the set with the largest number of elements. 2. (a) If S and T are finite sets, write the formula relating S T, S, T, and S T. It is not necessary to verify the formula, just write it down. (b) The following is a portion of a report submitted by a marketing analysis employee: Number of consumers interviewed: 100. Number of consumers using brand X: 78. Number of consumers using brand Y : 71. Number of consumers using both brands: 48. 3. Find the remainder when b is divided by a if: (a) a = 6, b = 25 (b) a = 6, b = 25 4. This problem involves arithmetic modulo 16. All answers should only involve expressions of the form [a] 16, with a an integer and 0 a < 16. (a) Compute [4] 16 + [15] 16. (b) Compute [4] 16 [15] 16. (c) Compute [15] 1 16. (d) List the invertible elements of Z 16. (e) List the zero divisors in Z 16. 5. (a) Show that the square of an arbitrary integer x is congruent to either 0 or 1 modulo 4. (b) Let x and y Z and assume that x 2 + y 2 r mod 4 for a non-negative integer r which is chosen as small as possible. What are the possible values of r? Why? (Hint: Part (a) will be useful.) (c) Show that not every positive integer is the sum of two squares of integers. (d) List the first 4 positive integers that are not sums of two squares. (Note that 1 = 1 2 + 0 2 is a sum of two squares.) 4

6. Let a, b, c, and d be positive integers. Determine if each of the following statements is True or False. If False, provide a counterexample. (a) If a c and b c, then ab c. (b) If (a, b) = 1 and (c, d) = 1, then (ac, bd) = 1. (c) If there exist integers r and s such that ra + sb = d, then d = (a, b). (d) [a, b] > (a, b). (e) For every positive integer n, the number system Z n always contains nonzero zero divisors. (f) Every nonempty set of positive integers contains a largest element. 7. Express 24 and 102 a products of primes and use this information to calculate (12, 102) and [12, 102]. 8. How many elements does Z 8 contain? List them. 9. Determine all x Z that solve the linear congruence 6x 9 mod 15. 10. (a) Find the greatest common divisor d = (803, 154) of 803 and 154, using the Euclidean Algorithm. (b) Write d = (803, 154) in the form d = s 803 + t 154. (c) Find the least common multiple [803, 154]. 11. Solve the system of congruences: 12. Solve the system of congruences: x 5 (mod 25) x 23 (mod 32). 5x 14 (mod 17) 3x 2 (mod 13). 13. Give an example of integers a, b, m, n such that the system of congruences has no solution. 14. (a) Compute 4 126 mod 127. (b) Compute 4 63 mod 127. (c) Compute 5 97 mod 127. x a (mod m) x b (mod n) 15. Compute the Euler phi function φ(n) for each of the following natural numbers n. (a) n = 221 (b) n = 6125 (c) n = 341 (d) n = 6860 5