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

Similar documents
Math 109 HW 9 Solutions

Homework #2 solutions Due: June 15, 2012

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?

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.2 Solving linear congruences. v3

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

M381 Number Theory 2004 Page 1

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

Mathematics 228(Q1), Assignment 3 Solutions

CHAPTER 3. Congruences. Congruence: definitions and properties

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

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

NOTES ON SIMPLE NUMBER THEORY

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

Number Theory Proof Portfolio

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

MATH 145 Algebra, Solutions to Assignment 4

Senior Math Circles Cryptography and Number Theory Week 2

Lecture Notes. Advanced Discrete Structures COT S

1. multiplication is commutative and associative;

MATH 2200 Final Review

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

Math 110 HW 3 solutions

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

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

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

Notes on Systems of Linear Congruences

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

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

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

MATH 361: NUMBER THEORY FOURTH LECTURE

Math 430 Midterm II Review Packet Spring 2018 SOLUTIONS TO PRACTICE PROBLEMS

Chapter 3 Basic Number Theory

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

Math 324, Fall 2011 Assignment 6 Solutions

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

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

Elementary Number Theory. Franz Luef

MATH FINAL EXAM REVIEW HINTS

Discrete Mathematics with Applications MATH236

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

1 Overview and revision

Chapter 5. Modular arithmetic. 5.1 The modular ring

Fall 2017 Test II review problems

Part V. Chapter 19. Congruence of integers

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,

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

MATH10040: Numbers and Functions Homework 1: Solutions

Congruence of Integers

Number Theory Solutions Packet

MATH 3240Q Introduction to Number Theory Homework 4

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

Chapter 5.1: Induction

Math Homework # 4

Solutions to Assignment 1

Solving Diophantine Equations With Unique Factorization

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Honors Algebra 4, MATH 371 Winter 2010 Assignment 3 Due Friday, February 5 at 08:35

Elementary Number Theory Review. Franz Luef

Ma/CS 6a Class 2: Congruences

Fall 2015 Lecture 14: Modular congruences. cse 311: foundations of computing

Solutions to Section 2.1 Homework Problems S. F. Ellermeyer

Solutions to Practice Final

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

1. Introduction to commutative rings and fields

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

Mathematics 228(Q1), Assignment 2 Solutions

1. Introduction to commutative rings and fields

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

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

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

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

Ma/CS 6a Class 2: Congruences

Math 4310 Solutions to homework 1 Due 9/1/16

a the relation arb is defined if and only if = 2 k, k

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

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

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

CISC-102 Fall 2017 Week 6

Mathematics for Computer Science Exercises for Week 10

Lecture 4: Number theory

Homework 10 M 373K by Mark Lindberg (mal4549)

Numbers, Groups and Cryptography. Gordan Savin

PRACTICE PROBLEMS: SET 1

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

201-1A5-MT - Mathematics Summer 2015 HOMEWORK 2 Deadline : Sunday, August 30, 2015 at 12 :30.

Name: Solutions Final Exam

A SURVEY OF PRIMALITY TESTS

Number Theory Homework.

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

CS280, Spring 2004: Prelim Solutions

Try the assignment f(1) = 2; f(2) = 1; f(3) = 4; f(4) = 3;.

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

NOTES ON FINITE FIELDS

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

0 Sets and Induction. Sets

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

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

Transcription:

Math 3, Fall 010 Assignment 3 Solutions Exercise 1. Find all the integral solutions of the following linear diophantine equations. Be sure to justify your answers. (i) 3x + y = 7. (ii) 1x + 18y = 50. (iii) x + 3y + 5z = 1. Solution : (i) By inspection, (x, y) = (1, 1) is a particular solution of the equation. Observing (3, ) = 1, the general solution is (x, y) = (1 + k, 1 3k), k Z. (ii) We note that (1, 18) = 6. Since 6 does not divide 50, the equation has no integral solutions. 1x + 18y = 50 (iii) Let (x, y, z) be an integral solution of the equation Observing (3, 5) = 1, (u, v) = (x, 3y + 5z) is a solution of the congruence x + 3y + 5z = 1. (1) x + v = 1. The last equation has the particular solution (6, 0), hence the general solution (x, v) = (6 + k, k), k Z. Observing 1 = 3 + 5 ( 1), multiplication by k shows that (y, z) = ( k, k) is a particular solution of the equation k = 3y + 5z. Since (3, 5) = 1, the last equation has the general solution (y, z) = ( k + 5l, k 3l), l Z. We conclude that the general solution of (1) is (x, y, z) = (6 + k, k + 5l, k 3l), k, l Z. Exercise.(i) Let m, n be positive integers with n m. Show that a b mod m implies a b mod n. Deduce that the assignments a mod m a mod n give a ring homomorphism Z/Zm Z/Zn. (ii) Let a, b, and c be integers with c positive. If a b mod c, show gcd(a, c) = gcd(b, c). Solution : (i) If a b mod m then m divides a b. Since n is assumed to divide m, it follows that n divides a b, hence a b mod m. 1

