Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

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

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

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Solutions to Assignment 1

Notes on Systems of Linear Congruences

Math 109 HW 9 Solutions

Chapter 5. Number Theory. 5.1 Base b representations

Modular Arithmetic Instructor: Marizza Bailey Name:

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

3 The fundamentals: Algorithms, the integers, and matrices

Homework #2 solutions Due: June 15, 2012

MATH FINAL EXAM REVIEW HINTS

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

LEGENDRE S THEOREM, LEGRANGE S DESCENT

Ch 4.2 Divisibility Properties

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

4 Number Theory and Cryptography

Math Homework # 4

Number Theory and Graph Theory. Prime numbers and congruences.

The Chinese Remainder Theorem

3.2 Solving linear congruences. v3

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

M381 Number Theory 2004 Page 1

CISC-102 Fall 2017 Week 6

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B.

Lecture Notes. Advanced Discrete Structures COT S

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

Part V. Chapter 19. Congruence of integers

MATH 361: NUMBER THEORY FOURTH LECTURE

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

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 = ,

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.

Number Theory Proof Portfolio

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

NOTES ON SIMPLE NUMBER THEORY

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

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

Homework 3, solutions

The Chinese Remainder Theorem

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

4 Powers of an Element; Cyclic Groups

Number Theory. Final Exam from Spring Solutions

Number Theory Solutions Packet

Integers and Division

1. multiplication is commutative and associative;

CHAPTER 3. Congruences. Congruence: definitions and properties

Elementary Number Theory. Franz Luef

Math 110 HW 3 solutions

CS280, Spring 2004: Prelim Solutions

Basic elements of number theory

Basic elements of number theory

A SURVEY OF PRIMALITY TESTS

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

Objective Type Questions

Numbers, Groups and Cryptography. Gordan Savin

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

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

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

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

Wilson s Theorem and Fermat s Little Theorem

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

MATH 2200 Final Review

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

MTH 346: The Chinese Remainder Theorem

Solving Diophantine Equations With Unique Factorization

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

Discrete Mathematics with Applications MATH236

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Elementary Number Theory MARUCO. Summer, 2018

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Elementary Properties of the Integers

