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

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

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

M381 Number Theory 2004 Page 1

Number Theory Proof Portfolio

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

Practice Number Theory Problems

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.

4 Powers of an Element; Cyclic Groups

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?

The Chinese Remainder Theorem

Elementary Number Theory Review. Franz Luef

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

Number Theory and Group Theoryfor Public-Key Cryptography

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

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?

CPSC 467b: Cryptography and Computer Security

MATH 145 Algebra, Solutions to Assignment 4

PMA225 Practice Exam questions and solutions Victor P. Snaith

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Basic elements of number theory

Basic elements of number theory

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

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

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

CMPUT 403: Number Theory

Applied Cryptography and Computer Security CSE 664 Spring 2017

Numbers. Çetin Kaya Koç Winter / 18

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

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b)

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

The Chinese Remainder Theorem

Outline. Some Review: Divisors. Common Divisors. Primes and Factors. b divides a (or b is a divisor of a) if a = mb for some m

Outline. AIT 682: Network and Systems Security. GCD and Euclid s Algorithm Modulo Arithmetic Modular Exponentiation Discrete Logarithms

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

LECTURE NOTES IN CRYPTOGRAPHY

3 The fundamentals: Algorithms, the integers, and matrices

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

Lecture 4: Number theory

Chapter 4 Finite Fields

CSC 474 Network Security. Outline. GCD and Euclid s Algorithm. GCD and Euclid s Algorithm Modulo Arithmetic Modular Exponentiation Discrete Logarithms

Number Theory. Everything else. Misha Lavrov. ARML Practice 10/06/2013

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

Number Theory. Zachary Friggstad. Programming Club Meeting

Number Theory. Modular Arithmetic

MTH 346: The Chinese Remainder Theorem

Number Theory Solutions Packet

A SURVEY OF PRIMALITY TESTS

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

4 Number Theory and Cryptography

Number Theory and Algebra: A Brief Introduction

Number Theory Notes Spring 2011

