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

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

Quadratic Congruences, the Quadratic Formula, and Euler s Criterion

ECEN 5022 Cryptography

Chapter 4 Finite Fields

7.2 Applications of Euler s and Fermat s Theorem.

3 The fundamentals: Algorithms, the integers, and matrices

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

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

Simultaneous Linear, and Non-linear Congruences

Math 109 HW 9 Solutions

3.2 Solving linear congruences. v3

MATH 145 Algebra, Solutions to Assignment 4

Name: Solutions Final Exam

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

Mathematics for Cryptography

Quasi-cyclic codes. Jay A. Wood. Algebra for Secure and Reliable Communications Modeling Morelia, Michoacán, Mexico October 12, 2012

Section 8.3 Partial Fraction Decomposition

Modern Algebra I. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

MODEL ANSWERS TO HWK #10

Introduction to Information Security

Course 2316 Sample Paper 1

4 Number Theory and Cryptography

Objective Type Questions

1. Group Theory Permutations.

May 6, Be sure to write your name on your bluebook. Use a separate page (or pages) for each problem. Show all of your work.

Solutions to Practice Final

Mathematical Foundations of Cryptography

Finite Fields. Mike Reiter

Finite Fields. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Discrete Mathematics with Applications MATH236

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

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

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

Algebraic Structures Exam File Fall 2013 Exam #1

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

7. Prime Numbers Part VI of PJE

Computations/Applications

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

Lecture 7: Polynomial rings

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

MATH 310: Homework 7

Quizzes for Math 401

Math 120 HW 9 Solutions

CHAPTER 3. Congruences. Congruence: definitions and properties

1 Overview and revision

Public-key Cryptography: Theory and Practice

5 Group theory. 5.1 Binary operations

Solutions to Homework for M351 Algebra I

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

MTH 346: The Chinese Remainder Theorem

Name: Solutions Final Exam

Number Theory Alex X. Liu & Haipeng Dai

TC10 / 3. Finite fields S. Xambó

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

2301 Assignment 1 Due Friday 19th March, 2 pm

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

Elementary Number Theory Review. Franz Luef

Basic Definitions: Group, subgroup, order of a group, order of an element, Abelian, center, centralizer, identity, inverse, closed.

Applied Cryptography and Computer Security CSE 664 Spring 2017

Eighth Homework Solutions

Outline. MSRI-UP 2009 Coding Theory Seminar, Week 2. The definition. Link to polynomials

The Chinese Remainder Theorem

MATH 361: NUMBER THEORY TENTH LECTURE

Total 100

Ma/CS 6a Class 19: Group Isomorphisms

The Chinese Remainder Theorem

Applied Cryptography and Computer Security CSE 664 Spring 2018

Number Theory. Modular Arithmetic

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

Coding Theory ( Mathematical Background I)

Congruences and Residue Class Rings

Dependencies in discrete tomography. Rob Tijdeman, Milan, Italy, 20 April

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

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

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

Homework 10 M 373K by Mark Lindberg (mal4549)

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

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

Solving the general quadratic congruence. y 2 Δ (mod p),

Mathematical Foundations of Public-Key Cryptography

2a 2 4ac), provided there is an element r in our

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?

Algebraic structures I

Polynomials. Chapter 4

Exercises MAT2200 spring 2014 Ark 5 Rings and fields and factorization of polynomials

D-MATH Algebra I HS 2013 Prof. Brent Doran. Solution 3. Modular arithmetic, quotients, product groups

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

MATH 361: NUMBER THEORY FOURTH LECTURE

The Chinese Remainder Theorem

3.4. ZEROS OF POLYNOMIAL FUNCTIONS

Math 370 Homework 2, Fall 2009

MATH 3240Q Introduction to Number Theory Homework 4

Math 261 Exercise sheet 5

Lecture 6: Deterministic Primality Testing

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

CHAPTER 1 REAL NUMBERS KEY POINTS

Galois fields/1. (M3) There is an element 1 (not equal to 0) such that a 1 = a for all a.

