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

Similar documents
PUTNAM PREP FOR THE FIRST THREE PRACTICE SESSIONS V11

Lecture 4: Number theory

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

The Chinese Remainder Theorem

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

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

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

MATH 361: NUMBER THEORY FOURTH LECTURE

Number Theory in Problem Solving. Konrad Pilch

Basic elements of number theory

Basic elements of number theory

Numbers. Çetin Kaya Koç Winter / 18

Applied Cryptography and Computer Security CSE 664 Spring 2018

Contest Number Theory

CHAPTER 3. Congruences. Congruence: definitions and properties

3 The fundamentals: Algorithms, the integers, and matrices

CPSC 467b: Cryptography and Computer Security

4 Number Theory and Cryptography

Number Theory and Group Theoryfor Public-Key Cryptography

M381 Number Theory 2004 Page 1

Part IA Numbers and Sets

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

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

Beautiful Mathematics

Theory of Numbers Problems

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

MATH 145 Algebra, Solutions to Assignment 4

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

Math 109 HW 9 Solutions

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

Part IA Numbers and Sets

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

8 Primes and Modular Arithmetic

Euler s, Fermat s and Wilson s Theorems

CPSC 467: Cryptography and Computer Security

Number Theory Proof Portfolio

a = mq + r where 0 r m 1.

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

Number theory (Chapter 4)

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

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

A Guide to Arithmetic

CPSC 467b: Cryptography and Computer Security

Number Theory. Henry Liu, 6 July 2007

Winter Camp 2009 Number Theory Tips and Tricks

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

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

A Few Primality Testing Algorithms

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

I Foundations Of Divisibility And Congruence 1

MATH 310: Homework 7

A Readable Introduction to Real Mathematics

Basic Algorithms in Number Theory

1. multiplication is commutative and associative;

7. Prime Numbers Part VI of PJE

7.2 Applications of Euler s and Fermat s Theorem.

Summary Slides for MATH 342 June 25, 2018

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

Number Theory. Zachary Friggstad. Programming Club Meeting

Lecture Notes. Advanced Discrete Structures COT S

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

Discrete Mathematics with Applications MATH236

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

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

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?

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

Mathematics for Cryptography

Elementary Number Theory Review. Franz Luef

Basic Algorithms in Number Theory

Number Theory and Algebra: A Brief Introduction

Discrete mathematics I - Number theory

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.

Numbers, Groups and Cryptography. Gordan Savin

Congruence Classes. Number Theory Essentials. Modular Arithmetic Systems

Elementary Number Theory and Cryptography, 2014

Math From Scratch Lesson 20: The Chinese Remainder Theorem

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

Applied Cryptography and Computer Security CSE 664 Spring 2017

Part II. Number Theory. Year

Part IA. Numbers and Sets. Year

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

A SURVEY OF PRIMALITY TESTS

Introduction to Public-Key Cryptosystems:

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

Wilson s Theorem and Fermat s Little Theorem

Number Theory Homework.

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

Math.3336: Discrete Mathematics. Mathematical Induction

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

Olympiad Number Theory Through Challenging Problems

that if a b (mod m) and c d (mod m), then ac bd (mod m) soyou aren't allowed to use this fact!) A5. (a) Show that a perfect square must leave a remain

The group (Z/nZ) February 17, In these notes we figure out the structure of the unit group (Z/nZ) where n > 1 is an integer.

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

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

Math 314 Course Notes: Brief description