In light of the preceding remarks, if a mod m = a mod m then a mod n = a mod n. It follows that the rule a mod m a mod n, a Z, yields a well-defined map ρ : Z/Zm Z/Zn. Furthermore, if a, b Z, we have and ρ (a mod m + b mod m) = ρ ((a + b) mod m) = (a + b) mod n = a mod n + b mod n = ρ (a mod m) + ρ (b mod m), ρ (a mod m b mod m) = ρ (ab mod m) = ab mod n = a mod n b mod n = ρ (a mod m) ρ (b mod m). This shows that ρ respects both addition and multiplication, hence is a homormorphism as claimed. (ii) The hypothesis a b mod n implies there exists k Z such that b = a + kn. Exercise 1, Assignment 1 thus allows us to deduce (a, n) = (b kn, n) = (n, b) = (b, n). Exercise 3. (i) Let n be a integer. Show that (n + 3) 3 n 3 mod 9. (ii) Let n be a natural number. Prove that n 3 + (n + 1) 3 + (n + ) 3 is divisible by 9. (Hint : You may find (i) useful.) Solutions :(i) We calculate (n + 3) 3 = n 3 + 3n 3 + 3n (3) + 3 3 n 3 + 0 + 0 + 0 = n 3 mod 9. (ii) We shall use induction on n. Since 0 3 + 1 3 + 3 = 0 + 1 + 8 = 9, the result is true for n = 3. Suppose n 3 + (n + 1) 3 + (n + ) 3 is divisible by 9. By part (i), there exists integer k such that (n + 3) 3 = n 3 + 9k. Therefore, (n + 1) 3 + (n + ) 3 + (n + 3) 3 = (n + 1) 3 + (n + ) 3 + n 3 + 9k. By hypothesis, the sum of the first three terms on the right is divisible by 9. Since the remaining term is clearly divisible by 9, the righthand side of (1) is divisible by 9. Thus, (n + 1) 3 + (n + ) 3 + (n + 3) 3 is divisible by 9. The Principle of Mathematical Induction allows us to conclude that the result holds for all natural numbers n. Exercise. Let m be a positive integer. If m is odd or divisible by, show that 1 3 + 3 + 3 3 + + (m 1) 3 0 mod m. Is the statement true if m is even but not divisible by?

Solution : Set S m 1 = 1 3 + 3 + 3 3 + + (m 1) 3. Using induction on m, it is readily proved that S m 1 = m (m 1). If m is odd then m 1 is even. Writing m 1 = l, we obtain S m 1 = m (m 1) This shows m divides S m 1, hence S m 1 0 mod m. If m is divisible by, say m = k, then = m (l) = m l. S m 1 = m m(m 1) = m(k)(m 1) = mk(m 1). Thus m divides S m 1, hence S m 1 0 mod m. If m is even but not divisible by then the Division Algorithm yields m = k + for some integer k. In this case, S m 1 = m (m 1) = (k + ) (m 1) = (k + 1) (m 1). In particular, S m 1 is odd. Since any multiple of m will be even, we conclude m does not divide S m 1, hence S m 1 0 mod m. In fact, one has S m 1 = (k + 1) (m 1) (k + 1) ( 1) = (k + 1) = m mod m. Alternate Solution : If 1 j m 1 then j m j mod m, hence j 3 = ( j) 3 (m j) 3 mod m. (1) If m is odd then m 1 is even. Writing m 1 = l, we have S m 1 = j 3 + Changing the index from j to l + 1 j and reversing the order of summation, the second sum appearing on the right can be rewritten as l j=l+1 j 3 = l j=l+1 (l + 1 j) 3 = Substituting in our expression for S m 1 and using (1), we obtain S m 1 = j 3 + (m j) 3 = j 3. (m j) 3. (j 3 + (m j) 3 ) 3 (j 3 j 3 ) = 0 = 0 mod m.

