MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Similar documents
Homework #2 solutions Due: June 15, 2012

MATH 310: Homework 7

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

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?

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

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

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,

Solutions to Practice Final

The primitive root theorem

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?

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

Mathematics 228(Q1), Assignment 3 Solutions

Part II. Number Theory. Year

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

Math 109 HW 9 Solutions

Discrete Logarithms. Let s begin by recalling the definitions and a theorem. Let m be a given modulus. Then the finite set

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

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

M381 Number Theory 2004 Page 1

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

Summary Slides for MATH 342 June 25, 2018

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

MATH 361: NUMBER THEORY FOURTH LECTURE

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

Introduction to Number Theory

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

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Math 319 Problem Set #2 Solution 14 February 2002

3 The fundamentals: Algorithms, the integers, and matrices

CIS 6930/4930 Computer and Network Security. Topic 5.1 Basic Number Theory -- Foundation of Public Key Cryptography

Math 314 Course Notes: Brief description

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

Number Theory Proof Portfolio

Discrete Math, Second Problem Set (June 24)

Coding Theory ( Mathematical Background I)

Elementary Number Theory MARUCO. Summer, 2018

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

Table of Contents. 2013, Pearson Education, Inc.

Outline. Some Review: Divisors. Common Divisors. Primes and Factors. b divides a (or b is a divisor of a) if a = mb for some m

Outline. AIT 682: Network and Systems Security. GCD and Euclid s Algorithm Modulo Arithmetic Modular Exponentiation Discrete Logarithms

MATH 145 Algebra, Solutions to Assignment 4

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

Introduction to Information Security

Math 110 HW 3 solutions

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

Theory of Numbers Problems

CSC 474 Network Security. Outline. GCD and Euclid s Algorithm. GCD and Euclid s Algorithm Modulo Arithmetic Modular Exponentiation Discrete Logarithms

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

Basic elements of number theory

Basic elements of number theory

ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION

EXAMPLES OF MORDELL S EQUATION

Chapter 8. Introduction to Number Theory

4 Number Theory and Cryptography

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

Integers and Division

Notes on Continued Fractions for Math 4400

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

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

Number Theory. Modular Arithmetic

EXAMPLES OF MORDELL S EQUATION

Quadratic Congruences, the Quadratic Formula, and Euler s Criterion

1 Overview and revision

Winter Camp 2009 Number Theory Tips and Tricks

Elementary Number Theory Review. Franz Luef

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

Math 3320 Problem Set 10 Solutions 1

Notes on Systems of Linear Congruences

Chapter 3 Basic Number Theory

Numbers, Groups and Cryptography. Gordan Savin

1. multiplication is commutative and associative;

Course 2316 Sample Paper 1

3.2 Solving linear congruences. v3

Discrete Mathematics with Applications MATH236

ECEN 5022 Cryptography

MATH 3240Q Introduction to Number Theory Homework 4

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru


University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

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

PMA225 Practice Exam questions and solutions Victor P. Snaith

A Guide to Arithmetic

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

Number Theory and Group Theoryfor Public-Key Cryptography

CHAPTER 3. Congruences. Congruence: definitions and properties

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.

Public-key Cryptography: Theory and Practice

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

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

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

A. Algebra and Number Theory

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

Part V. Chapter 19. Congruence of integers

CSC 474 Information Systems Security

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

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Homework.

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 6. Unique Factorization Domains

Transcription:

MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find an integer solution of 305x + 145y = gcd(305, 145). Solution: 305 = 2 145 + 15 145 = 10 15 5 15 = 3 5 + 0 Hence 5 = gcd(305, 145) and substituting 15 = 305 2 145 into the second equation gives 5 = 10 305 21 145. When dividing 145 by 15 we have used a smaller reminder 5 then the customary 10, to accelerate the process. 1.2.5. Let a and b be two integers. Show that any common divisor of a and b divides the greatest common divisor of a and b. Solution: Let d be the greatest common divisor. Then d = ax + by for some integers x and y. Let c be a common divisor of a and b, Then a = cm and b = cn for some integers n and m. Substituting gives d = cmx + cny = c(mx + ny) i.e. c is a divisor of d. 2. Chapter 2 2.1.1. Let G be a group and e and e two identity elements. Show that e = e. Hint: consider e e. Solution: e e = e, since e is an identity element. e e = e since e is an identity element. Hence e = e. 2.1.3. Let G be a group. Assume that a = a 1 for every a in G. Show that G is commutative, i.e. ab = ba for all a and b in G. Solution: ab = (ab) 1 = b 1 a 1 = ba. 2.2.1. Prove that an integer is divisible by 11 if and only if the sum of its digits is divisible by 11. 1

