PMA225 Practice Exam questions and solutions Victor P. Snaith

Similar documents
MATH 145 Algebra, Solutions to Assignment 4

Chapter 1. Number of special form. 1.1 Introduction(Marin Mersenne) 1.2 The perfect number. See the book.

M381 Number Theory 2004 Page 1

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

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

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

Part II. Number Theory. Year

Number Theory and Group Theoryfor Public-Key Cryptography

Congruence of Integers

MATH 310: Homework 7

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

7.2 Applications of Euler s and Fermat s Theorem.

Wilson s Theorem and Fermat s Little Theorem

Number Theory Proof Portfolio

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Iterated Encryption and Wiener s attack on RSA

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

Elementary Number Theory Review. Franz Luef

Mathematics 4: Number Theory Problem Sheet 3. Workshop 26 Oct 2012

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

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

Elementary Number Theory MARUCO. Summer, 2018

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Homework #2 solutions Due: June 15, 2012

Introduction to Number Theory

Basic elements of number theory

A Guide to Arithmetic

Basic elements of number theory

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

Number Tree LCM HCF Divisibility Rules Power cycle Remainder Theorem Remainder of powers a n b n Last and Second last digit Power of Exponents Euler s

THE TRIANGULAR THEOREM OF THE PRIMES : BINARY QUADRATIC FORMS AND PRIMITIVE PYTHAGOREAN TRIPLES

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

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

Number Theory Solutions Packet

Senior Math Circles Cryptography and Number Theory Week 2

Modular Arithmetic Instructor: Marizza Bailey Name:

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

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

Table of Contents. 2013, Pearson Education, Inc.

The number of ways to choose r elements (without replacement) from an n-element set is. = r r!(n r)!.

1 Structure of Finite Fields

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

Integers and Division

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

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

Selected Chapters from Number Theory and Algebra

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

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

3 The fundamentals: Algorithms, the integers, and matrices

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

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

Mathematics for Cryptography

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

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

Math 314 Course Notes: Brief description

Introduction to Information Security

Number Theory. Henry Liu, 6 July 2007

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

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

HOMEWORK 11 MATH 4753

Euler s, Fermat s and Wilson s Theorems

Numbers. Çetin Kaya Koç Winter / 18

Notes on Systems of Linear Congruences

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.

Number Theory and Algebra: A Brief Introduction

A number that can be written as, where p and q are integers and q Number.

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

[Part 2] Asymmetric-Key Encipherment. Chapter 9. Mathematics of Cryptography. Objectives. Contents. Objectives

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

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

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

198 VOLUME 46/47, NUMBER 3

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

Mathematics of Cryptography

NONABELIAN GROUPS WITH PERFECT ORDER SUBSETS

Number Theory Course notes for MA 341, Spring 2018

MTH 346: The Chinese Remainder Theorem

Summary Slides for MATH 342 June 25, 2018

The security of RSA (part 1) The security of RSA (part 1)

Cryptography. Number Theory with AN INTRODUCTION TO. James S. Kraft. Lawrence C. Washington. CRC Press

Perfect Power Riesel Numbers

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,

4 Number Theory and Cryptography

A SURVEY OF PRIMALITY TESTS

Theory of Numbers Problems

The Impossibility of Certain Types of Carmichael Numbers

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Elliptic Curves over Finite Fields

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

ICS141: Discrete Mathematics for Computer Science I

Number Theory Homework.

Applied Cryptography and Computer Security CSE 664 Spring 2018

Public-key Cryptography: Theory and Practice

Know the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x].

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

The Chinese Remainder Theorem

Carmen s Core Concepts (Math 135)

LEGENDRE S THEOREM, LEGRANGE S DESCENT

Chinese Remainder Theorem explained with rotations

Transcription:

PMA225 Practice Exam questions and solutions 2005 Victor P. Snaith November 9, 2005

