MTH 382 Number Theory Spring 2003 Practice Problems for the Final

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

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

Homework until Test #2

The Euclidean Algorithm

Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II

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

8 Primes and Modular Arithmetic

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

z 0 and y even had the form

Section 4.2: The Division Algorithm and Greatest Common Divisors

Math 319 Problem Set #3 Solution 21 February 2002

Applications of Fermat s Little Theorem and Congruences

SOLUTIONS FOR PROBLEM SET 2

GREATEST COMMON DIVISOR

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

JUST THE MATHS UNIT NUMBER 1.8. ALGEBRA 8 (Polynomials) A.J.Hobson

8 Divisibility and prime numbers

Lecture 13 - Basic Number Theory.

Math 453: Elementary Number Theory Definitions and Theorems

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

Cryptography and Network Security Number Theory

Overview of Number Theory Basics. Divisibility

Computing exponents modulo a number: Repeated squaring

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

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

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

MATH 13150: Freshman Seminar Unit 10

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

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

An Introduction to the RSA Encryption Method

63. Graph y 1 2 x and y 2 THE FACTOR THEOREM. The Factor Theorem. Consider the polynomial function. P(x) x 2 2x 15.

Continued Fractions and the Euclidean Algorithm

SUM OF TWO SQUARES JAHNAVI BHASKAR

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

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

Number Theory and Cryptography using PARI/GP

PROBLEM SET 6: POLYNOMIALS

s = s = s =

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

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

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

An Introductory Course in Elementary Number Theory. Wissam Raji

Computer and Network Security

Primality - Factorization

Factoring Algorithms

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

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Cryptography and Network Security Chapter 8

Lectures on Number Theory. Lars-Åke Lindahl

Today s Topics. Primes & Greatest Common Divisors

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

Zeros of Polynomial Functions

Handout NUMBER THEORY

Grade 7/8 Math Circles Fall 2012 Factors and Primes

Basic Algorithms In Computer Algebra

V Quantitative Reasoning: Computers, Number Theory and Cryptography

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

Quotient Rings and Field Extensions

Introduction to Modern Algebra

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

CS 103X: Discrete Structures Homework Assignment 3 Solutions