2 MATH 4400 SOLUTIONS TO SOME EXERCISES Solution: Since 10 1 (mod 11), 10 k ( 1) k (mod 9) for all integers k 0. If a m,..., a 0 are decimal digits of an integer n, then n = a m 10 m + + a 2 10 2 + a 1 10 + a 0 ( 1) m a m + + a 2 a 1 + a 0 (mod 11). 2.4.1. Let G be a group and g an element in G of order n. Let m be a positive integer such that g m = e. Show that n divides m. Solution: Write m = nq + r where 0 r < n. We want to show that r = 0. In addition to g m = e, we also have g n = e since the order of g is n. Then we have the following identities. e = g m = g nq+r = (g n ) e g r = g r. Hence g r = e and this is possible only if r = 0. 2.4.5. Let G be a group and g an element in G of order 9. What is the order of g 3? What is the order of g 2? Justify your answers. Solution: Since the order of g is 9, g 9, g 18, g 27, g 36,... are all powers of g equal to the identity element in G. Thus the order of g k is the smallest integer m such that km is a multiple of 9. If k = 3 then m = 3, if k = 2 then m = 9. 2.4.7 Let g be a group element such that g 9 = e and g 16 = e where e is the identity element. Show that g = e. Solution: Since 9 and 16 are relatively prime there exist integers x and y such that 1 = 9x + 16y. Then g = g 1 = g 9x+16y = g 9x g 16y = (g 9 ) x (g 16 ) y = e e = e. In a pedestrian way, g 16 = e and g 9 = e imply that g 7 = e, then g 9 = e and g 7 = e imply that g 2 = e etc. 2.5.3 Solve the system of congruences x 4 (mod 55) x 11 (mod 69) Solution: The first equation implies x = 4 + k 55. Substituting into the second equation gives k 55 = 7 (mod 69). The inverse of 55 modulo 69 is 5. Thus k = 35. 2.5.5. Solve the system of congruences x 11 (mod 16) x 16 (mod 27) Solution: The second equation implies x = 16 + k 27. Substituting into the first equation gives k 11 = 11 (mod 16), since 16 0 (mod 16) and 27 11 (mod 16), hence k = 1. Thus x = 43. 2.5.6. Find the last two digits of 3 125.

MATH 4400 SOLUTIONS TO SOME EXERCISES 3 Solution: The question is: What is 3 101 modulo 100? Since 3 is relatively prime to 100, we can use Euler s theorem modulo 100. Since ϕ(100) = ϕ(4)ϕ(25) = 2 20 = 40, it follows that 3 40 1 (mod 100) and 3 125 = 3 3 40+5 3 5 = 43 (mod 100). 2.5.9. Compute 3 25 modulo 45. Hint: compute 3 25 modulo 9 and 5, then use CRT. Solution: It is clear that 3 45 0 (mod 9). Since ϕ(5) = 4, and 3 is prime to 5, 3 25 3 (mod 5). Hence, we are looking for x such that 3 + 5x 0 (mod 9). The multiplicative inverse of 5 modulo 9 is 2, hence x 2 ( 3) 3 (mod 9). The answer is 3 + 5 3 = 18. 3. Chapter 3 3.1.5. Let R be a ring and let 1 denote the inverse of 1 for addition. Show that, for every r R, ( 1) r = r, where r is the inverse of r for addition. Hint: use r 0 = 0. Solution: Multiply (1 + ( 1)) = 0 by r, use r 0 = 0 on the right, and the distributive property on the left to conclude that r + ( 1) r = 0. Uniqueness of the additive inverse implies that ( 1) r is the additive inverse of r. 3.3.1. Find the inverse of 2 + 5i modulo 31. Is there an inverse of 2 + 5i modulo 29? Solution: We are looking for x + yi such that (2 + 5i)(x + yi) = 1. This leads to a pair of linear equations 2x 5y = 1 and 5x + 2y = 0. Modulo 31 there is a unique solution, x = 2/29 and y = 5/29. The inverse of 29 modulo 31 is 15, so 30 + 18i is the inverse modulo 31. Modulo 29 the system has no solution: the determinant of the system is 29 0 (mod 29), so the two lines are parallel, but they do not coincide, since (0, 0) is a solution to only one of the two equations. Alternatively, observe that (2 + 5i)(2 5i) 0 (mod 29), so 2 + 5i is a zero divisor, and thus it cannot be invertible. 4. Chapter 4 4.1.1. Let S = {p 1,..., p n } be any list of odd primes. Let m = 3p 1 p n + 2. Show that m is divisible by an odd prime q 2 (mod 3) not in the set S. Conclude that there are infinitely many primes congruent to 2 modulo 3. Solution: Let m = q 1 q 2 q s be a factorization into primes. Since m is odd and not divisible by 3 none of the primes factors is 2 or 3. If q i 1 (mod 3) for all i then m 1 (mod 3). But m 2 (mod 3), thus q i 2 (mod 3) for at least one prime q i. 5.1.1 a) Solve x 5 2 (mod 35). 5. Chapter 5 Solution. The solution is x 2 u (mod 35) where u is the inverse of 5 modulo 24 = ϕ(35). Since 5 5 1 (mod 24) the inverse of 5 if 5. Hence x = 2 5 = 32.

