Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36

Similar documents
Modular arithmetic Math 2320

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

Applications of Fermat s Little Theorem and Congruences

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

SOLUTIONS TO PROBLEM SET 5. Section 9.1

1.6 Congruence Modulo m

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

Carmen s Core Concepts (Math 135)

Modular Arithmetic. claserken. July 2016

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

Distribution of Primes

ALGEBRA: Chapter I: QUESTION BANK

Modular Arithmetic and Doomsday

Discrete Math Class 4 ( )

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

MAT Modular arithmetic and number theory. Modular arithmetic

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

Modular Arithmetic. Kieran Cooney - February 18, 2016

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

Introduction to Modular Arithmetic

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

Solutions for the Practice Questions

Discrete Square Root. Çetin Kaya Koç Winter / 11

MATH 135 Algebra, Solutions to Assignment 7

Implementation / Programming: Random Number Generation

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

Assignment 2. Due: Monday Oct. 15, :59pm

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

A Quick Introduction to Modular Arithmetic

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

Practice Midterm 2 Solutions

Grade 6/7/8 Math Circles April 1/2, Modular Arithmetic

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

The Chinese Remainder Theorem

Sheet 1: Introduction to prime numbers.

Modular Arithmetic: refresher.

Fermat s little theorem. RSA.

Number Theory/Cryptography (part 1 of CSC 282)

SOLUTIONS FOR PROBLEM SET 4

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Foundations of Cryptography

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

Discrete Mathematics. Spring 2017

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

University of British Columbia. Math 312, Midterm, 6th of June 2017

Solutions for the 2nd Practice Midterm

Wilson s Theorem and Fermat s Theorem

Math 255 Spring 2017 Solving x 2 a (mod n)

12. Let Rm = {0,1,2,..., m 1} be a complete residue system modulo ra. Let a be an integer. When is a Rm = {0,1 a, 2 a,...

Math 127: Equivalence Relations

6.2 Modular Arithmetic

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

Public Key Encryption

NUMBER THEORY AMIN WITNO

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

Math 319 Problem Set #7 Solution 18 April 2002

Number Theory. Konkreetne Matemaatika

Final exam. Question Points Score. Total: 150

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Multiples and Divisibility

CHAPTER 2. Modular Arithmetic

Solutions for the Practice Final

Goldbach Conjecture (7 th june 1742)

The Chinese Remainder Theorem

Two congruences involving 4-cores

Arithmetic of Remainders (Congruences)

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

Launchpad Maths. Arithmetic II

Math 412: Number Theory Lecture 6: congruence system and

An elementary study of Goldbach Conjecture

Solutions to Exercises Chapter 6: Latin squares and SDRs

Lecture 32. Handout or Document Camera or Class Exercise. Which of the following is equal to [53] [5] 1 in Z 7? (Do not use a calculator.

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey

Introduction To Modular Arithmetic

Monotone Sequences & Cauchy Sequences Philippe B. Laval

Quantitative Aptitude Preparation Numbers. Prepared by: MS. RUPAL PATEL Assistant Professor CMPICA, CHARUSAT

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

CLASS NOTES. A mathematical proof is an argument which convinces other people that something is true.

Primitive Roots. Chapter Orders and Primitive Roots

CS 202, section 2 Final Exam 13 December Pledge: Signature:

Algorithmic Number Theory and Cryptography (CS 303)

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

Class 8 Cubes and Cube Root

Data security (Cryptography) exercise book

Cryptography. 2. decoding is extremely difficult (for protection against eavesdroppers);

The Chinese Remainder Theorem

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Number Theory and Public Key Cryptography Kathryn Sommers

The Game of SET R, and its Mathematics.

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

1999 Mathcounts National Sprint Round Solutions

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

Transcription:

Question 1 Section 4.1 11. What time does a 12-hour clock read a) 80 hours after it reads 11:00? b) 40 hours before it reads 12:00? c) 100 hours after it reads 6:00? I don't really understand this question and what the question ask me for. a. (11 + 80) mod 12 = 7 b. (12 + 40) mod 12 = 4 c. (100 + 6) mod 12 = 10 Section 4.2 27. Use Algorithm 5 to find 32003 mod 99. Binary expansion of 644 is: (0111 1101 0011) So using Algorithm 5 requires to define: a = 0111 1101 0011 i = 0, 1, 2,, 10 x = 1 power = 3 A table below shows the algorithm: i a i x Power 0 a 0 = 1 x = 1 x 3 mod 99 x = 3 1 a 1 = 1 x = 3 x 9 mod 99 Power = 3² mod 99 Power = 9 Power = 9² mod 99 2 a 2 = 0 ² mod 99 Power = 27 3 a 3 = 0 Power = 27² mod 99 Power = 36 4 a 4 = 1 x 36 mod 99 x = 81 Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 6 a 6 = 1 x = 81 x 81 mod 99 7 a 7 = 1 x 27 mod 99 x = 36 ² mod 99 Power = 27 Power = 27² mod 99 Power = 36 8 a 8 = 1 x = 36 x 36 mod 99 Power = 36² mod 99

