1.4 Integers Modulo n

Similar documents
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

Math 319 Problem Set #3 Solution 21 February 2002

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

Test1. Due Friday, March 13, 2015.

Applications of Fermat s Little Theorem and Congruences

Homework until Test #2

8 Primes and Modular Arithmetic

Computing exponents modulo a number: Repeated squaring

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Number Theory: A Mathemythical Approach. Student Resources. Printed Version

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Overview of Number Theory Basics. Divisibility

Chapter 3. if 2 a i then location: = i. Page 40

k, then n = p2α 1 1 pα k

V Quantitative Reasoning: Computers, Number Theory and Cryptography

Public Key Cryptography: RSA and Lots of Number Theory

The last three chapters introduced three major proof techniques: direct,

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

Lecture 13 - Basic Number Theory.

Groups in Cryptography

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Notes on Factoring. MA 206 Kurt Bryan

SUM OF TWO SQUARES JAHNAVI BHASKAR

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

8 Divisibility and prime numbers

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

of Nebraska - Lincoln

Prime Factorization, Greatest Common Factor (GCF), and Least Common Multiple (LCM)

Winter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov

SECTION 10-2 Mathematical Induction

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

PYTHAGOREAN TRIPLES KEITH CONRAD

Settling a Question about Pythagorean Triples

Quotient Rings and Field Extensions

RSA Question 2. Bob thinks that p and q are primes but p isn t. Then, Bob thinks Φ Bob :=(p-1)(q-1) = φ(n). Is this true?

26 Ideals and Quotient Rings

(0, 0) : order 1; (0, 1) : order 4; (0, 2) : order 2; (0, 3) : order 4; (1, 0) : order 2; (1, 1) : order 4; (1, 2) : order 2; (1, 3) : order 4.

Computer and Network Security

RSA and Primality Testing

Our Primitive Roots. Chris Lyons

11 Ideals Revisiting Z

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

Lecture 3: Finding integer solutions to systems of linear equations

mod 10 = mod 10 = 49 mod 10 = 9.

SOLUTIONS FOR PROBLEM SET 2

Number Theory and Cryptography using PARI/GP

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Factoring. Factoring 1

Math Workshop October 2010 Fractions and Repeating Decimals

Primes. Name Period Number Theory

Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA

4. FIRST STEPS IN THE THEORY 4.1. A

Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures

GENERATING SETS KEITH CONRAD

Solving Rational Equations

by the matrix A results in a vector which is a reflection of the given

Chapter 11 Number Theory

Five fundamental operations. mathematics: addition, subtraction, multiplication, division, and modular forms

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

Basic Proof Techniques

An Introduction to the RSA Encryption Method

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

MATH 289 PROBLEM SET 4: NUMBER THEORY

The cyclotomic polynomials

Primality - Factorization

Cryptography and Network Security Number Theory

MATH10040 Chapter 2: Prime and relatively prime numbers

Study of algorithms for factoring integers and computing discrete logarithms


Just the Factors, Ma am

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

3 1. Note that all cubes solve it; therefore, there are no more

GREATEST COMMON DIVISOR

r + s = i + j (q + t)n; 2 rs = ij (qj + ti)n + qtn.

How To Prove The Dirichlet Unit Theorem

Solving Linear Systems, Continued and The Inverse of a Matrix

4.5 Finite Mathematical Systems

The application of prime numbers to RSA encryption

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Handout NUMBER THEORY


CONSEQUENCES OF THE SYLOW THEOREMS

Stupid Divisibility Tricks

Introduction. Appendix D Mathematical Induction D1

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Notes on Algebraic Structures. Peter J. Cameron

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Solutions Manual for How to Read and Do Proofs

The Euclidean Algorithm

Algebra & Number Theory. A. Baker

4.2 Euclid s Classification of Pythagorean Triples

Solutions to TOPICS IN ALGEBRA I.N. HERSTEIN. Part II: Group Theory

minimal polyonomial Example

Transcription:

1.4 J.A.Beachy 1 1.4 Integers Modulo n from A Study Guide f Beginner s by J.A.Beachy, a supplement to Abstract Algebra by Beachy / Blair 31. Find the multiplicative inverse of each nonzero element of Z 7. Solution: Since 6 1 (mod 7), the class [6] 7 is its own inverse. Furtherme, 2 4 = 8 1 (mod 7), and 3 5 = 15 1 (mod 7), so [2] 7 and [4] 7 are inverses of each other, and [3] 7 and [5] 7 are inverses of each other. 32. Find the multiplicative inverse of each nonzero element of Z 13. Comment: If ab 1 (mod n), then [a] n and [b] n are inverses, as are [ a] n and [ b] n. If ab 1 (mod n), then [a] n and [ b] n are inverses, as are [ a] n and [b] n. It is useful to list the integers with m with m ±1 (mod n), and look at the various ways to fact them. Solution: Note that 14, 27, and 40 are congruent to 1, while 12, 25, and 39 are congruent to 1. Facting 14, we see that [2] 13 and [7] 13 are inverses. Facting 12, we see that [3] 13 and [ 4] 13 are inverses, as are the pairs [4] 13 and [ 3] 13, and [6] 13 and [ 2] 13. Facting 40, we see that [5] 13 and [8] 13 are inverses. Here is the list of inverses: [2] 1 13 = [7] 13; [3] 1 13 = [9] 13; [4] 1 13 = [10] 13; [5] 1 13 = [8] 13; [6] 1 13 = [11] 13. Since [12] 1 13 = [ 1] 1 13 = [ 1] 13 = [12] 13, this answers the question f all of the nonzero elements of Z 13. 33. Find the multiplicative der of each element of Z 7. Solution: It helps to use Exercise 1.4.10 in the text, which shows that if gcd(a,n) = 1, then the multiplicative der of [a] n is a divis of ϕ(n). In this problem, it follows that the possibilities f the multiplicative der of an element are the diviss of 6: 1, 2, 3 and 6. We have 2 2 = 4 (mod 7), and 2 3 = 8 1 (mod 7), so [2] 7 has multiplicative der 3. We have 3 2 2 (mod 7), 3 3 3 3 2 3 2 1 (mod 7), and 3 6 (3 3 ) 2 ( 1) 2 1 (mod 7), so [3] 7 has multiplicative der 6. Actually, after seeing that [3] 7 does not have multiplicative der 2 3, we can conclude that it has multiplicative der 6, since that is the only possibility left. We have 4 2 2 (mod 7), 4 3 4 4 2 4 2 1 (mod 7), so [4] 7 has multiplicative der 3. We have 5 2 4 (mod 7), 5 3 5 5 2 5 4 1 (mod 7), so [5] 7 has multiplicative der 6. We could have done the calculations with 2, since 5 2 (mod 7). This would have allowed us to use the calculations we had already made in the case of 2. Finally, it is clear that [6] 7 has multiplicative der 2, since [6] 7 = [ 1] 7. 34. Find the multiplicative der of each element of Z 9. Solution: We have ϕ(9) = 6, so [a] 6 9 = [1] 9 f all [a] 9 Z 9, and the possible multiplicative ders are 1, 2, 3 and 6. The elements are [1] 9,[2] 9,[4] 9,[5] 9,[7] 9,[8] 9.

1.4 J.A.Beachy 2 We have 2 2 = 4, 2 3 = 8, 2 4 = 2 8 7 (mod 9), 2 5 2 7 5 (mod 9), and 2 6 1 (mod 9). This shows that [2] 9 has multiplicative der 6, and also shows that Z 9 is cyclic. We can use this infmation to shten our calculations f the other elements, by expressing them as the various powers of [2] 9. Since [4] 9 = [2] 2 9, it is easy to see that [4]3 9 = [1] 9, while [4] 2 9 [1] 9, so [4] 9 has multiplicative der 3. The element [8] 9 = [2] 3 9 must have der 2. This also obviously follows from the fact that [8] 9 = [ 1] 9. We have [7] 9 = [2] 4 9, so [7]3 9 = ([2]4 9 )3 = ([2] 6 9 )2 = [1] 9, and it then follows that [7] 9 has multiplicative der 3. The smallest positive power of [5] 9 = [2] 5 9 that will give us an exponent divisible by 6 is 30, so [5] 6 9 = ([2]5 9 )6 = ([2] 6 9 )5 = [1] 5 9 = [1] 9 and no smaller exponent gives [1] 9. We conclude that [5] 9 has multiplicative der 6. 35. Find [91] 1 501, if possible (in Z 501 ). Solution: We need to use the Euclidean algithm. [ ] [ ] [ ] [ 1 0 501 1 5 46 1 5 46 0 1 91 0 1 91 1 6 45 Thus 501 2+91( 11) = 1, so 91( 11) 1 (mod 501). Answer: [91] 1 501 = [ 11] 501 = [490] 501. 36. Find [3379] 1 4061, if possible (in Z 4061 ). Solution: The inverse does not exist. [ ] [ ] [ 1 0 4061 1 1 682 0 1 3379 0 1 3379 1 1 682 4 5 651 At the next step, 31 651, and so gcd(4061,3379) = 31. 2 11 1 1 6 45 ] [ ] 5 6 31 4 5 651 37. In Z 20 : find all units (list the multiplicative inverse of each); find all idempotent elements; find all nilpotent elements. Comment: We know that Z n has ϕ(n) units. They occur in pairs, since gcd(a,n) = 1 if and only if gcd(n a,n) = 1. This helps in checking your list. Solution: TheunitsofZ 20 aretheequivalenceclasses representedby1, 3, 7, 9, 11, 13, 17, and 19. We have [3] 1 20 = [7] 20, [9] 1 20 = [9] 20, and [11] 1 20 = [11] 20 by trial and err, and then [13] 1 20 = [ 7] 1 20 = [ 3] 20 = [17] 20, and [19] 1 20 = [ 1] 1 20 = [ 1] 20 = [19] 20. The idempotent elements of Z 20 can be found by using trial and err. They are [0] 20, [1] 20, [5] 20, and [16] 20. If you want a me systematic approach, you can use the hint in Exercise 1.4.15 of the text: if n = bc, with gcd(b,c) = 1, then any solution to the congruences x 1 (mod b) and x 0 (mod c) will be idempotent modulo n. The nilpotent elements of Z 20 can be found by using trial and err, by using the result stated in Problem 1.4.41. They are [0] 20 and [10] 20. ]