4 MATH 4400 SOLUTIONS TO SOME EXERCISES 5.1.1 d) Solve the congruence x 5 3 (mod 64). Solution: This is solved by taking both sides to the power a, where a is the inverse of 5 modulo ϕ(64) = 32. Then the right side is x and the left hand side of the congruence is the solution 3 a. The inverse of 5 is 13. It remains to compute 3 13, and this is done by consecutive squaring: 3 4 17 (mod 64), 3 8 33 (mod 64). Hence 3 13 = 3 8 3 4 3 33 17 3 19 (mod 64). 5.2.1. Let n = p m, where p is prime. Verify, by computing all terms in the sum, that ϕ(d) = n. d n Solution: The divisors of p m are p i where i = 0, 1,..., m. Since ϕ(1) = 1, and ϕ(p i ) = p i p i 1 for i > 0 m ϕ(d) = ϕ(p i ) = 1 + (p 1) + (p 2 p) +... + (p m p m 1 ) = p m = n. d n i=1 5.3.1. Let F be a field, and n a positive integer. If z is an n-the root of 1, then z 1 is also an n-th root of 1. If x and y are two n-th roots of 1, then xy is an n-th root of 1. Solution: We have z n = 1, by the definition of n-th roots of 1. Hence the inverse of z is z n 1, and (z n 1 ) n = (z n ) n 1 = 1 i.e. the inverse is also an n-th root of 1. We have x n = 1 and y n = 1. Multiplying this equations gives x n y n = 1. Since the multiplication in a field is commutative, x n y n = (xy) n, thus (xy) n = 1, i.e. xy is an n-th root of 1. 5.3.3. Compute all powers of 2 modulo 13, and enter them in the table. Which numbers modulo 13 have order 12? Solution. I 01 02 03 04 05 06 07 08 09 10 11 12 2 I 2 4 8 3 6 12 11 9 5 10 7 1 The table shows that the order of 2 is 12. Since 2 I has order 12 if and only if I is prime to 12, it follows that 2, 2 5 = 6, 2 7 = 11, 2 11 = 7 have order 12. 5.3.4. Calculate orders of all non-zero elements modulo 13. Solution: x 1 2 3 4 5 6 7 8 9 10 11 12 ord(x) 1 12 3 6 4 12 12 4 3 6 12 2 5.4.1. Use the discrete logarithm modulo 11 with base 2 to solve the congurence 7x 6 (mod 11). I 1 2 3 4 5 6 7 8 9 10 2 I 2 4 8 5 10 9 7 3 6 1

MATH 4400 SOLUTIONS TO SOME EXERCISES 5 Solution: Using notation I(x) for the discrete logarithm, the equation 7x 6 (mod 11) implies I(7) + I(x) I(6) (mod 10). Using I(7) = 7 and I(6) = 9 from the above table, it follows that I(x) = 9 7 = 2. Hence x = 4. 6. Chapter 6 6.1.2 b) Use Euler s criterion to determine if 2 is a square modulo 43. Compute the necessary power of 2 using the method of consecutive squares. Solution: We need to compute 2 (43 1)/2 = 2 21 modulo 43. Consecutive squaring of 2 modulo 43 gives 2 4 = 4 2 = 16, 2 8 = 16 2 = 2, 2 16 = ( 2) 2 = 4. Since 21 = 16 + 4 + 1, 2 21 = 2 16 2 4 2 4 16 2 = 128 1 (mod 43). Hence 2 is not a square modulo 43. 6.4.1. Use the primitive root 2 modulo 37 to find a primitive cubic root modulo 37, and a square root of 3 modulo 37. Solution: 2 has order 36, hence 2 12 11 (mod 37) and its square 2 24 10 (mod 37) are of order 3, i.e. primitive cube roots of 1. Their difference 21 16 (mod 37) is a square root of 3. 6.4.6 State the quadratic reciprocity law. Then calculate ( 122 127). Solution: Note that 122 = 2 61, 127 7 (mod 8) and 61 5 (mod 8). In particular 2 is a square modulo 127. ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 122 2 61 61 127 5 61 1 = = = = = = = 1 127 127 127 127 61 61 5 5 6.4.7. Does the quadratic equation x 2 + 4x + 11 = 0 have a solution modulo 43? Solution: By completing to a square, roots of the quadratic equation are 2 ± 7. By quadratic reciprocity, ( ) ( ) ( ) 7 43 1 = = = 1. 43 7 7 Hence, 7 is a square modulo 43, so we have solutions modulo 43. Alternatively, notice that 7 36 (mod 43) so 7 = ±6. 6.4.12. Let n be a positive integer. Let p be a prime divisor of n 2 + 3. Use the quadratic reciprocity to conclude that p 1 (mod 3). Hint: n 2 3 (mod p). Solution: p dividing n 2 +3 implies that 3 is a square module p. By the quadratic reciprocity, this happens if and only if p 1 (mod 3). 6.4.13. Use the previous exercise to prove that there are infinitely many primes congruent to 1 modulo 3.