Suppose m is even, say m = k. In this case, the sum S m 1 consists of k 1 terms. The argument provided above shows that the first k 1 terms are cancelled modulo m by the last k 1 terms. As such, If m is divisible by, say m = l then ( m ) 3 S m 1 k 3 = mod m. ( m ) 3 S m 1 = (l) 3 = 8l 3 = l l = m l 0 mod m. On the other hand, if m is not divisible by, say m = n +, then ( m ) 3 S m 1 = (n + 1) 3 mod m. Observing m cannot divide (n + 1) 3, since the latter number is odd, we conclude S m 1 0 mod m if m is even but not divisible by. Exercise 5. Let p be prime. Show that the only solutions of the congruence are the integers x such that x 0 or 1 mod p. x x mod p Solution : If x is a solution of the given congruence then p divides x x = x(x 1). Since p is prime, we conclude that either p x or p (x 1), hence x 0 mod p or x 1 mod p. Exercise 6. (a) Solve the following linear congruences (i) 18x 833 mod 1001. (ii) 987x 610 mod 1597. (b) For which integers c, 0 c < 30, does the congruence 1x = c mod 30 have solutions? When there are solutions, how many incongruent solutions are there? Solutions : (a) (i) Using the Euclidean Algorithm, we calculate gcd(18, 1001) = 1, with 1 = 305 18 39 1001. The preceding allows us to conclude that 305 is an inverse modulo 1001 of 18, hence the equation has the unique solution x 305 833 305 ( 168) = 510 189 mod 1001. (ii) By inspection, x 1 mod 1597 is a solution of the congruence. Indeed, 987 1597 987 = 610 mod 1597. Using the Euclidean Algorithm, we calculate gcd(987, 1597) = 1, hence x 1 mod 1597 is the unique solution modulo 1597.

(b) We note that d = gcd(1, 30) = 6. From the result in class, the congruence has a solution if and only if c is divisible 6, i.e. 1x c mod 30 c {0, 6, 1, 18, }. In each case, the congruence has d = 6 incongruent solutions modulo 30. Exercise 7. (a) Let p be an odd prime and a Z. Show that the equation x a mod p either has no solution or exactly two incongruent solutions. (b) Consider the congruence x 1 mod k (1) (i) Show that (1) has one solution when k = 1. (ii) Show that (1) has two incongruent solutions when k =. (iii) Show that (1) has four incongruent solutions when k >, namely x = ±1 or ±(1 + k 1 ). Solutions(a) Suppose the congruence has a solution, say x 0. If x is a second solution, then x a x 0 mod p, hence In particular, p divides 0 x x 0 mod p. x x 0 = (x x 0 )(x + x 0 ). Since it is prime, p must either divide x x 0 or x+x 0, hence x ±x 0 mod p. This shows that the congruence has at most two incongruent solutions. If x 0 x 0 mod p then p divides x 0 ( x 0 ) = x 0. Since p is an odd, p does not divide, hence p x 0, p being prime. In this case, x 0 0 mod p, hence a x 0 0 = 0 mod p, which implies p divides a, a contradiction. Thus x 0 and x 0 provide two incongruent solutions modulo p. In light of the above, the congruence x a mod p either has no solution or exactly two incongruent solutions. (b)(i) By the Division Algorithm, every integer is congruent to 0 or 1 modulo. Observing 0 = 0 1 mod while the congruence 1 = 1 1 mod, x 1 mod has the unique solution x 1 mod. 5

(ii) If x is even then x 1 is odd; in particular it is not divisible by. It follows that if x is a solution of the congruence x 1 mod then x is odd. In this case, the Division Algorithm ensures that x is congruent to either 1 or 3. Since 1 = 1 and 3 = 9 1 mod, we see that the solution set consists of the congruence classes of 1 and 3. Since 1 3 mod, we deduce that the congruence x 1 mod has precisely two incongruent solutions. (iii) Let r be an arbitrary solution of the congruence x 1 mod k. (1) First note that r is necessarily odd. As such, both r + 1 and r 1 are even, so Exercise, Assignment 1 allows us to conclude gcd(r 1, r + 1) =. We know consider cases. (I) The exponent of in the prime factorization of r 1 is 1. In this case, we can write where l is odd. The congruence (1) thus yields r 1 = l 0 r 1 = (r 1)(r + 1) = l(r + 1) mod k. Cancelling the factor of, 0 l(r + 1) mod k 1. Being odd, l is invertible modulo k 1. Multiplying by an inverse, we see 0 (r + 1) mod k 1, hence r = 1 + q k 1 for some integer q. If q is odd then r 1 + k 1 mod k, while r 1 mod k if q is even. (II) The exponent of in the prime factorization of r + 1 is 1. In this case, we can write where l is odd. The congruence (1) thus yields r + 1 = l 0 r 1 = (r 1)(r + 1) = l(r 1) mod k. Cancelling the factor of, 0 l(r 1) mod k 1. Being odd, l is invertible modulo k 1. Multiplying by an inverse, we see 0 (r 1) mod k 1, 6

hence r = 1 + q k 1 for some integer q. If q is odd then r 1 + k 1 mod k, while r 1 mod k if q is even. If x, y { 1, 1, 1 + k 1, 1 + k 1 } then, since k >, x y < + k 1 < k 1 + k 1 = k. Thus, x y is divisible by k if and only if x y = 0, i.e. x = y. In particular, the elements of { 1, 1, 1+ k 1, 1 + k 1 } yield distinct congruence classes modulo k, hence distinct solutions modulo k of the congruence (1). The preceding discussion allows to deduce that the congruence has precisely four incongruent solutions when k 3. 7