. In particular if a b then N(

Winter Camp 2009 Number Theory Tips and Tricks

Math 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

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

LECTURE NOTES IN CRYPTOGRAPHY

MATH 145 Algebra, Solutions to Assignment 4

Chapter 2. Divisibility. 2.1 Common Divisors

ICS141: Discrete Mathematics for Computer Science I

Mathematics for Computer Science Exercises for Week 10

1 Overview and revision

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

For your quiz in recitation this week, refer to these exercise generators:

MATH 3240Q Introduction to Number Theory Homework 4

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

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.

Review. CS311H: Discrete Mathematics. Number Theory. Computing GCDs. Insight Behind Euclid s Algorithm. Using this Theorem. Euclidian Algorithm

Number Theory Homework.

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

(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.

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

n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition

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

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

Number theory lectures

Transcription:

Exercise 13. Consider positive integers a, b, and c. (a) Suppose gcd(a, b) = 1. (i) Show that if a divides the product bc, then a must divide c. I give two proofs here, to illustrate the different methods. SOLUTIONS Math 345 Homework 4 9/27/2017 Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have ax + by = 1 for some x, y Z. Multiplying both sides by c gives acx + bcy = c. Since a acx (by observation) and a bcy (because a bc), we must have that a c. Proof 2: using ch. 7 results. If a c, then there is some prime p and positive integer n with p n a and p n c Let m be the largest integer such that p m c, so that c = c p m and p c. Since m < n, we also have a = a/p m Z. Claim 1: a c. This is because otherwise, there would be some k such that a k = c. So ak = p m a k = p m c = c, a contradiction. Claim 2: a bc. Since a bc, there is some integer l satisfying al = bc. Dividing both sides by p m gives a l = c b, verifying our claim.// Claim 3: gcd(a, b) = 1 Since a a, any common divisor to a and b would have to be a common divisor of a and b. So our claim follows from gcd(a, b) = 1. // Putting these all together, we have p a and a bc, so p bc. Therefore, either p c (which it doesn t) or p b (implying that a and b have a non-trivial common factor, which they don t). This is a contradiction, implying that a c after all.

(ii) Show that if a and b both divide c, then ab must also divide c. Again, I give multiple proofs here, to illustrate the different methods. Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have lcm(a, b) = ab/1 = ab. So since c is a common multiple of a and b, we have ab = lcm(a, b) c. Proof 2: Using only ch. 6 results. Since a c and b c there are k, l Z satisfying ak = c and bl = c. And since gcd(a, b) = 1, we have an integer solution to ax + by = 1. Multiplying both sides by k, we get k = akx + bky = cx + bky since ak = c, = blx + bky since c = bl, = b(lx + ky). So c = ak = ab(lx + ky). Therefore, since lx + ky Z, we have ab c. Proof 3: using ch. 7 results. If ab c, then there is some prime p and positive integer n such that p n that divides ab but not c. Since gcd(a, b) = 1, using the fundamental theorem of arithmetic, we must have p n divides a or b (otherwise, p would divide both). Without loss of generality, suppose p n a. But then, since a c, we have p n c, a contradiction. (b) Give examples of a, b, and c where gcd(a, b) 1 and... (i) a divides the product bc, but a does not divide c: Answer. Let a = 6, b = 3, c = 2. (ii) a and b both divide c, but ab does not divide c: Answer. Let a = 6, b = 9, c = lcm(a, b) = 6 9/3 = 18.

Exercise 14. Let s and t be odd integers with s > t 1 and gcd(s, t) = 1. Prove that the three numbers s 2 t 2 s 2 + t 2 st,, and ( ) 2 2 are pairwise relatively prime (i.e. each pair of them is relatively prime). This fact was needed to complete the proof of the Pythagorean triples theorem (Theorem 2.1 on page 17). [Hint. Assume that there is a common prime factor and use the fact (Lemma 7.1) that if a prime divides a product, then it divides one of the factors.] Answer. We showed that a Pythagorean triple (a, b, c) is primitive if and only if gcd(a, b) = 1 (i.e. there is no need to check the pairs a and c or b and c, since any pairwise common divisor will imply the others). So since (??) forms a Pythagorean triple, we analyze gcd(st, (s 2 t 2 )/2). Suppose for the sake of contradiction that gcd(st, (s 2 t 2 )/2) > 1. Then consider a prime divisor p that they have in common (since gcd(st, (s 2 t 2 )/2) has a prime factorization, such a p exists). Then since p st, we have p s or p t. Now using p (s 2 t 2 )/2 to write (s 2 t 2 )/2 = pb with b Z, we have 2pb = s 2 t 2 = (s + t)(s t). So p (s + t)(s t), which implies p (s + t) or p (s t). Either way, since p s, this implies that p t. But that implies that p is a common divisor of s and t, contradicting gcd(s, t) = 1. A similar argument follows for p t. Thus (??) forms a PPT. Exercise 15. Group the numbers 10 i 10 into sets according to which numbers are pairwise congruent modulo 4. [You should have 4 sets of roughly the same size.] Answer. Denoting we have [r] = {i { 10,..., 9, 10} i 4 r}, [0] = { 8, 4, 0, 4, 8}, [1] = { 7, 3, 1, 5, 9}, [2] = { 10, 6, 2, 2, 6, 10}, [3] = { 9, 5, 3, 7}.

Exercise 16. Fix n 1. (a) Prove that congruence is an equivalence relation by showing (i) reflexivity: a a (mod n) for all a Z; (ii) symmetry: if a b (mod n), then b a (mod n); and (iii) transitivity: if a b (mod n) and b c (mod n), then a c (mod n). Proof. Recall that a b (mod n) if and only if n (a b), i.e. there is some k Z satisfying nk = a b. (i) Reflexivity: a Z, we have a a = 0 = 0 n. So a n a. (ii) Symmetry: If a b (mod n), then there is a k Z satisfying nk = a b. So n( k) = b a. Thus, since k Z, we have b a (mod n). (iii) Transitivity: If a b (mod n) and b c (mod n), then there are k, l Z satisfying nk = a b and nl = b c. Therefore a c = (a b) + (b c) = nk + nl = n(k + l). So since k + l Z, we have a c (mod n). (b) Suppose a 1 b 1 (mod n) and a 2 b 2 (mod n). (i) Show that a 1 + a 2 b 1 + b 2 (mod n) and a 1 a 2 b 1 b 2 (mod n) (ii) Show that a 1 a 2 b 1 b 2 (mod n). Proof. Since a 1 b 1 (mod n) and a 2 b 2 (mod n), we have k 1, k 2 Z satisfying (i) Using (??), we have (a 1 + a 2 ) (b 1 + b 2 ) = (a 1 b 1 ) + (a 2 b 2 ) nk 1 = a 1 b 1 and nk 2 = a 2 b 2. ( ) = nk 1 + nk 2 = n(k 1 + k 2 ), and (a 1 a 2 ) (b 1 b 2 ) = (a 1 b 1 ) (a 2 b 2 ) = nk 1 nk 2 = n(k 1 k 2 ). So since k 1 ± k 2 Z, we have a 1 + a 2 b 1 + b 2 (mod n) and a 1 a 2 b 1 b 2 (mod n) (ii) Rearranging (??), we have So a 1 = nk 1 + b 1 and a 2 = nk 2 + b 2. a 1 a 2 = (nk 1 + b 1 )(nk 2 + b 2 ) = n 2 k 1 k 2 + n(k 1 b 2 + k 2 b 1 ) + b 1 b 2 = n(nk 1 k 2 + k 1 b 2 + k 2 b 1 ) + b 1 b 2, giving a 1 a 2 b 1 b 2 = n(nk 1 k 2 + k 1 b 2 + k 2 b 1 ). Therefore, since (nk 1 k 2 + k 1 b 2 + k 2 b 1 ) Z, we have a 1 a 2 b 1 b 2 (mod n).

(c) Division. (i) Give an example of a, b, c, and n, with c 0 (mod n), where ac bc (mod n), but a b (mod n). Example. Let a = c = 2, b = 7, and n = 10: we have 2 7 (mod 10), but (ii) Show that if gcd(c, n) = 1, then 2 2 = 4 4 (mod 10), and 2 7 = 14 4 (mod 10). ac bc (mod n) implies a b (mod n). Proof. If ac bc (mod n), then n ac bc = (a b)c. So, since gcd(c, n) = 1, by Exercise 13(a)(i), we have n (a b). Thus a b (mod n).