6 MATH 4400 SOLUTIONS TO SOME EXERCISES Solution: Let S = {p 1,..., p m } be any set of primes congruent to 1 modulo 3. Let n = p 1... p m. Then any p dividing n 2 + 3 is clearly different from p 1,..., p m. 7. Chapter 7 7.1.5. Can Pepin s test be done with 3 replaced by 7? Solution: ( ) Yes if 7 is not a square modulo any Fermat s prime. Thus we need to show that 7 F n = 1, for any Fermat prime F n. Since F n 1 (mod 4), it follows that ( ) ( ) 7 Fn =. 7 F n It remains to determine F n modulo 7. Note that consecutive squaring of 2 modulo 7 alternates between 2 and 4. Hence F n, modulo 7, is 3 or 5. Neither of the two numbers is a square modulo 7, hence Pepin s test works with 7. 8. Chapter 8 8.1.2. Use the descent procedure procedure to find a solution of the equation x 2 + y 2 = 61 starting with 11 2 + 1 2 = 2 61. Solution: Here m = 2. 11 1 (mod 2) and 1 1 (mod 2). giving 6 2 + 5 2 = 61. 1 (11 + i)(1 i) = 6 5i 2 9. Chapter 9 9.1.4. Prove by induction the closed formula for the sum of the first n powers of 2. (The first is 2 0 = 1.): 1 + 2 + + 2 n 1 = 2 n 1. Solution: If n = 1 then 1 = 2 1 1, so the formula is true for n = 1. Assume the formula true for n. Adding 2 n to both sides yields 1 + 2 + + 2 n 1 + 2 n = 2 n 1 + 2 n. Since 2 n + 2 n = 2 n (1 + 1) = 2 n 2 = 2 n+1, the formula is true for n + 1. 9.2.4. Show that, if (u, v) is a solution of x 2 3y 2 = 2 then { u 1 = 2u + 3v v 1 = u + 2v is another solution of x 2 3y 2 = 2.

Solution: MATH 4400 SOLUTIONS TO SOME EXERCISES 7 (2u + 3v) 2 3(u + 2v) 2 = 4u 2 + 12uv + 9v 2 3(u 2 + 4uv + 4v 2 ) = u 2 3v 2 = 2. NB: Solutions of the Pell equation x 2 3y 2 = 1 act on the solutions of x 2 3y 2 = 2. The first solution of x 2 3y 2 = 1 is 2 + 3, and if u + v 3 is a solution of x 2 3y 2 = 2, then (2 + 3)(u + v 3) = (2u + 3v) + (u + 2v) 3 is another solution of x 2 3y 2 = 2. 9.2.5. Recall that numbers P n = 3n2 n 2 are pentagonal, while T m = m(m+1) 2 are triangular. The equation P n = T m, after substituting n = (x + 1)/6 and m = (y 1)/2, becomes the equation x 2 3y 2 = 2. Use the previous problem to generate solutions of this equation to find three pentagonal-triangular numbers. (P 1 = T 1 = 1 is one.) Solution: The first pentagonal-triangular number P 1 = T 1 = 1 corresponds to the solution (5, 3) of x 2 3y 3 = 2. The previous exercise generates the following solutions of x 2 3y 2 = 2: (19, 11), (71, 41), (265, 153), (989, 571)... Only every other of these solutions can be converted into integral (n, m): (71, 41) into (12, 20) and (989, 571) into (165, 285). It follows that P 12 = T 20 = 210 and P 165 = T 285 = 40755 are two additional pentagonal-triangular numbers.