1.4 J.A.Beachy 3 38. Show that Z 17 is cyclic. Comment: Toshow thatz 17 iscyclic, weneedtofindanelement whosemultiplicative der is 16. The solution just uses trial and err. It is known than if p is prime, then Z p is cyclic, but there is no known algithm f actually finding the one element whose powers cover all of Z p. Solution: We begin by trying [2]. We have [2] 2 = [4], [2] 3 = [8], and [2] 4 = [16] = [ 1]. Exercise 1.4.10 of the text shows that the multiplicative der of an element has to be a divis of ϕ(17) = 16, so the next possibility to check is 8. Since [2] 8 = [ 1] 2 = [1], it follows that [2] has multiplicative der 8. We next try [3]. We have [3] 2 = [9], [3] 4 = [81] = [ 4], and [3] 8 = [16] = [ 1]. The only divis of 16 that is left to try is 16 itself, so [3] does in fact have multiplicative der 16, and we are done. 39. Show that Z 35 is not cyclic but that each element has the fm [8]i 35 [ 4]j 35, f some positive integers i, j. Solution: We first compute the powers of [8]: [8] 2 = [ 6], [8] 3 = [8][ 6] = [ 13], and [8] 4 = [ 6] 2 = [1], so the multiplicative der of [8] is 4, and the powers we have listed represent the only possible values of [8] i. We next compute the powers of [ 4]: [ 4] 2 = [16], [ 4] 3 = [ 4][16] = [6], [ 4] 4 = [ 4][6] = [11], [ 4] 5 = [ 4][11] = [ 9], and [ 4] 6 = [ 4][ 9] = [1], so the multiplicative der of [ 4] is 6. There are 24 possible products of the fm [8] i [ 4] j, f 0 i < 4 and 0 j < 6. Are these all different? Suppose that [8] i [ 4] j = [8] m [ 4] n, f some 0 i < 4 and 0 j < 6 and 0 m < 4 and 0 n < 6. Then [8] i m = [ 4] n j, and since the only power of [8] that is equal to a power of [ 4] is [1] (as shown by our computations), this fces i = m and n = j. We conclude that since there are 24 different elements of the fm [8] i [ 4] j, every element in Z 35 must be of this fm. Finally, ([8] i [ 4] j ) 12 = ([8] 4 ) 3i ([ 4] 6 ) 2j = [1], so no element of Z 35 has multiplicative der 24, showing that Z 35 is not cyclic. 40. Solve the equation [x] 2 11 +[x] 11 [6] 11 = [0] 11. Solution: We can fact [x] 2 +[x] [6] = ([x]+[3])([x] [2]). Collary 1.4.6 implies that either [x] + [3] = [0] [x] [2] = [0], and so the only possible solutions are [x] = [ 3] and [x] = [2]. Substituting these values back into the equation shows that they are indeed solutions, so the answer is [x] = [2] [x] = [ 3]. 41. Prove that [a] n is a nilpotent element of Z n if and only if each prime divis of n is a divis of a. Solution: First assume that each prime divis of n is a divis of a. If n = p α 1 1 pα 2 2 pαt t is the prime factization of n, then we must have a = p β 1 1 pβ 2 2 pβt t d, where 0 β j α j f all j. If k is the smallest positive integer such that kβ i α i f all i, then n a k, and so [a] k n = [0] k.