. In particular if a b then N(

I Foundations Of Divisibility And Congruence 1

CPSC 467b: Cryptography and Computer Security

PRACTICE PROBLEMS: SET 1

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

Chapter 8. Introduction to Number Theory

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

Prime Factorization and GCF. In my own words

Elementary Properties of Cyclotomic Polynomials

Lecture Notes. Advanced Discrete Structures COT S

The Chinese Remainder Theorem

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

A Few Primality Testing Algorithms

Beautiful Mathematics

Ma/CS 6a Class 2: Congruences

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

Wilson s Theorem and Fermat s Little Theorem

Discrete Mathematics with Applications MATH236

Direct Proof Divisibility

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

The Euclidean Algorithm and Multiplicative Inverses

Objective Type Questions

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Introduction to Information Security

A Readable Introduction to Real Mathematics

8 Primes and Modular Arithmetic

ECEN 5022 Cryptography

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

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

ECE596C: Handout #11

Elementary Number Theory MARUCO. Summer, 2018

Lecture 14: Hardness Assumptions

Introduction to Number Theory

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Number Theory A focused introduction

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

CHAPTER 3. Congruences. Congruence: definitions and properties

Mathematical Foundations of Public-Key Cryptography

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

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

Ch 4.2 Divisibility Properties

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

4. Congruence Classes

Application of the Euler Phi Function in the Set of Gaussian Integers

Course 2316 Sample Paper 1

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

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Public Key Cryptography

Transcription:

Some Chuck, Ph.D. Department of Mathematics Rockdale Magnet School for Science Technology May 25, 2009 / Georgia ARML Practice

Outline 1 2 3 4

Outline 1 2 3 4

Warm-Up Problem Problem Find all positive n such that n 2 19n + 99 is a perfect square.

Warm-Up Problem Solution. Let n 2 19n + 99 = k 2 for some integer k. Solve n 2 19n ( + 99 k 2 = 0 using the quadratic formula to get n = 1 2 19 ± ) 19 2 4(99 k 2 ). We want n to be an integer so the discriminant must be an integer. Thus, 19 2 4(99 k 2 ) = j 2 for some integer j. Exping, we have 4k 2 35 = j 2, or 4k 2 j 2 = 35. Hence, (2k j)(2k + j) = 35. So 2k j 2k + j must be integers. One case is 2k j = 1 2k + j = 35, giving j = 17, so j 2 = 289. The other case is 2k j = 5 2k + j = 7, giving j = 1, so j 2 = 1. Hence, k 2 = 81 or k 2 = 9 which implies n = 1, 9, 10, 18.

Fundamental Theorem of Arithmetic Any positive integer n can be represented in exactly one way as the product of prime numbers, so that the factorizations of p q are identical if only if p = q.

Fundamental Theorem of Arithmetic Any positive integer n can be represented in exactly one way as the product of prime numbers, so that the factorizations of p q are identical if only if p = q. On a related note, if some integer f divides integers p q, then f divides mp + nq, where m n are any integers.

Another problem Problem How many times does 3 divide 28!?

Another problem Problem How many times does 3 divide 28!? Solution. We reason that the answer is the sum of how many times 3 divides each of 1, 2,..., 28. Of the numbers 1 through 28, exactly 28 28 3 are multiples of 3, are multiples of 3 2 3 2, etc. To count the total number of 3 s appearing in their factorizations, we compute 9 + 3 + 1 + 0 + 0 + 0 + = 13.

A Generalization Theorem A prime number p divides n! exactly i=1 n p i times.

Yet Another Problem Problem How many factors does 120 have?

Yet Another Problem Problem How many factors does 120 have? Solution. Since 120 = 2 3 3 1 5 1, we consider the three sets {2 0, 2 1, 2 2, 2 3 }, {3 0, 3 1 }, {5 0, 5 1 }. Any number formed by picking exactly one element from each of these 3 sets multiplying them will be a divisor 120. Hence, there are 4 2 2 = 16 positive integers that divide 120.

Theorem of Factors Theorem n = p n 1 1 pn 2 2 pn k k has (n 1 + 1)(n 1 + 2) (n k + 1) factors.

Common Definitions The greatest common divisor of m n is defined to be the largest integer that divides both m n. Two numbers whose largest common divisor is 1 are called relatively prime even though neither m nor n is necessarily prime.

Euclidean Algorithm Theorem (Euclidean algorithm version 1) Let n > m. If m divides n, then gcd(m, n) = m. Otherwise, gcd(n, m) = gcd(m, n m n m ).

Euclidean Algorithm Theorem (Euclidean algorithm version 1) Let n > m. If m divides n, then gcd(m, n) = m. Otherwise, gcd(n, m) = gcd(m, n m n m ). Theorem (Euclidean algorithm version 2) For any positive integers m n, there exists integers q r such that 0 r < n m = nq + r.

Finding the GCD Problem Find gcd(4897, 1357).

Finding the GCD Problem Find gcd(4897, 1357). Solution. We use the Euclidean algorithm. gcd(4897, 1357) = gcd(1357, 4897 3 1357) = gcd(1357, 826) = gcd(826, 1357 1 826) = gcd(826, 531) = gcd(531, 826 1 531) = gcd(531, 295) = gcd(295, 531 1 295) = gcd(295, 236) = gcd(236, 295 1 236) = gcd(236, 59) since 59 divides 236, we have gcd(4897, 1357) = 59.

Another Definition The most useful definition of the least common multiple is mn lcm (m, n) = gcd(m, n).

Euler s phi-function The Euler phi-function ϕ(n), denotes the number of positive integers less than or equal to n that are relatively prime to n. ( ) ( ) p1 1 p2 1 ϕ(n) = n p 1 p 2 ( pk 1 p k ).

Outline 1 2 3 4

Theorem Modulo Properties kn + c c mod n for any integers k, n, c.

Modulo Properties Theorem kn + c c mod n for any integers k, n, c. Theorem (kn + c) m c m mod n for any integers k, n, c, positive integer m.

Theorem Modulo Properties kn + c c mod n for any integers k, n, c. Theorem (kn + c) m c m mod n for any integers k, n, c, positive integer m. Theorem (Fermat s Little Theorem) a p 1 1 mod p for relatively prime integers a p, where p is prime.

Theorem Modulo Properties kn + c c mod n for any integers k, n, c. Theorem (kn + c) m c m mod n for any integers k, n, c, positive integer m. Theorem (Fermat s Little Theorem) a p 1 1 mod p for relatively prime integers a p, where p is prime. Theorem (Euler s Theorem) a ϕ(n) 1 mod n for relatively prime integers a n.

Theorem Modulo Properties kn + c c mod n for any integers k, n, c. Theorem (kn + c) m c m mod n for any integers k, n, c, positive integer m. Theorem (Fermat s Little Theorem) a p 1 1 mod p for relatively prime integers a p, where p is prime. Theorem (Euler s Theorem) a ϕ(n) 1 mod n for relatively prime integers a n. Theorem (Wilson s Theorem) (p 1)! 1 mod p, where p is prime.

Modulo Arithmetic 1 The only numbers that can be divided by m in modulo n are those that are multiples of gcd(m, n), each of which leaves gcd(m, n) different residues.

Modulo Arithmetic 1 The only numbers that can be divided by m in modulo n are those that are multiples of gcd(m, n), each of which leaves gcd(m, n) different residues. 2 When multiplying by m in modulo n, the only numbers that can result are multiples of gcd(m, n). There are gcd(m, n) distinct residues that all lead to the same number when multiplied by m.

Modulo Arithmetic 1 The only numbers that can be divided by m in modulo n are those that are multiples of gcd(m, n), each of which leaves gcd(m, n) different residues. 2 When multiplying by m in modulo n, the only numbers that can result are multiples of gcd(m, n). There are gcd(m, n) distinct residues that all lead to the same number when multiplied by m. 3 Taking the square root of both sides is normal only in prime modulos.

Modulo Arithmetic 1 The only numbers that can be divided by m in modulo n are those that are multiples of gcd(m, n), each of which leaves gcd(m, n) different residues. 2 When multiplying by m in modulo n, the only numbers that can result are multiples of gcd(m, n). There are gcd(m, n) distinct residues that all lead to the same number when multiplied by m. 3 Taking the square root of both sides is normal only in prime modulos. 4 When solving for integer solutions in modulo n, any integer multiple of n can be added to or subtracted from any number.

Modulo Arithmetic 1 The only numbers that can be divided by m in modulo n are those that are multiples of gcd(m, n), each of which leaves gcd(m, n) different residues. 2 When multiplying by m in modulo n, the only numbers that can result are multiples of gcd(m, n). There are gcd(m, n) distinct residues that all lead to the same number when multiplied by m. 3 Taking the square root of both sides is normal only in prime modulos. 4 When solving for integer solutions in modulo n, any integer multiple of n can be added to or subtracted from any number. 5 All other operations behave normally according to the stard rules of algebra over the integers.

Another Problem! Problem Find all positive integers n less than 100 such that n 2 + n + 31 is divisible by 43.

Another Problem! Problem Find all positive integers n less than 100 such that n 2 + n + 31 is divisible by 43. Solution. Of course the problem is asking us to solve n 2 + n + 31 0 mod 43. Using the quadratic formula, we find that n 1 ( ) 2 1 ± 123 mod 43. However, because 123 123 + 43k mod 43 for any integer k, we can replace 123 with 123 + 43 5 = 49 to obtain n 1 2 ( 1 ± 7) mod 43. Thus, n 3, 4 mod 43. Adding 43 86 to each of these gives all solutions: 3, 39, 46, 82, 89.

Outline 1 2 3 4

A Theorem Theorem The equation ax + by = c, where a, b, c are integers, has an integer solution if only if gcd(a, b) divides c. Moreover, if (x 0, y 0 ) is one such solution, then the others are given by x = x 0 bt y = y 0 + at for every integer t.

Oh Joy! Another Problem! Problem Characterize the solutions to 7x + 3y = 8. How many positive integer solutions are there?

Oh Joy! Another Problem! Problem Characterize the solutions to 7x + 3y = 8. How many positive integer solutions are there? Solution. Since gcd(3, 7) = 1 divides 8, there are solutions. From the Euclidean algorithm, we have 7 = 3 2 + 1, or 1 = 7 + 3( 2). Multiplying by 8, we have 8 = 7 8 + 3( 16) so that (8, 16) is a solution. Thus all solutions are (8 3t, 16 + 7t) for every integer t. For positive integer solutions, we must have both 8 3t > 0 16 + 7t > 0. But this implies t < 8 3 t > 16 7, which no integer t satisfies. Hence, there are no positive integer solutions.

Two Problems in a Row! Problem Let n be a positive integer. Suppose there are 2016 ordered triples (x, y, z) of positive integers satisfying the equation x + 8y + 8z = n. Find the maximum value of n.

Solution. Two Problems in a Row! Write n = 8a + b where a b are integers with 0 a, b < 8. Since x n b mod 8, the possible values of x are b, b + 8,..., b + 8(a 1). Let x = b + 8i where 0 i < a 1. Then 8(y + z) = 8(a i), or y + z = a i. This gives a i 1 ordered pairs (y, z) of positive integer solutions: (1, a i 1),..., (a i 1, 1). Hence, there are a 1 a 1 (a i 1) = i = i=0 i=0 a(a 1) 2 ordered triples satisfying the conditions of the problem. Solving a(a 1)/2 = 2016 we have a = 64. Thus, the maximum value of n is obtained by setting b = 7. This gives 64 8 + 7 = 519.

Outline 1 2 3 4

104 Problems, Andreescu, Andrica, Feng; Birkhäuser 2007. Through Inquiry, Marshall, Odell, Starbird; Mathematical Association of America 2007.