Example: This theorem is the easiest way to test an ideal (or an element) is prime. Z[x] (x)

Basic elements of number theory

Transcription:

Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply both sides be 2 1 = 2) x 2 mod 3 We also have x 2 mod 7. Thus, obviously x 2 mod 21 is a solution for the first two equations. We are now reduced to x 2 mod 21 x 7 mod 8 We need to write 1 = gcd(21, 8) as linear combination of 21 and 8. Apply the Euclid algorithm and get Going in reverse, we get 1 = 3 2 21 = 2 8 + 5 8 = 5 + 3 5 = 3 + 2 3 = 2 + 1 = 3 (5 3) = 2 3 5 = 2 (8 5) 5 = 2 8 3 5 = 2 8 3(21 2 8) = 8 8 3 21

Indeed, 1 = 8 8 3 21(= 64 63). Thus, the solution to the equation is x = 2 8 8 7 3 21 mod 168(= 8 21) Get x = 313 = 23 mod 168. (indeed 23 2 mod 21, 23 7 mod 8). 2. Can we write 12 as a linear combination of 24 and 114. If yes, find a and b such that 12 = 24a + 114b. Answer: A necessary and sufficient condition to write x = a n + b m is gcd(n, m) x. Here, gcd(24, 114) = 6, and 6 12. Thus, we can write 12 as a linear combination. By Euclid, or just by inspection, we get Multiply this by 2 and get 6 = 5 24 114 12 = 10 24 2 114 3. Compute 6 76 mod 13 By Euler, we know 6 12 1 mod 13. Thus 6 76 = 6 72+4 = 6 4 mod 13. Then 6 2 = 36 = 10 mod 13. Then 6 4 = (6 2 ) 2 = 100 = 9 mod 13. Suppose a 4 mod 10. What are the possible last 2 digits of a n. We have a 0 mod 2 (i.e. a is even). Thus a n 0 mod 4 for n 2. On the other hand a 4 mod 5. This gives a can be 5k + 4 mod 24, i.e. 4, 9, 14, 19, or 24. a {4, 9, 14, 19, 24} mod 25 For concreteness, let s take n = 102. We know a n 0 mod 4, we need to compute a 102 mod 25. Since, we know by Euler a φ(25) = a 20 = 1. We get a 102 = a 2 {4 2, 9 2, 14 2, 19 2, 24 2 } mod 25 which gives a 102 = {16, 6, 21, 11, 1} mod 25 2

And a 102 = 0 mod 4 Now we need to apply the Chinese reminder theorem. Note first 1 = 25 6 4 So, the answer is if a 102 = 16, then a 102 = 0 25 16 6 4 = 16 mod 100 Similarly, a 102 = 6 mod 25 gives a 102 = 6 6 4 = 56 mod 100. The other 3 cases are similar. In conclusion, starting with a 4 mod 10, we get that the last 2 digits of a 102 are: 16, 56, 96, 36, 76 (depending on a mod 25). 4. We define the quaternion group Q to be the group with 8 elements {±1, ±i, ±j, ±k} such that i 2 = j 2 = k 2 = 1, and ij = k, jk = i, and ki = j. Show that Q is not isomorphic to Z 8 Z 4 Z 2 Σ 4 D(4) Q is not abelian, while Z 8 and Z 4 Z 2 are abelian. Thus, they cannot be isomorphic. Q has order 8, while Σ 4 has order 24, again non-isomorphic. Finally, to distinguish Q and D(4) we need to count the elements of order 4: there are 6 such elements in Q (±i, ±j, ±k), while there are only 2 in D(4) (ρ and ρ 3, where ρ is a rotation of order 4). 5. Give an example of a field with finitely many elements: Z p (p prime) two different examples of integral domains, which are not fields: Z, Z 2 [X]. a ring (commutative and with unit) which is not an integral domain: Z n a ring which doesn t have a unit: 2Z 3