The duration of the PMA225 exam will be 2 HOURS. The rubric for the PMA225 exam will be: Answer any four questions. You are advised not to answer more than four; if you do, only your best four will be counted. THE FOLLOWING ARE A SELECTION OF TYPICAL PMA225 EXAM QUESTIONS, BEARING IN MIND THAT 2005 IS THE FIRST YEAR OF THE COURSE 1. (i) You publish (n, e) = (205, 9) in the RSA directory and receive the number 19. Decode it. 10 marks (ii) Solve the congruence 20x 2 + x + 4 0 (modulo 205). 7 marks (iii) Find the remainder when 397! is divided by 2005. 8 marks Solution to question 1: (i) 205 = 41 5 in prime factors. To decode we want d such that 9d 1 (modulo LCM(40, 4) so d = 9 will do. Then (modulo 5) 19 9 ( 1) 9 1 4 while (modulo 41) 19 9 361 4 19 ( 8) 4 19 64 2 19 23 2 19 529 19 ( 4) 19 76 6. It suffices to find an integer in the sequence 6, 47, 88, 129,... which is congruence to 4 (modulo 5). So the decoding is 129. (ii) By the Chinese Remainder Theorem we must solve 20x 2 +x+4 x 1 (modulo 5) and 20x 2 + x + 4 0 (modulo 41). Hence x 1 (modulo 5). Also multiplying by 2, 40x 2 + 2x + 8 0 (modulo 41) or equivalently (x 4)(x + 2) x 2 2x 8 0 (modulo 41). Hence x 4 (modulo 41) or x 2 (modulo 41). The simultaneous solutions of this are [86] 205 and [121] 205. (iii) In prime factors 2005 = 401 5. By Wilson s Theorem 400! 1 (modulo 401) so that 397! 398 399 400 1 or 397! ( 3) ( 2) ( 1) 1 so 6 397! 1 (modulo 401). Since 6 67 = 402 we have 397! 67 (modulo 401). Also 397! 0 (modulo 5). Now look for a multiple of 5 in the sequence 67, 468, 869, 1270,... so that 397! 1270 (modulo 2005) by the CRT. 1

2. (i) State the Law of Quadratic Reciprocity. 1 mark (ii) Determine whether the congruence 24x 2 + 7x + 12 0 (modulo 419) has a solution. 12 marks (iii) Let p > 3 be a prime. Show that the congruence x 4 + 7x 2 + 12 0 (modulo p) does not have a solution if and only if p 11 (modulo 12). Find all the solutions in the cases p = 13, 29, 43. 12 marks Solution to question 2: (i) For p, q > 2 distinct primes ( ( ) q p) p (p 1)(q 1) q = ( 1) 4. (ii) 419 is prime. b 2 4ac = 7 2 4 24 12 = 1103. We can solve the quadratic if this is a square (modulo 419). However ( ) ( ) 1103 419 = 154 419 = ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 2 7 11 419 = 2 7 11 419 419 419 = ( 1)( 419 7 )( 419 11 ) = ( 1 7 ) 1 11 = ( 1) = 1. So a solution exists. (iii) (x 2 +3)(x 2 +4) = x 4 +7x 2 +12 0 (modulo p) so the congruence does not have a solution if and only if ( ) ( ) ( ) ( ) ( ) 3 p = 1 = 4 p. Now 3 p = 1 3 p p = ( 1) ( ) (p 1)/2 (p 1)(3 1) p 3 ( 1) 4 =( p 3) = 1 if and only if p 2 (modulo 3). Also ( ) ( ) 4 p = 1 p = 1 if and only if p 3 (modulo 4). The only simultaneous solutions to these congruences are p 11 (modulo 12). For the other values we have: p = 13, x ±6, ±3 (modulo 13), p = 29, x ±5 (modulo 29), p = 43, x ±13 (modulo 43). 2

3. A positive integer n is said to be (a) abundant (b) deficient (c) perfect if the sum of its proper divisors is (a) great than n (b) less than n (c) equal to n, respectively. (i) If p is a positive integer such that 2 p 1 is prime show that 2 p 1 (2 p 1)is perfect. 6 marks (ii) For each of 496, 945, 1155 determine whether it is abundant, deficient or perfect. 9 marks (iii) Show that every multiple of an abundant number is abundant. 4 marks (iv) Show that a power of a prime is deficient. 6 marks Solution to question 3: (i) Using the σ function from 5.2: σ(2 p 1 (2 p 1)) = σ(2 p 1 )σ((2 p 1)) = (1 + 2 +... + 2 p 1 )(1 + 2 p 1) = 2 2 p 1 (2 p 1) so the proper divisors sum to 2 p 1 (2 p 1). (ii) 496 = 2 4 (2 5 1) by (i) is perfect. σ(945) = σ(3 3 5 7) = (1 + 3 + 3 2 + 3 3 ) 6 8 = 2 960 > 2 945 so it is abundant. σ(1155) = σ(3 5 7 11) = 2 1152 < 2 1155 so it is deficient. (iii) Let n be abundant with proper positive divisors n 1,..., n r. So n 1 +... + n r > n. For a positive integer k we have kn 1 +... + kn r > kn but the kn i are some of the proper positive divisors of kn, so the sum of proper positive divisors of kn is strictly larger than kn. (iv) Let p be a prime then the proper positive divisors of p n are 1, p, p 2,..., p n 1 whose sum is (p n 1)/(p 1) < p n so it is deficient. 3

4(i) Find all the primitive Pythagorean triples which include the number 2004. 6 marks (ii) You publish (n, e) = (1147, 11) in the RSA directory and receive the number 21. Decode it. 14 marks (iii) Determine the remainder when 99! is divided by 103. 5 marks Solution to question 4: (i) 2st = 2004 if and only if st = 1002 = 2 3 167 in prime factors. Here are the triples: s t 2st s 2 t 2 s 2 + t 2 1002 1 2004 1004003 1004005 501 2 2004 250997 251005 334 3 2004 111547 27925 167 6 2004 27853 27925 (ii) 1147 = 31 37 so we need d such that 11d 1 (modulo LCM(30, 36)) so 11d 1 (modulo 180). Using the Chinese Remainder Theorem or experimentation yields d = 131 because (11 131) 1 = 1440 = 180 8. To decode we need (modulo 31) 21 131 21 120 21 11 (21 30 ) 4 ( 10) 11 10 100 5 10 7 5 49 2 70 18 2 8 = 112 12 and (modulo 37) 21 131 21 108 21 23 441 11 21 ( 3) 11 21 27 3 189 ( 10) 3 4 100 4 ( 11) 3 4. To solve x 4 (modulo 37) and x 12 (modulo 31) simultaneously use the CRT or search among x = 37k+4 12 for an integer divisible by 31. Either way one finds x 818 (modulo 1147) since 818 = 4+(37 22) = 12+(31 26). (iii) 103 is prime so 102! 1 (modulo 103) by Wilson s theorem. Hence 99! ( 1) ( 2) () 1 (modulo 103). Hence 99! is the solution to 6x 1 (modulo 103). By the Euclidean algorithm for LCM(6, 103) = 1 or experimentation one finds 6 86 = 516 = (5 103) + 1. 4

5(i). State Fermat s Little Theorem. 1 mark 5(ii) What day of the week will it be in 10 100 days from today? 5 mark (iii) Find the remainder when 3 560 is divided by 561. 6 marks (iv) Prove that a 561 a (modulo 561) for all integers a. 6 marks (v) The integer n > 1 is such that a n a (modulo n) for all integers a. Must n be prime? 2 marks (vi) The integer n > 1 is such that a n 1 1 (modulo n) for all positive integers a smaller than n. Prove that n must be prime. 5 marks Solution to question 5: (i) If p is a prime and a is an integer such that GCD(p, a) = 1 then a p 1 1 (modulo p). (ii) 10 6 1 (modulo 7) so 10 100 10 4 3 4 4 (modulo 7) so it is four days after today in the week. (iii) 561 = 3 11 17 in prime factors we may use the CRT. Now 3 560 0 (modulo 3), 3 560 (3 10 ) 56 1 (modulo 11) and 3 560 (3 16 ) 35 1 (modulo 17), Solve these three simultaneous congruences by the CRT algorithm or by experimentation to find that x 375 (modulo 561) is the solution. (iv) The smallest Carmichael number is n = 561 = 3 11 17. Consider a 561 a (modulo 17), which is obvious if 17 a and otherwise we have a 561 = a (a 16 ) 35 a (modulo 17). If a 0 (modulo 3) then a 561 a (a 2 ) 280 a (modulo 3) and if a 0 (modulo 11) then a 561 a (a 10 ) 56 a (modulo 11), as required. (v) No - since 561 of (iv) is a counterexample. (vi) Suppose n is not prime. Then m n for some 1 < m < n. Therefore m n 1 1 (modulo n) and so 0 m n 1 1 (modulo m), which is a contradiction. 5

6(i) For each of the following numbers, find a prime number which divides it: 2 2004 1, 2 2004 + 1 and 2 83 1. 8 marks (ii) Let p > 5 be a prime. Show that the congruence x 4 2x 2 15 0 (modulo p) has no solutions if and only if p 2 or (modulo 15). 9 marks (iii) Solve the congruence of (ii) in the cases p = 29, 31, 37. 8 marks Solution to question 6: (i) 3 (2 2004 1) because (modulo 3) 2 2004 1 ( 1) 2004 1 1 1 0. 17 (2 2004 + 1) because (modulo 17) 2 2004 + 1 (2 4 501 + 1 ( 1) 501 + 1 0. 167 is a prime so, by Euler s criterion, 2 83 ( ) 2 167 1 (modulo 167), since 167 7 (modulo 8) or because 13 2 2 (modulo 167). (ii) x 4 2x 2 15 = (x 2 5)(x 2 +3) so x is a solution of the congruence if and only if x 2 3 (modulo p) or x 2 5 (modulo p). Hence there is no solution if and only if ( ) ( ) ( ) ( ) 3 p = 1 = 5 p. This is equivalent to p 3 = 1 = p 5, by Quadratic Reciprocity and ( ) 1 p = ( 1) (p 1)/2. This happens if and only if p 2 (modulo 3) and p 2 or 3 (modulo 5), which happens if and only if p 2 or (modulo 15). (iii) p = 29 : By (ii) there is no solution to x 2 + 3 0 (modulo 29) but x = ±11 (modulo 29) is a solution to x 2 5 0. p = 31 : By (ii) there are 4 solutions and these are x ±11, ±6 (modulo 31). p = 37 : By (ii) x 2 5 has no solution but x = ±16 (modulo 37) satisfies x 2 3. 6

7.(i) Define a perfect number. 1 mark Calculate 1 + 1 + 1 + 1 and 1 + 1 + 1 + 1 + 1 + 1. Let n be a perfect 1 2 3 6 1 2 4 7 14 28 number. State the value of d n 1 where the sum is over all the positive d divisors of n. 3 marks Deduce that no proper divisor of a perfect number is perfect and no proper multiple of a perfect number is perfect. 5 marks (ii) Two positive integers are said to be amicable numbers if each is the sum of the proper divisors of the other. The prime numbers p, q, r are such that p = (3 2 n ) 1, q = (3 2 n 1 ) 1 and r = (9 2 2n 1 ) 1 for some integer n > 1. Use the result that σ(ab) = σ(a)σ(b) if GCD(a, b) = 1 to prove that σ(2 n pq) = σ(2 n r) = 2 n pq + 2 n r. 10 marks Deduce that 2 n pq and 2 n r are amicable. 4 marks Illustrate with an example 2 marks Solution to question 7: (i) A perfect number is a positive integer equal to the sum of its proper 1 positive divisors. + 1 + 1 + 1 = 2 and 1 + 1 + 1 + 1 + 1 + 1 = 2. If n is 1 2 3 6 1 2 4 7 14 28 perfect d n 1 = 2. d Let n be perfect and m n with 1 < m < n and let r > 1 then d m 1 < d d n 1 = 2 and d d rn 1 > d d n 1 = 2 so m and rn are not perfect. d (ii) σ(2 n pq) = σ(2 n )σ(p)σ(q) = (1 + 2 +... + 2 n ) 3 2 n 3 2 n 1 = (2 n+1 1) 9 2 2n 1 and σ(2 n r) = (2 n+1 1) 9 2 2n 1, as required. Also 2 n pq + 2 n r = 2 n ((3 2 n ) 1)((3 2 n 1 ) 1) + ((9 2 2n 1 ) 1)) = 2 n (2 9 2 2n 1 3 2 n 1 (2 + 1)) = (2 n+1 1) 9 2 2n 1. The sum of the positive proper divisors of 2 n pq is σ(2 n pq) 2 n pq = 2 n r and the sum of the positive proper divisors of 2 n r is σ(2 n r) 2 n r = 2 n pq so 2 n pq and 2 n r are amicable. Putting n = 2, p = 11, q = 5, r = 71 we see that 2 n pq = 220 and 2 n r = 284 are amicable. 7