(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.


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

Continued Fractions. Darren C. Collins

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

SOLVING POLYNOMIAL EQUATIONS

9. POLYNOMIALS. Example 1: The expression a(x) = x 3 4x 2 + 7x 11 is a polynomial in x. The coefficients of a(x) are the numbers 1, 4, 7, 11.

Groups in Cryptography

7. Some irreducible polynomials

Factoring Polynomials

Math Workshop October 2010 Fractions and Repeating Decimals

Number Theory and the RSA Public Key Cryptosystem

Settling a Question about Pythagorean Triples

RSA and Primality Testing

Test1. Due Friday, March 13, 2015.

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

Factorization Algorithms for Polynomials over Finite Fields

Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

Elementary Number Theory

Module MA3411: Abstract Algebra Galois Theory Appendix Michaelmas Term 2013

Notes on Factoring. MA 206 Kurt Bryan

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.

The Division Algorithm for Polynomials Handout Monday March 5, 2012

A Course on Number Theory. Peter J. Cameron

RSA Attacks. By Abdulaziz Alrasheed and Fatima

The Factor Theorem and a corollary of the Fundamental Theorem of Algebra

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

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

Unique Factorization

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

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

11 Ideals Revisiting Z

17 Greatest Common Factors and Least Common Multiples

FACTORING CERTAIN INFINITE ABELIAN GROUPS BY DISTORTED CYCLIC SUBSETS

Zeros of a Polynomial Function

3.2 The Factor Theorem and The Remainder Theorem

Transcription:

MTH 382 Number Theory Spring 2003 Practice Problems for the Final (1) Find the quotient and remainder in the Division Algorithm, (a) with divisor 16 and dividend 95, (b) with divisor 16 and dividend -95, (c) with divisor [6.2] and dividend 95, (d) with divisor [-6.2] and dividend 95. (a) 95 = 16(5) + 15, q = 5, r = 15 (b) 95 = 16( 6) + 1, q = 6, r = 1 (c) [6.2] = 6, 95 = 6(15) + 5, q = 15, r = 5 (d) [ 6.2] = 7, 95 = 7( 13) + 4, q = 13, r = 4 (2) What is the value of [x] + [ x] when x is real? The value is zero if x is an integer. If the value is not zero then it is the value -1. If x is an integer then it is easy to see that [x] = [ x] so [x] + [ x] = 0. If x is not an integer, first suppose x > 0 Let x = n + r, where n Z +, and 0 r < 1. Then [x] = n and [ x] = n 1, thus [x] + [ x] = 1. If x < 0 then x > 0 and since x = ( x), the above argument proves that in this case we also get 1. Examples: When x = 2,[2]+[ 2] = 2 2 = 0. When x = 3.5, [3.5]+[ 3.5] = 3 4 = 1 (3) Show that there are no prime triplets, that is, primes, p, p + 2, and p + 4 other than 3,5, and 7. First, we divide p by 3. Since p 3, we know that p = 3q + r where either r = 1 or r = 2. Then, p + 2 = 3q + r + 2 and p + 4 = 3(q + 1) + r + 1. Either r + 2 is divisible by 3, or r + 1 is divisible by 3, thus either p + 2 or p + 4 is divisible by 3 if p is not. (4) Use the Euclidean Algorithm to find the greatest common divisor of a and b and to express it as a linear combination of a and b, where a = 1005 and b = 320. 1005 = 320(3) + 45 320 = 45(7) + 5 45 = 5(9) 1

2 5 = 320 45(7) 45 = 1005 320(3) 5 = 320 (1005 320(3))(7) 5 = 320 1005(7) + 320(21) 5 = 320(22) 1005(7) (5) Find the prime factorization of a = 1005 and b = 320. Express the greatest common divisor of a and b, (a, b), and the least common multiple of a and b, [a, b], in terms of the prime factorization of a and b. a = 1005 = 5 201 = 5 3 67 and we know 67 is prime because it has no prime factors less than 67 = 8.18. as shown above and b = 320 = 5 64 = 5 2 6 (a, b) = 5 [a, b] = 2 6 3 5 67 = 64, 320 (6) Find all solutions of the following Linear Diophantine Equation. 35x + 133y = 1358 35x + 133y = 1358, (35, 133) = 7, 7 1358 so there are infinitely many solutions as seen below. Find the gcd using the Euclidean Algorithm (work not shown here) 7 = 4 35 133. We multiply linear combination of gcd to get linear comb of 1358 194(7) = 194(4 35 133), 1358 = 776(35) 194(133) Let x 0 = 776 and y 0 = 194. Then we let x = 776 + 133/7(n) and y = 194 35/7(n), so that x = 776 + 19n and y = 194 5n These equations will return unique solutions for each n. (7) Find the least positive residue of 1! + 2! + 3! + + 75! modulo 15. Each factorial, n! for n 5 is evenly divisible by 15 thus n! 0( mod 15) for n 5. So we have: 1! + 2! + 3! + + 75! 1! + 2! + 3! + 4! + 0 + + 0( mod 15)

3 1 + 2 + 6 + 9(mod15) 3(mod15) (8) Construct the table for multiplication modulo 6. 0 1 2 3 4 5 0 0 0 0 0 0 0 1 0 1 2 3 4 5 2 0 2 4 0 2 4 3 0 3 0 3 0 3 4 0 4 2 0 4 2 5 0 5 4 3 2 1 (9) Find the least positive residue modulo 25 of 3 47. First we write 47 in binary 47 = 2 5 + 2 3 + 2 2 + 2 1 + 2 0, so that 3 47 = 3 (25 +2 3 +2 2 +2 1 +2 0) = 3 (25) 3 (23) 3 (22) 3 (21) 3 (20 ) We have 3 (20) 3( mod 25) 3 (21) 9( mod 25) 3 (22) 9 2 ( mod 25) 6( mod 25) 3 (23) 6 2 ( mod 25) 11( mod 25) 3 (24) 11 2 ( mod 25) 21( mod 25) Thus, 3 (25) 21 2 ( mod 25) 16( mod 25) 3 47 16 11 6 9 3( mod 25) 3 47 12( mod 25) (10) Find all solutions of the linear congruence: 15x 9( mod 27). Explain using solutions to Linear Diophantine Equations. 15x 9( mod 27) 15x 27y = 9 15(2) 27(1) = 3 3[15(2) 27(1)] = 3[3] 15(6) 27(3) = 9

4 One Solution is x = 6 and y = 3. We are only interested in the value of x. All solutions are of the form: x = 6 + (27/3)t, x = 6 + 9t, y = 3 (15/3)t y = 3 5t There are 3 solutions modulo 27 because (15, 27) = 3 so t = 0, 1, 2 produces different solutions. x = 6 + 9(0) = 6, x = 6 + 9(1) = 15, x = 6 + 9(2) = 24 (11) Using the Chinese Remainder theorem, find all solutions to the follwoing system of linear congruences. x 1( mod 3) x 2( mod 4) x 3( mod 5) Use the Chinese Remainder Theorem: There is a unique solution X( mod M), where M = 3 4 5, whenever (3, 4, 5) = 1. This solution is x = a 1 M 1 y 1 + a 2 M 2 y 2 + a 3 M 3 y 3. M = 60, M 1 = 60/3 = 20, M 2 = 60/4 = 15, M 3 = 60/5 = 12 a 1 = 1, a 2 = 2, a 3 = 3 M 1 y 1 1( mod 3), M 2 y 2 1( mod 4), M 3 y 3 1( mod 5) y 1 = 2, y 2 = 3, y 2 = 3 So, X = 238 Since we know X is unique modulo 60 we can factor out all multiples of 60. Our solution of the problem is now 58 (mod 60). Algebraically the solution can be described as X = 60 n + 58 where n is an integer. (12) Use Wilson s Theorem to find the remainder when 7 8 9 15 16 17 23 24 25 43 is divided by 11. 7 8 9 15 16 17 23 24 25 43 7 8 9 4 5 6 1 2 3 10( mod 11) So, 7 8 9 4 5 6 1 2 3 10 = 10! 7 8 9 15 16 17 23 24 25 43 10( mod 11)

(13) What is the remainder when 18! is divided by 437? Hint, 437 = 19 23. Use Wilson s Theorem and the Chinese Remainder theorem. 437 = 19 23 18! 18( mod 19)(1) 22! = 22 21 20 19 18! ( 1) ( 2) ( 3) ( 4) 18!( mod 23) 1 18!( mod 23) We also know 22! 22( mod 23). So, 18! 22( mod 23)(2) For (1) and (2), we know that there is a unique x that satisfies, x 18( mod 19) x 22( mod 23) By the Chinese remainder theorem, x 436( mod 437) (work omitted here) and so 18! 436( mod 437) 5 (14) φ(n) is the Euler phi-function. Show that φ(5186) = φ(5187) = φ(5188). First, factor each number into primes: 5186 = 2*2593 5187 = 3*7*13*19 5188 = 2 2 1297 Since the Euler phi-function is multiplicative, you can write each as a function of its primes: φ(5186) = φ(2) φ(2593) φ(5187) = φ(3) φ(7) φ(13)φ(19) φ(5188) = φ(2 2 ) φ(1297) Finally, we can complete the calculations by using what we know about the Euler-phi function on primes, which is that φ(p) = p 1, and φ(p n ) = p n p n 1. φ(5186) = φ(2) φ(2593) = 1 2592 = 2592 φ(5187) = φ(3) φ(7) φ(13)φ(19) = 2 6 12 18 = 2592 φ(5188) = φ(2 2 ) φ(1297) = 2 1296 = 2592 Therefore, φ(5186) = φ(5187) = φ(5188) = 2592. (15) Find all positive integers n such that φ(n) = 4. Be sure to prove that you have found all solutions. n = 5, 8, 10, and 12. If p t n, then since φ is multiplicative, we know φ(p t ) φ(n) and since φ(p t ) = p t 1 (p 1), we have that p t 1 (p 1) 4. We see that p can only be 2,3, or 5. So, n = 2 a 3 b 5 c. If p = 2, then t = 0, 1, 2, or 3. Suppose t = 0. Then n = 3 b 5 c and φ(n) = 3 b 5 c (2/3)(4/5) = 4. It must be that b = 0 and c = 1. Giving n = 5.

6 Suppose t = 1. Then again, φ(n) = φ(2)φ(3 b 5 c ) which again implies b = 0 and c = 1. So n = 10 is a possibility. Suppose t = 2. Then 4 = φ(n) = φ(2 2 )φ(3 b )φ(5 c ) = 2φ(3 b )φ(5 c ) which can only happen if b = 1 and c = 0. This gives n = 12. The last case is t = 3. Then 4 = φ(n) = φ(2 3 )φ(3 b )φ(5 c ) = 4φ(3 b )φ(5 c ). So b = 0 and c = 0. This gives n = 8.