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

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

NOTES ON SIMPLE NUMBER THEORY

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

Applied Cryptography and Computer Security CSE 664 Spring 2017

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

4 Powers of an Element; Cyclic Groups

Wilson s Theorem and Fermat s Little Theorem

Chapter 3 Basic 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?

Math 109 HW 9 Solutions

Number Theory Proof Portfolio

The Euclidean Algorithm and Multiplicative Inverses

A Readable Introduction to Real Mathematics

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

7.2 Applications of Euler s and Fermat s Theorem.

Chuck Garner, Ph.D. May 25, 2009 / Georgia ARML Practice

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

Part V. Chapter 19. Congruence of integers

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?

Theory of RSA. Hiroshi Toyoizumi 1. December 8,

Name: Mathematics 1C03

CSE 20 DISCRETE MATH. Winter

Rings of Residues. S. F. Ellermeyer. September 18, ; [1] m

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

Objective Type Questions

Discrete Mathematics with Applications MATH236

Mathematics of Cryptography Part I

3.2 Solving linear congruences. v3

M381 Number Theory 2004 Page 1

Cool Results on Primes

Chapter 1 A Survey of Divisibility 14

Lecture Notes. Advanced Discrete Structures COT S

I Foundations Of Divisibility And Congruence 1

MTH 346: The Chinese Remainder Theorem

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

Definition For a set F, a polynomial over F with variable x is of the form

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

5: The Integers (An introduction to Number Theory)

Number Theory Homework.

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

3 The fundamentals: Algorithms, the integers, and matrices

Finite Fields. Mike Reiter

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

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

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,

MATH 310: Homework 7

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

ELEMENTS OF NUMBER THEORY

Lecture 4: Number theory

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

Lecture 7: Polynomial rings

CHAPTER 3. Congruences. Congruence: definitions and properties

a = mq + r where 0 r m 1.

Chapter 4 Finite Fields

MATH 145 Algebra, Solutions to Assignment 4

ASSIGNMENT Use mathematical induction to show that the sum of the cubes of three consecutive non-negative integers is divisible by 9.

CISC-102 Fall 2017 Week 6

Practice Number Theory Problems

Numbers. Çetin Kaya Koç Winter / 18

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

ECE596C: Handout #11

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

The Chinese Remainder Theorem