1.4 J.A.Beachy 4 Conversely, if [a] n is nilpotent, with [a] k n = [0], then n a k, so each prime divis of n is a divis of a k. But if a prime p is a divis of a k, then it must be a divis of a, and this completes the proof. 42. Show that if n > 1 is an odd integer, then ϕ(2n) = ϕ(n). Solution: Since n is odd, the prime 2 does not occur in its prime factization. The fmula in Proposition 1.4.8 shows that to compute ϕ(2n) in terms of ϕ(n) we need to add 2 (1 1 2 ), and this does not change the computation. Alternate solution: Since n is odd, the integers n and 2 are relatively prime. Exercise 1.4.29 of the text states that if m,n are relatively prime positive integers, then ϕ(mn) = ϕ(m)ϕ(n). It follows that ϕ(2n) = ϕ(2)ϕ(n) = ϕ(n). ANSWERS AND HINTS 43. Write out multiplication tables f the following sets. (a) Z 9 Answer: This set is cyclic, and each element can be expressed as a power of 2. Writing out a table in the der [1],[2],[4],[8],[7],[5] of consecutive powers of 2 means that each row is just a shift of the one above it. Other ders are interesting too. 1 2 4 8 7 5 1 1 2 4 8 7 5 2 2 4 8 7 5 1 4 4 8 7 5 1 2 8 8 7 5 1 2 4 7 7 5 1 2 4 8 5 5 1 2 4 8 7 (b) Z 10 Answer: 1 3 9 7 1 1 3 9 7 3 3 9 7 1 9 9 7 1 3 7 7 1 3 9 1 8 2 7 4 5 1 1 8 2 7 4 5 8 8 1 7 2 5 4 2 2 7 4 5 8 1 7 7 2 5 4 1 8 4 4 5 8 1 7 2 5 5 4 1 8 2 7 1 1 3 3 1 1 1 3 3 1 1 1 3 3 3 3 3 1 1 3 3 3 1 1 1 4 7 2 8 5 1 1 4 7 2 8 5 4 4 7 1 8 5 2 7 7 1 4 5 2 8 2 2 8 5 4 7 1 8 8 5 2 7 1 4 5 5 2 8 1 4 7 The first table uses the fact that Z 10 is cyclic, and lists the elements as consecutive powers of 3. The second table shows a different pattern compare this to the pattern in part (c), which differs in a crucial way along the main diagonal. (c) Z 12 Answer: 1 1 5 5 1 1 1 5 5 1 1 1 5 5 5 5 5 1 1 5 5 5 1 1 (d) Z 14 Hint: Problem 47 shows that each element of Z 14 is a power of 3, so a quick way to write out the table is to use the der [1],[3],[9],[13],[11],[5]. Then the table will have

1.4 J.A.Beachy 5 the same pattern as the one in part (a). 44. Find the multiplicative inverses of the given elements (if possible). (a) [12] in Z 15 Answer: There is no inverse, since 12 is not relatively prime to 15. (c) [7] in Z 15 Answer: [7] 1 = [13] 45. Find the multiplicative ders of the following elements. (b) [5] and [7] in Z 17 Answer: [5] and [7] both have multiplicative der 16 46. Find the multiplicative der of each element of the following sets. (b) Z 10 Answer: [3] and [7] = [ 3] have der 4; [9] = [ 1] has der 2; [1] has der 1. 47. Is Z 14 cyclic? Answer: Yes; [3] has multiplicative der 6 = ϕ(14). 48. Is Z 16 cyclic? Answer: No Hint: Check that each element has multiplicative der less than 8. 49. Is Z 18 cyclic? Answer: Yes; [5] has multiplicative der 6 = ϕ(18). 50. Find all idempotent elements in the following sets. (a) Z 14 Hint: Exercise 1.4.15 in the text states that if n = bc, with gcd(b,c) = 1, then any solution to the congruences x 1 (mod b) and x 0 (mod c) will be idempotent modulo n. First take b = 7, c = 2 and then b = 2, c = 7. 52. In Z 24 : find all units (list the multiplicative inverse of each); find all idempotent elements; find all nilpotent elements. Answer: The units of Z 24 are the equivalence classes represented by 1, 5, 7, 11, 13, 17, 19, and 23, and each element is its own inverse. The idempotent elements are [0] 24,[1] 24,[9] 24,[16] 24. The nilpotent elements are [0] 24,[6] 24,[12] 24,[18] 24. 53. Find {n Z + ϕ(n) = 2} and {n Z + ϕ(n) = 4}. Answer: {n Z + ϕ(n) = 2} = {3,4,6} and {n Z + ϕ(n) = 4} = {5,8,10,12}