. In particular if a b then N(

Table of Contents. 2013, Pearson Education, Inc.

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

Introduction to Number Theory

Transcription:

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012 0.1. Basic Num. Th. Techniques/Theorems/Terms. Modular arithmetic, Chinese Remainder Theorem, Little Fermat, Euler, Wilson, totient, Euclidean algorithm, unique factorization, linear diophantine equations, Pythagorean triplets, Pell, infinite descent. 0.2. Putnam & Beyond Num. Th. Prob. for those with Less Time. Putnam & Beyond Readings: Chapter 5, pages 245-279. 5.1.2 (Fermat s Infinite Descent Principle). A basic technique. The first example is an easy one, but the reference to the maximum modulus principle may be unfamiliar to those who haven t studied complex analysis. (Complex analytic functions always attain their maximum modulus on the boundary of their domains.) 706 is easy. 707 a bit harder. 708 is cute but not easy for all. 5.1.3 (The Greatest Integer Function). Discussion is amazing but may not be quick. 5.2.1 (Factorization and Divisibility). Examples 1 and 2 on page 253 are quick. 724 is quick. As is 725... with the right observation. 5.2.2 (Prime Numbers). The first example is interesting but elaborate with an apparent typo in the centered equation just before the end. The example at the bottom of page 255 is good and quick. Polignac s formula on page 257 is quite intuitive and easy to carry with you 733 is fairly easy. 744 good and systematic. 747 and 748 are interesting Polignac problems. 1

2 WED. OCT. 3,2012 5.2.3 (Modular Arithmetic). Example 1 is quick and basic. Example 2 is interesting and may open some eyes; but will take more thought. 750, 751, and 752 relatively quick. 753 cute and quick with the right observation. 5.2.4 (Fermat s Little Theorem). A very basic theorem. The proof is a little exotic but illustrates a powerful technique. Example 1 page 262 relatively quick but tricky. Example 2 harder to come up with. 760 cute and quick. 761 quick - was on a recent practice Putnam. 762 first part easy and interesting. The application is harder, but quick. 5.2.5 (Wilson s Theorem). A basic theorem with a quick proof. The example is quite nice and quick. 769 is quick and cute. 770 is slick and quick. 771 is nice and famous. 772 is a good application. 5.2.6 (Euler s Totient Function). Quite a fundamental function. The proposition is another basic result. Proofs based on φ(mn) = φ(m)φ(n) when gcd(m, n) = 1 may be more accessible. Euler s theorem comes up a lot and two good proofs are given. The first example is a good and quick application. 5.2.7 (The Chinese Remainder Theorem). Again fundamental. The proof is given in an interesting constructive form; can also be viewed as a byproduct of techniques for solving linear diophantine equations. The example at the bottom of page 269 is amazing. 785 is a basic application. 786 is cute and in the end an easy Chinese Remainder Theorem Apllication. 787 is a good quick application.

PREPARATION NOTES FOR NUMBER THEORY PRACTICE 3 0.3. A Few Interesting Problems. (Solutions on next page.) Problem 1: (Putnam 1985 A4) Define a sequence {a i } by a 1 = 3 and a i+1 = 3 a i for i 1. Which integers between 00 and 99 inclusive occur as the last two digits in the decimal expansion of infinitely many a i? Problem 2: For how( many ) integers n between 49 and 100 (inclusive) is the n binomial coefficient odd? 49 Problem 3: Show that the equation x 2 + y 2 + z 2 = 2xyz has no nontrivial solutions. Problem 4: Find all integral solutions of x 2 3y 2 = 1.

4 WED. OCT. 3,2012 0.4. Soln. to Num. Th. Problems on Previous Page. Soln. to Problem 1: We are interested in a n mod 100. Note all of the a n satisfy gcd(a n, 100) = 1. Little Fermat says a p 1 1 mod p for a prime number p and a not divisible by p. More generally, Euler s theorem says if gcd(a, m) = 1, a φ(m) 1 mod m where φ(m) is the number of residue classes mod m which are coprime to m. Also note φ(ab) = φ(a)φ(b) when gcd(a, b) = 1 and φ(p k ) = p k p k 1 for p a prime. So a i+1 3 a i mod 100 is determined by a i mod φ(100) or a i mod 40 since φ(100) = φ(5 2 2 2 ) = φ(5 2 ) φ(2 2 ) = (5 2 5)(2 2 2) = 40. Then a i 3 a i 1 mod 40 is determined by a i 1 mod φ(40) or a i 1 mod 16 since φ(40) = φ(2 3 5) = φ(2 3 ) φ(5) = (2 3 2 2 )(5 1) = 16. Continuing a i 1 3 a i 2 mod 16 is determined by a i 2 mod φ(16) or a i 2 mod 8 since φ(16) = 2 4 2 3 = 8. Continuing a i 2 3 a i 3 mod 8 is determined by a i 3 mod φ(8) or a i 3 mod 4 since φ(8) = 2 3 2 2 = 4. Continuing a i 3 3 a i 4 mod 4 is determined by a i 3 mod φ(4) or a i 3 mod 2 since φ(4) = 2 2 2 = 2. All a i 4 for i 4 are odd, so working backwards, a i 3 3 mod 4 a i 2 3 3 mod 8 3 mod 8 a i 1 3 3 mod 16 11 mod 16 a i 3 11 mod 40 ((3 4 ) 2 )(3 3 ) mod 40 (3 3 ) mod 40 27 mod 40 a i+1 3 27 mod 100 ((3 6 ) 4 )(3 3 ) mod 100 (729 4 )3 3 mod 100 29 87 3 mod 100 and 29 87 3 mod 100 29( 13) 3 mod 100 29 (169 13) mod 100 So all but the first few terms end in 87. 29( 2197) mod 100 87 mod 100. Soln. to Problem 2: First note that (x + y) p = x p + y p (mod p) ( ) p for a prime number p since 0 (mod p) when 0 < a < p. So also a (x + y) pk = x pk + y pk (mod p).

PREPARATION NOTES FOR NUMBER THEORY PRACTICE 5 We can use this to establish ( ) ( ) b bi = Π a a i (mod p) where b = Σb i p i and a = Σa i p i give the base p expansions of a and b.. This is seen by observing (x + y) b (x + y) Σ ib i p i Π i ( x pi + y pi) b i Π i Σ k ( bi k and comparing the coeficients of x a y b a. ) ( x kpi y (b i k)p i) (mod p) Since 49 = 32 + 16 + 1 = 110001 2 and we are interested in n 100, we first do the problem for n 127. For the binomial coefficient to be odd, the 7 or less bit number n in base 2 must look like (0 or 1)11(0 or 1)(0 or 1)(0 or 1)1 2 a total of 2 4 = 16 possibilities. Since 64 + 32 + 16 + 1 > 100, the eight possibilities whose 64 column is 1 are too big, and we have the remaining eight possibilites where the binomial coefficient is odd. Soln. to Problem 3: First, let (x, y, z) be a nontrivial solution of ( ) x 2 + y 2 + z 2 = 2xyz. Mod 4, squares are 0 or 1 and 2xyz is 0 unless all of x, y, z are odd. So any nontrivial solution consists entirely of even integers. Writing x = 2 x, y = 2ȳ, z = 2 z, we have a nontrivial solution ( x, ȳ, z) to x 2 + y 2 + z 2 = 4xyz. But then the same argument modulo 4 shows that x, ȳ, z must all be even and we can repeat. Motivated by this, we use Fermat s method of descent to show there are no nontrivial solutions. Let ( x, ỹ, z) be a minimal nontrivial solution to ( ) x 2 + y 2 + z 2 = 2 k xyz. for some positive integer k where by minimal we mean having the smallest positive value of x among all nontrivial solutions to ( ) regardless of the positive value of k. The above argument modulo 4 shows that all of x, ỹ, z are even. But then ( x 2, ỹ 2, z 2 ) would solve ( ) with k increased by 1 contradicting the assumption that ( x, ỹ, z) was a solution minimal in x value. So no nontrivial solutions to ( ) exist. Soln. to Problem 4:

6 WED. OCT. 3,2012 This equation is called Pell s equation and will work similarly if 3 is replaced by any other square-free positive integer. Since (x, y) a solution implies ( x, y) is also (and there are no solutions with x = 0), we just need to think about solutions with x > 0. The equation may be rewritten as ( ( ) x y ) ( 3 x + y ) 3 = 1 or zz = 1 where z = x + y 3 (with x, y Z) and z = x y 3. (Note that the product of two numbers of the form x + y 3 with x, y integers can be simplified into a number of the same form.) Let S = {x + y 3 : x, y Z, x > 0, and (x, y) solves ( )}. Then ab = ab means z 1, z 2 S z 1 z 2 S. Also z S 1 z S as well since zz = 1 and 1 z = z for elements of S. Thus the product and quotient of elements of S are also in S. When an element of S x + y 3 is greater than 1, x y 3 < 1 since their product is 1. Thus the set of solutions S with x > 0 is partitioned into two subsets S + = {x + y 3 S : x > 0 and y 0} S = {x y 3 S : x > 0 and y > 0}. S + consists of those elements of S bigger than or equal to 1; S those elements between 0 and 1. Now let u 0 be the smallest element of S + bigger than 1. We claim all solutions of ( ) with x > 0 (interpreted as elements of S) are whole number powers u d 0 of u 0. For if u = x + y 3 is any other positive solution with x > 0, since u 0 > 1, there is a unique integer k so that u k 0 < u < u k+1 0. Multiplication by u k 0 gives a solution with 1 < uu k 0 < u 0. But uu k 0 being a solution bigger than 1 forces it to be in S + contradicting the assumption that u 0 was the smallest element bigger than 1. So no additional solution u exists. In our case of x 2 3y 2 = 1, u 0 = 2 + 3 by inspection. Hence all solutions of ( ) interpreted as numbers z = x + y 3 are simply ±u k 0 for k Z.