a ring which is not commutative: M n,n (R) (n n matrices, with real coefficients) 6. Find the decomposition into irreducible factors for i) x 3 3x 2 + 3x 2 over Z 7 Let f = x 3 3x 2 + 3x 2. We compute f(0) = 2, f(1) = 1, f(2) = 8 12 + 6 2 = 0, f(3) = 27 27 + 9 2 = 7 = 0, f(4) = 64 48 + 12 2 = 26, f(5) = 125 75 + 15 2 = 63 = 0. Thus, we get 3 roots, 2,3, 5. We conclude f = (x 2)(x 3)(x 5) ii) x 4 x 2 6 over R x 4 x 2 6 = (x 2 3)(x 2 + 2) = (x 3)(x + 3)(x 2 + 2) iii) same as (ii), but over C x 4 x 2 6 = (x 3)(x+ 3)(x 2 +2) = (x 3)(x+ 3)(x+i 2)(x i 2) 7. Find the gcd and lcm of the following polynomials x 4 +x+1 and x 3 +x+1 over Z 3. Use both methods: factorization and Euclid s Algorithm. Euclid Algorithm: (Step 1) divide x 4 + x + 1 by x 3 + x + 1. We get x 4 + x + 1 = x (x 3 + x + 1) + 2x 2 + 1 (Step 2) divide (x 3 + x + 1) by the reminder 2x 2 + 1 x 3 + x + 1 = 2x (2x 2 + 1) (x 1) (Step 3) Repeat: divide 2x 2 + 1 by x 1. We get (2x 2 + 1) = 2(x 1)(x + 1) thus remainder 0. Euclid tells us that the last non-zero remainder (i.e. (x 1) is the gcd). 4

In general, we have gcd(f, g) lcm(f, g) = f g Thus lcm = (x4 + x + 1)(x 3 + x + 1) x 1 = (x 4 + x + 1)(x 2 + x + 2) 8. Find all irreducible cubic polynomials over Z 2. List all polynomials of degree 3 over Z 2, then eliminate those that have 0 or 1 as root. Note that 0 is a root iff the coefficient of the constant is 0, and 1 is a root iff the sum of the coefficients is even. Thus, we get two possibilities: x 3 +x 2 +1 and x 3 +x+1 (the coefficient of x 3 and of the constant have to be 1, and then we need an odd number of non-zero coefficients). 9. Let f = x 2 + x + 2 over Z 3 i) Show that f is irreducible. f(0) = 2, f(1) = 4 = 1, f(2) = 2. Thus, degree 2 and no root; it implies irreducible. ii) Write down the 9 representatives for the congruence classes mod f. Just the polynomials of degree less than 1. Thus, answer: x, x+1, x + 2, 2x, 2x + 1, 2x + 2, 0, 1, 2. iii) Compute (x + 1) 3 mod f. We know x 2 + x + 2 = 0 (because we work modulo x 2 + x + 2). Thus x 2 = 2x + 1 Also note x 3 = x x 2 = 2x 2 + x = 2(2x + 1) + x = 2x + 2 Back to the question (x + 1) 3 = x 3 + 3x 2 + 3x + 1 = x 3 + 1 = 2x + 3 = 2x 5

iv) Find the inverse of [x + 1] f. We look for ax + b such that Expanding we get Use x 2 = 2x + 1 and get (x + 1)(ax + b) = 1 ax 2 + (a + b)x + b = 1 1 = ax 2 + (a + b)x + b = 2ax + a + (a + b)x + b = bx + (a + b) giving b = 0, a + b = 1 Thus, b = 0, a = 1. Thus the inverse of x + 1 is just x. Let s check: x(x + 1) = x 2 + x = 2x + 1 + x = 3x + 1 = 1 10. Give example of a field with 9 elements. In general, the answer to such a question (a field with p n elements, here p = 3, n = 2) is to say polynomials over Z p modulo an irreducible polynomial of degree n. In this case, you are given a degree 2 polynomial over Z 3 in the example above... (f = x 2 + x + 2). In general, you have to find such an irreducible polynomial. Typically, you can find irreducible polynomials of type x n + a (exception over Z 2 ). 6