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

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

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

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

Senior Math Circles Cryptography and Number Theory Week 2

Chapter 3 Basic Number Theory

Homework #2 solutions Due: June 15, 2012

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

Math 109 HW 9 Solutions

Math 261 Spring 2014 Final Exam May 5, 2014

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

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

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

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

Math 4400 First Midterm Examination September 21, 2012 ANSWER KEY. Please indicate your reasoning and show all work on this exam paper.

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

Lecture Notes. Advanced Discrete Structures COT S

4 Powers of an Element; Cyclic Groups

Congruence of Integers

Johns Hopkins Math Tournament 2018 Proof Round: Sequences

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?

Elementary Properties of the Integers

Factoring Algorithms Pollard s p 1 Method. This method discovers a prime factor p of an integer n whenever p 1 has only small prime factors.

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

MTH 346: The Chinese Remainder Theorem

Discrete Mathematics with Applications MATH236

MATH 361: NUMBER THEORY FOURTH LECTURE

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

MATH 3240Q Introduction to Number Theory Homework 4

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?

Name: Mathematics 1C03

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

CHAPTER 3. Congruences. Congruence: definitions and properties

Integers and Division

4 Number Theory and Cryptography

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

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Wilson s Theorem and Fermat s Little Theorem

3 The fundamentals: Algorithms, the integers, and matrices

Winter Camp 2009 Number Theory Tips and Tricks

Chapter 5. Number Theory. 5.1 Base b representations

Exam 2 Solutions. In class questions

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

MATH 145 Algebra, Solutions to Assignment 4

CISC-102 Fall 2017 Week 6

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

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

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

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

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

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

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

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

Number Theory Proof Portfolio

The Euclidean Algorithm and Multiplicative Inverses

Basic elements of number theory

Basic elements of number theory

Introduction to Cryptology. Lecture 19

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

Name: Solutions Final Exam

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?

MULTIPLYING TRINOMIALS

3.2 Solving linear congruences. v3

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

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

Writing Assignment 2 Student Sample Questions

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

MATH 420 FINAL EXAM J. Beachy, 5/7/97

Name: Solutions Final Exam

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

NOTES ON SIMPLE NUMBER THEORY

Ma/CS 6a Class 2: Congruences

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

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

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

Number Theory. Final Exam from Spring Solutions

1. multiplication is commutative and associative;

Primality Proofs. Geoffrey Exoo Department of Mathematics and Computer Science Indiana State University Terre Haute, IN

Simple Math: Cryptography

Signature: (In Ink) UNIVERSITY OF MANITOBA TEST 1 SOLUTIONS COURSE: MATH 2170 DATE & TIME: February 11, 2019, 16:30 17:15

The Chinese Remainder Theorem

CSE 20 DISCRETE MATH. Winter

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

1 Overview and revision

Coding Theory ( Mathematical Background I)

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

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

EXAMPLES OF MORDELL S EQUATION

Fall 2017 Test II review problems

3+4=2 5+6=3 7 4=4. a + b =(a + b) mod m

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

Part V. Chapter 19. Congruence of integers

then the hard copy will not be correct whenever your instructor modifies the assignments.

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

(a) 14 and 42 (b) 33 and 18 (c) 45 and 108 (d) 24 and 2039, given that 2039 is a prime number

Number Theory and Graph Theory. Prime numbers and congruences.

Math Lecture 18 Notes

Simultaneous Linear, and Non-linear Congruences

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Transcription:

Name: Number Theory Math 420 Silverman Exam #1 February 27, 2018 INSTRUCTIONS Read Carefully Time: 50 minutes There are 5 problems. Write your name neatly at the top of this page. Write your final answer in the answer box, if one is provided. Show all your work. Partial credit will be given for substantial progress towards the solution. No credit will be given for answers with no explanation. Problem Value Points 1 10 2 10 3 10 4 10 5 10 Total 50

Math 420 Solutions for Exam #1 Page 1 Problem 1. (10 points) For this problem, you can use the fact that (a) Find a number b satisfying 48611 is a prime number. b 11 48613 (mod 48611) and 0 b < 48611. (b) Find a number x between 0 and 48611 that is a solution to the congruence x 48611 37 (mod 48611). b = x = (c) Find a number z between 0 and 48611 that is a solution to the congruence z 48609 2 (mod 48611). z = Solution. For all three parts we use Fermat s Little Theorem, which says that if p a, then a p 1 1 (mod p). For the prime that we re using, it says a 48610 1 (mod 48611). (a) Here the exponent is p + 2, so we compute 11 48613 = 11 48610 11 3 1 48610 11 3 11 3 (mod 48611). It remains to compute 11 3, which can be done in two steps using paper and pen: 11 2 = 121, and then 11 3 = 11 121 = 1331. (b) For this part, the exponent is p, so x 48611 x 48610 x x (mod 48611) for every x that is not a multiple of p. We want this to be congruent to 37, so we must take x = 37. (c) For this part, the exponent is p 2. So if we multiply both sides by z, we ll get an exponent of p 1 and can use Fermat s theorem. Thus z 48609 2 (mod 48611) congruence to be solved, z 48610 2z (mod 48611) multiply both sides by z, 1 2z (mod 48611) use Fermat s little theorem. So we want 48611 to divide 2z 1, so we can take z = 48611+1 2 = 24306.