. In particular if a b then N(

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

4 Number Theory and Cryptography

Mathematical Foundations of Cryptography

Notes on Systems of Linear Congruences

Elementary Number Theory Review. Franz Luef

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

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

Basic elements of number theory

Basic elements of number theory

CPSC 467b: Cryptography and Computer Security

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

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

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

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

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

Introduction to Cryptography CS 355 Lecture 3

Number Theory Notes Spring 2011

NUMBER THEORY. Anwitaman DATTA SCSE, NTU Singapore CX4024. CRYPTOGRAPHY & NETWORK SECURITY 2018, Anwitaman DATTA

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

Part IA Numbers and Sets

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

Math 430 Exam 1, Fall 2006

Ma/CS 6a Class 2: Congruences

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

Number Theory. Modular Arithmetic

Theory of Numbers Problems

MTH 310, Section 001 Abstract Algebra I and Number Theory. Sample Midterm 1

PMA225 Practice Exam questions and solutions Victor P. Snaith

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

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

Ch 4.2 Divisibility Properties

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

MATH 3240Q Introduction to Number Theory Homework 4

MATH FINAL EXAM REVIEW HINTS

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

7. Prime Numbers Part VI of PJE

Transcription:

PAGE: 1 of 7 I understand that cheating is a serious offence: Signature: (In Ink)

PAGE: 2 of 7 1. Let a, b, m, be integers, m > 1. [1] (a) Define a b. Solution: a b iff for some d, ad = b. [1] (b) Define a b (mod m). Solution: a b (mod m) iff m (b a). [4] (c) Complete each of the following equations (no explanation required): i. (a, 0) = ii. (a, 1) = iii. [a, 0] = iv. [a, 1] = Solution: i. (a, 0) = a ii. (a, 1) = 1 iii. [a, 0] = 0 iv. [a, 1] = a

PAGE: 3 of 7 2. Let a, b, m, be integers, m > 1. [3] (a) Prove that if (a, m) = 1 and (b, m) = 1 then (ab, m) = 1. Note: Prove this using properties of the gcd and of divisibility, not properties of prime numbers. Solution: There are x and y such that ax + my = 1, and there are u and v so that bu + mv = 1. So ax = 1 my and bu = 1 mv. Therefore ab(xu) = (1 my)(1 mv) = 1 m(x + y mxy), so (ab, m) = 1. Solution: Note: A solution by checking common prime divisors, contrary to the instructions, was worth at most 1. [This result was one of the tools that we used to prove the properties of prime numbers.] Suppose 1 < d = (ab, m). Then there is a prime p, p d. Thus p ab and p m. Since p is prime, p a or p b (and p m). But (a, m) = 1 and (b, m) = 1,, a contradiction. [3] (b) Prove that if c ab and (b, c) = 1, then c a. Solution: (ab, ac) = a(b, c) = a. But c ab and c ac, so c a. Solution: Since (b, c) = 1 there are integers x and y such that bx + cy = 1. Thus abx + acy = a. By assumption c ab, and certainly c ac. Therefore c a.

PAGE: 4 of 7 [8] 3. Using the Euclidean algorithm, and the specific algorithm taught in class and in the textbook, determine d = (10680, 4628) and two integers x and y so that d = 10680x + 4628y. Solution: We learned the following formulas: r 1 = a, r 0 = b, q i+1 is determined by division: r i 1 = r i q i+1 + r i+1, 0 r i+1 < r i, so we get rules as follows (with x 1 = 1, y 1 = 0, x 0 = 0, and y 0 = 1): Therefore in this case: r k = r k 2 q k r k 1 x k = x k 2 q k x k 1 y k = y k 2 q k y k 1 q i+1 r i x i y i 10680 1 0 2 4628 0 1 3 1424 1 2 4 356 3 7 0 Therefore d = 356 = 3 10680 + 7 4628. Note: A long form solution contrary to the instructions is worth a maximum of 4 points.

PAGE: 5 of 7 [2] 4. (a) Define p is a prime number. Solution: An integer p is a prime number if p > 1 and there is no divisor d of p with 1 < d < p. or An integer p > 1 is a prime number if p has exactly two positive divisors, namely itself and 1. Note: It is an essential part of this definition that p be greater than 1, and that reference is made to positive divisors. Otherwise, we would have to consider 1 and -1 to be primes, and we would have to contend with the four divisors of p: 1, 1, p, p. [4] (b) Prove that there are infinitely many prime numbers. Solution: Suppose that p 1,..., p n is a list of all the prime numbers. Let N = p 1 p n + 1. N has a prime divisor p. The remainder on dividing N by any one of p 1,..., p n is 1, so p is not one of p 1,..., p n. Therefore p 1,..., p n was not a list of all the prime numbers. Alternatively, suppose P is the largest prime number and let N = P! + 1. Note: It is not enough to say that N is not divisible by any of the p i ; you need to say why.

PAGE: 6 of 7 [2] 5. (a) Define Euler s function φ(m). Solution: φ(m) is the number of elements in a reduced residue system modulo m. or φ(m) is the number of positive integers less than or equal to m and relatively prime to m,. [2] (b) State Euler s Theorem. Solution: If (a, m) = 1 then a φ(m) 1 (mod m). [2] (c) Give a reduced residue system modulo 10 consisting of multiples of 3. Solution: The usual reduced residue system modulo 10 is 1, 3, 7, 9. Adding multiples of 10 to any item in the list does not change the fact that this is a reduced residue systemt modulo 10. So we get 21, 3, 27, 9 as one possible answer amongst many.

PAGE: 7 of 7 [4] 6. Find the least positive residue of 50! modulo 53. Solution: By Wilson s Theorem, 52! 1 (mod 53) since 53 is a prime. So: 1 52! 50!(51)(52) 50!( 2)( 1) 50!(2) (mod 53). But clearly 2 27 = 54 1 (mod 53), so: ( 1)27 50!(2)(27) 50! (mod 53). Therefore 50! 27 26 (mod 53)