9 a 9 = 1 x = 9 x 9 mod 99 x = 81 x = 9 Power = 9 10 a 10 = 1 x = 81 x 81 mod 99 Power = 9² mod 99 Using result, we know that 3² ⁰⁰⁸ mod 99 = 27. Question 2 Exercise 34 asks to show that if a is equivalent to b (mod m) and c is equivalent to d (mod m), where a, b, c, d and m are integers with m greater or equal to 2, then a - c is equivalent to b - d (mod m). How can this be shown? Using theorem 3, we get: a b (mod m) a (mod m) = b (mod m). The same can be said for c d (mod m), that is, c (mod m) = d (mod m). So subtracting both equations, we get: a (mod m) c (mod m) = b (mod m) d (mod m). Using Corollary 2 of Theorem 5, we get: (a c) (mod m) = (b d) (mod m) (a c) (b d) (mod m) Question 3 Could you please solve problem 19 of 4.1? Recall the division algorithm, a = mq + r, 0 < r < m. Taking the modulus of this equation: a (mod m) = (mq + r) (mod m) a (mod m) = mq (mod m) + r (mod m) a (mod m) = r Since by definition 0 < r < m, then: 0 < a (mod m) < m If a (mod m) < m/2, then the smallest absolute value congruent should be a (mod m). In the other case, a (mod m) > m/2, then the smallest absolute value congruent should be (a (mod m)) m.

Question 4 Buenas, mi pregunta es sobre el ejercicio 38 de la seccion 4.1. El mismo dice: Show that if n is an integer then n2 0 or 1(mod 4). Lo que he hecho: Caso 1: si n es un entero par entonces se puede expresar como n=2k n^2 = 4m^2 n^2 (mod 4) = 4m^2 (mod 4) n^2(mod 4) = 0 Caso 2: si n es un entero impar entonces se puede expresar como n=(m+1 n^2=(m^2 + 4m +1) n^2(mod 4) = (m^2 + 4m +1) (mod 4) The missing step is: n² (mod 4) = (m²) mod 4 + (4m) mod 4 + (1) mod 4 Therefore, n² (mod 4) = 1. Question 5 Ejercicio 43 - Show that Zm with multiplication modulo m, where m(greater than or equal to)2 is an integer, satisfies the closure, associative, and commutatively properties, and 1 is multiplicative identity. Dividing this proof by cases, we have: Case 1: Closure We know that a x m b = (a x b) mod m, and since (a x b) mod m belongs to Z m. If a and b belong to Z m, then a x m b belongs to Z m. Therefore this proves the closure property. Case 2: Associative (a x m b) x m c = a x m b x m c (a x m b) x m c = a x m (b x m c) If a, b and c are in Z m, then this proves the associative property. Similar procedures can be taken for proving commutative multiplication and multiplication identity. Question 6 En el ejercicio 13 el cual dice: Suppose that a and b are integers, a 4 (mod 13), and b 9 (mod 13). Find the integer c with 0 c 12 such

that: a) c 9a (mod 13). b) c 11b (mod 13). c) c a + b (mod 13). d) c 2a + 3b (mod 13). e) c a2 + b2 (mod 13). f ) c a3 b3 (mod 13). a. Using theorem 3, c (mod 13) = 9a (mod 13) c (mod 13) = 9 (4 mod 13) (mod 13) c (mod 13) = (36 mod 13) (mod 13) c (mod 13) = 10 mod 13 We can conclude c = 10. For the rest of the problems, the procedure is similar. b. c = 8 c. c = 0 d. c = 9 e. c = 6 f. c = 11 Question 7 Question 19 from section 14.3 says: "Show that if (2^n) -1 is prime, then n is prime. [Hint: Use the identity 2^ab -1=(2^a -1)*(2^(a(b-1)) +2^(a(b-2)) +...+2^a +1)]." This is also Mersenne prime [(2^n)-1 is a prime]. Equaling n=ab would give me 2^ab -1. Therefore I may use the identity. From then on I'm not entirely sure how to proceed since this identity is mostly the sum of products. How can I prove this? Proof by contraposition: Assuming n is not prime, then it is composite. That means n is of the form n = ab. Then, 2 n 1 = 2 ab 1. We know that this must be divisible by 2 a 1, because: 2 ab 1 = (2 a 1)(2 a(b-1) + 2 a(b-2) + + 2 a + 1) So that means that if n is composite, then 2 n - 1 is also composite. That completes the proof by contraposition.

Question 8 sec. 4.1 36. Show that if a, b, c, and m are integers such that m 2, c > 0, and a b (mod m), then ac bc (mod mc). Using theorem 3, we know that a (mod m) = b (mod m). Now assume c and d integers, where d > 1. The remainder of x/y is: x (mod y) = x y (x/y) Such that: a m(a/m) = b m(b/m) Now, multiplying both sides by c, we obtain: c ( a m(a/m) ) = c ( b m(b/m) ) ac mc(a/m) = bc mc(b/m) ac mc (ac/mc) = bc mc(bc/mc) Therefore, ac mod mc = bc mod mc So, ac bc (mod mc)