Math 420 Solutions for Exam #1 Page 2 Problem 2. (10 points) Here is the Euclidean algorithm computation showing that gcd(373, 231) = 1. 373 = 1 231 + 142 231 = 1 142 + 89 142 = 1 89 + 53 89 = 1 53 + 36 53 = 1 36 + 17 36 = 2 17 + 2 17 = 8 2 + 1 8 = 8 1 + 0 Use this computation to find integers x and y that satisfy the equation 373x + 231y = 1. Be sure to explain your reasoning. x = y = Solution. Let a = 373 and b = 231. We have a = 1 b + 142 142 = a b, b = 1 142 + 89 b = a b + 89 89 = a + 2b, 142 = 1 89 + 53 a b = a + 2b + 53 53 = 2a 3b 89 = 1 53 + 36 a + 2b = 2a 3b + 36 36 = 3a + 5b 53 = 1 36 + 17 2a 3b = 3a + 5b + 17 17 = 5a 8b 36 = 2 17 + 2 3a + 5b = 2(5a 8b) + 2 2 = 13a + 21b 17 = 8 2 + 1 5a 8b = 8( 13a + 21b) + 1 1 = 109a 176b So x = 109 and y = 176 are solutions to 373x + 231y = 1. Problem 3. (10 points) For this problem, p is a large prime number, say p > 100. Also, when we talk about distinct solutions to a congruence, we mean that two solutions a and b are considered to be the same if they are congruent modulo p. (a) Give an upper bound for the maximum possible number of distinct solutions to the congruence x 23 3x 19 + 2x 0 (mod p)? Also give a lower bound for the minimum number of distinct solutions. Justify both of your answers. There are at most solutions and at least solutions.

Math 420 Solutions for Exam #1 Page 3 (b) Exactly how many distinct solutions are there to the congruence x p 1 1 0 (mod p). Be sure to justify your answer. There are solutions. Solution. If f(x) is a polynomial of degree d having integer coefficients, then we proved in class: ( ) f(x) 0 (mod p) has at most d solutions. We use this fact several times. (a) Using ( ), we know that there are at most 23 solutions. On the other hand, it is clear that x = 0 is a solution, so there is at least 1 solution. I ll give full credit for that answer, but you might notice that x = 1 and x = 1 are also solutions, so in fact, since p 3, there are at least 3 solutions. For those who are interested, I did a computer search and found that for p = 328271, there are 15 solutions, and that s the most for any prime smaller than one million. Using more advanced methods from number theory, one can prove that there exist primes for which the congruence has 23 solutions. As for the minimum, there are lots of primes for which the congruence has exactly 3 solutions, including p = 107 and p = 113. (b) The given congruence has at most p 1 solutions from ( ). But Fermat s Little Theorem tells us that every integer 1, 2, 3,..., p 1 is a solution, so there are at least p 1 solutions. Hence there are exactly p 1 solutions. Problem 4. (10 points) Fix an integer k 2. For this problem, we live in K-World, where the only numbers that exist are multiples of k. In other words, the only numbers that exist are the numbers in the set K = {..., 3k, 2k, k, 0, k, 2k, 3k,...}. As usual, if a and b are in K, then we say: b K-divides a if there is some c K so that a = bc. a is a K-prime if a has no K-divisors.

Math 420 Solutions for Exam #1 Page 4 For this problem, be sure to provide justification for your answers. If you don t see how to do the problem in general, try doing it for k = 7 and you will receive partial credit. (a) What is the smallest positive element of K that is a K-prime? Smallest Positive K-Prime = (b) What is the smallest positive element of K that is not a K-prime? Smallest Positive Non-K-Prime = (c) For this part, you may assume that k 7. Write down a positive K-number that can be factored as a product of K-primes in two truly different ways, and give the two factorizations. Solution. (a) The number k is the smallest positive number in K, and I claim that k is a K-prime. To see this, suppose that we try to write k = bc with b and c in K. Then b and c are multiples of k, so bc k 2, so bc cannot equal k. Hence k is the smallest positive K-prime. (b) Next suppose that a > 0 and the a is not a K-prime. This means that a = bc, where b, c K, so b and c are multiples of k, say b = kd and c = ke. Then a = bc = k 2 de, so certainly a k 2. On the other hand, k 2 is not a K-prime, since k 2 = k k is a product of two numbers in K. Hence k 2 is the smallest non-prime in K-World. (c) The numbers k, 2k, 3k, and 6k are K-primes, since the smallest K- non-prime is k 2, and for this part we have been told that k 7, so 6k is smaller than the smallest K-non-prime. Then 6k 2 has two different factorizations into K-primes, 6k 2 = (2k) (3k) = k (6k). Problem 5. (10 points) Suppose that gcd(a, b) = 1, and also suppose that a divides bc. Prove that a divides c. Solution. From class we know that we can find integers x and y that satisfy ax + by = 1, since gcd(a, b) = 1. Multiply both sides by c, we get acx + bcy = c. We are given that a bc, which means that bc = ad for some integer d. Substituting ad for bc gives acx + ady = c.

Math 420 Solutions for Exam #1 Page 5 Thus c = a(cx + dy), so a c. An alternative way to do this problem is to use unique factorization. Thus factor a, b, c into a product of primes. The assumption that gcd(a, b) = 1 means that a and b have no prime factors in common, while the assumption that a bc implies that every prime power dividing a appears in the factorization of bc. Since none of those primes can appear in b, they must all appear in c.