Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

Similar documents
MATH 304: MIDTERM EXAM SOLUTIONS

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

The Structure of Z p when p is Prime

Math 2112 Solutions Assignment 5

Solutions to Math 347 Practice Problems for the final

Homework 9. (n + 1)! = 1 1

Bertrand s Postulate

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

Lecture 1. January 8, 2018

Homework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is

DIVISIBILITY PROPERTIES OF GENERALIZED FIBONACCI POLYNOMIALS

Trial division, Pollard s p 1, Pollard s ρ, and Fermat s method. Christopher Koch 1. April 8, 2014

Homework 2 January 19, 2006 Math 522. Direction: This homework is due on January 26, In order to receive full credit, answer

Math F215: Induction April 7, 2013

M A T H F A L L CORRECTION. Algebra I 1 4 / 1 0 / U N I V E R S I T Y O F T O R O N T O

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

Induction proofs - practice! SOLUTIONS

Homework 1 Solutions. The exercises are from Foundations of Mathematical Analysis by Richard Johnsonbaugh and W.E. Pfaffenberger.

The Binomial Theorem

Complex numbers 1D. 1 a. = cos + C cos θ(isin θ) + + cos θ(isin θ) (isin θ) Hence, Equating the imaginary parts gives, 2 3

Journal of Ramanujan Mathematical Society, Vol. 24, No. 2 (2009)

Induction: Solutions

3 Gauss map and continued fractions

Bertrand s Postulate. Theorem (Bertrand s Postulate): For every positive integer n, there is a prime p satisfying n < p 2n.

Math 140A Elementary Analysis Homework Questions 1

The 4-Nicol Numbers Having Five Different Prime Divisors

SOME TRIBONACCI IDENTITIES

Some p-adic congruences for p q -Catalan numbers

Different kinds of Mathematical Induction

SOLVED EXAMPLES

International Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL Christos Nikolaidis TOPIC NUMBER THEORY

1 Summary: Binary and Logic

4 Mathematical Induction

Unit 4: Polynomial and Rational Functions

Polynomial and Rational Functions. Polynomial functions and Their Graphs. Polynomial functions and Their Graphs. Examples

Seunghee Ye Ma 8: Week 5 Oct 28

1. ARITHMETIC OPERATIONS IN OBSERVER'S MATHEMATICS

MATH /19: problems for supervision in week 08 SOLUTIONS

MATH 112: HOMEWORK 6 SOLUTIONS. Problem 1: Rudin, Chapter 3, Problem s k < s k < 2 + s k+1

} is said to be a Cauchy sequence provided the following condition is true.

GENERALIZATIONS OF ZECKENDORFS THEOREM. TilVIOTHY J. KELLER Student, Harvey Mudd College, Claremont, California

Week 5-6: The Binomial Coefficients

MA541 : Real Analysis. Tutorial and Practice Problems - 1 Hints and Solutions

Objective Mathematics

Math 4400/6400 Homework #7 solutions

Lecture 10: Mathematical Preliminaries

A B = φ No conclusion. 2. (5) List the values of the sets below. Let A = {n 2 : n P n 5} = {1,4,9,16,25} and B = {n 4 : n P n 5} = {1,16,81,256,625}

Modern Algebra 1 Section 1 Assignment 1. Solution: We have to show that if you knock down any one domino, then it knocks down the one behind it.

[ 47 ] then T ( m ) is true for all n a. 2. The greatest integer function : [ ] is defined by selling [ x]

Proof of Fermat s Last Theorem by Algebra Identities and Linear Algebra

Regent College Maths Department. Further Pure 1. Proof by Induction

Math 4107: Abstract Algebra I Fall Webwork Assignment1-Groups (5 parts/problems) Solutions are on Webwork.

Basic Sets. Functions. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4. (e) 2 S.

Summer High School 2009 Aaron Bertram

Two Topics in Number Theory: Sum of Divisors of the Factorial and a Formula for Primes

Solutions to Problem Set 7

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Ma/CS 6b Class 19: Extremal Graph Theory

A New Sifting function J ( ) n+ 1. prime distribution. Chun-Xuan Jiang P. O. Box 3924, Beijing , P. R. China

= 4 and 4 is the principal cube root of 64.

TRUE/FALSE QUESTIONS FOR SEQUENCES

Math 609/597: Cryptography 1

, 4 is the second term U 2

Zeros of Polynomials

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

Exercises 1 Sets and functions

Injections, Surjections, and the Pigeonhole Principle

The multiplicative structure of finite field and a construction of LRC

2.1. The Algebraic and Order Properties of R Definition. A binary operation on a set F is a function B : F F! F.

Summary: Congruences. j=1. 1 Here we use the Mathematica syntax for the function. In Maple worksheets, the function

Section 11.8: Power Series

The Binomial Theorem

Math 105 TOPICS IN MATHEMATICS REVIEW OF LECTURES VII. 7. Binomial formula. Three lectures ago ( in Review of Lectuires IV ), we have covered

page Suppose that S 0, 1 1, 2.

Fourier Analysis, Stein and Shakarchi Chapter 8 Dirichlet s Theorem

Solutions for May. 3 x + 7 = 4 x x +

Solutions to Problem Set 8

(I.C) THE DISTRIBUTION OF PRIMES

Complex Numbers Solutions

On the distribution of coefficients of powers of positive polynomials

Chapter 9 Sequences, Series, and Probability Section 9.4 Mathematical Induction

A Study on Some Integer Sequences

Lecture 7: Properties of Random Samples

Asymptotic Formulae for the n-th Perfect Power

NAME: ALGEBRA 350 BLOCK 7. Simplifying Radicals Packet PART 1: ROOTS

k-generalized FIBONACCI NUMBERS CLOSE TO THE FORM 2 a + 3 b + 5 c 1. Introduction

Diophantine Equation. Has Infinitely Many Prime Solutions

2.4 - Sequences and Series

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

1 Elliptic Curves Over Finite Fields

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

Analytic Theory of Probabilities

Random Models. Tusheng Zhang. February 14, 2013

+ au n+1 + bu n = 0.)

Notes on the Combinatorial Nullstellensatz

BINOMIAL PREDICTORS. + 2 j 1. Then n + 1 = The row of the binomial coefficients { ( n

1. By using truth tables prove that, for all statements P and Q, the statement

Let us consider the following problem to warm up towards a more general statement.

On Some Properties of Digital Roots

Transcription:

Departmet of Mathematical Scieces Istructor: Daiva Puciskaite Discrete Mathematics Fermat s Little Theorem 43.. For all a Z 3, calculate a 2 ad a 3. Case a = 0. 0 0 2-times Case a 0. 0 0 3-times a a 2-times a a 3-times = 0 0 0 2-times = 0 0 0 3-times = a a a 2-times = a a a 3-times mod 3 = 0, mod 3 = 0. mod 3 = a 2 mod 3 =, mod 3 = a 3 mod 3 = a. 43.8. If p is a prime ad a is a multiple of p, the a p a mod p. (Recall: m mod p if ad oly if m mod p = mod p.) Sice a is a multiple of p, we have a = p x for some x Z. Therefore a p = p x p x p x = p p x p = p p p x p = p y p-times y is also a multiple of p. Thus 0 = p x mod p = p y mod p = 0. a a p

Recall: Let N, >, ad a, b, c Z. The ( ) (a + iteger ) mod = a mod. ( ) If a mod = b mod, the (a + c) mod = (b + c) mod. ( ) (x+y) = x + x y+ + x j y j + + y. 0 j = k! k!( k)!. Let m N. Show that the followig statemets are true () mod = mod. Proof by Mathematical Iductio: We have followig statemets which are related to : 0 0 mod = 0 mod, mod = mod, 2 2 mod = 2 mod, 3 3 mod = 3 mod, k k mod = k mod,. k+ (k + ) mod = (k + ) mod,. Proof. Basis step: The case = 0 is true because both sides of the equatio evaluate to 0. 0 mod = 0 ad 0 mod = 0 Iductio hypothesis: Suppose the result is true for k N; that is, we assume we have 2

(k + ) mod ( ) = k mod = k mod We must prove that the result is true for k + ; that is usig the equatio k mod = k mod we must prove (k + ) mod = (k + ) mod. ( ) k + k 4 + k 3 2 + k 2 3 + k 4 + mod 0 2 3 4 0 0 = ( k + k 4 + 0k 3 + 0k 2 + k + ) mod = ( k + + k 4 + 0k 3 + 0k 2 + k ) mod = ( k } {{ + } + (k 4 + 2k 3 + 2k 2 + k) ) mod a iteger ( ) = k } {{ + } mod a ( by assumptio k a mod ( ) = ( k + ) mod = k b mod, thus ( ) implies ( k + a c ) mod This is what we had to show. I other words we have show: Basis step: The statemet 0 is true. Iductio hypothesis: If statemet 0 is true, the statemet is true If statemet is true, the statemet 2 is true If statemet 2 is true, the statemet 3 is true If statemet 3 is true, the statemet 4 is true Therefore the equatio mod = mod is true for all N.. = ( k + ) mod b c ) (2) mod = mod. Proof. Basis step: The case = 0 is true because both sides of the equatio 3

(k + ) mod ( ) = evaluate to 0. 0 mod = 0 ad 0 mod = 0 Iductio hypothesis: Suppose the result is true for k N; that is, we assume we have k mod = k mod We must prove that the result is true for k + ; that is usig the equatio k mod = k mod we must prove (k + ) mod = (k + ) mod. ( 0 k + k 6 + 2 2 k + 3 3 k 4 + 4 3 k 3 + 2 k 2 + = ( k + k 6 + 2k + 3k 4 + 3k 3 + 2k 2 + k + ) mod = ( k + + k 6 + 2k + 3k 4 + 3k 3 + 2k 2 + k ) mod 6 = ( k + + (k 6 + 3k + k 4 + k 3 + 3k 2 + k) ) mod iteger ( ) = ( k + ) mod ( by assumptio k mod = k mod, thus (k + ) mod = (k + ) mod ) ( ) = ( k + ) mod This is what we had to show. k + ) mod 2. Prove the followig statemets. Let N, >, ad a N () If a mod = b mod, the ( a) mod = ( b) mod. Recall ( )l. If for x, Z with > 0 we have x = q +r such that q, r Z ad 0 r <, the the pair (q, r) of itegers with the property x = q + r ad 0 r < is uique, ad we write r = x mod. Moreover, if 0 r <, the 0 r <. 4

Proof. It is give r = a mod = b mod. This meas that 0 r <, ad a = q + r a mod ad b = q + r, for q, q Z b mod a = ( q) r ad b = ( q) r a = ( q) + 0 r ad b = ( q) + 0 r a = ( q) +( + ) r ad b = ( q) +( + ) r 0 0 a = ( q ) + r 0 r< ad b = ( q ) + r 0 r< ( ) a = ( q ) + r a mod ad b = ( q ) + r b mod ( a) mod r (2) If p is odd, the ( a) p = a p. = ( b) mod r We have ( a) p = ( ) p a p. Sice p is odd, we have p = 2 k+, thus ( ) p = ( ) 2k+ = ( ) ( ) 2k =. Therefore ( a) p = ( ) p a p = a p.

3. Let z Z. Show that the followig statemets are true () z mod = z mod. Proof. From () we kow that the equatio is true for all N. mod = mod Let z be a egative iteger. The z = m for some positive iteger m (this iteger is absolute value of z, i.e. m = z ). m mod = m mod = 2() m mod = m mod 2(2) = ( m) mod = m mod Therefore the equatio z mod = z mod is true for all itegers z. (2) z mod = z mod. 4. Let, m N, ad let p be a prime. Show that the followig statemets are true () If r = p N, ad p does ot divide m, the p divides r. m I other wors: If r = p N, ad p does ot appear i the m prime factorizatio of m, the r is a multiple of p. Proof. Let = p p 2 p s be the prime factorizatio of, m = q q 2 q v be the prime factorizatio of m, r = η η 2 η w be the prime factorizatio of r. ( )Notice that p q i for all i v (i.e. p q, p q 2,..., p q v), because of the assumptio p does ot divide m (or i other words: p does ot appear i the prime factorizatio of m). 6

r = p m = r m = p = η η 2 η w q q 2 q v m = p p 2 p s p r η i, q i, p i are primes = η η 2 η w q q 2 q v ad p p 2 p s p [ Fudametal Theorem of Arithmetic ] by the assumptio p m are two prime factorizatios of the same umber = the oly differece betwee η η 2 η w q q 2 q v ad p p 2 p s p is the order = p is oe of the umbers amog η, η 2,..., η w, q, q 2,..., q v = ( ) p = η i for some i w = p is a factor of r = η η 2 η i = r = p η i η w p η η i η i+ η w is the multiple of p this is what we had to show. (2) If 0 < k < p, the the biomial coefficiet p p! = is a multiple of p. k k!(p k)! Recall. p! = 2 3 (p ) p = (p )! p. (p )! p p! (p )! p Proof. The biomial coefficiet = = k k!(p k)! k!(p k)! is a umber (it is the umber of k-elemet subsets of a -elemet set). Moreover this umber is i the form required by the assumptios of 4() (here r = ( p k), = (p )!, ad m = k!(p k)!). The assumptio 0 < k < p implies that k < p, ad p k < p, therefore k! = 2 i (k ) k <p <p <p <p <p ad (p k)! = 2 j <p <p <p Thus p ca t be a factor of the prime factorizatio of, 2,..., k ad cosequetly ca t be a factor of the prime factorizatio of k!. The same applies to (p k)!: the prime p ca t be a factor of the (p k) <p

prime factorizatio of (p k)!. Therefore p ca t be a factor of the prime factorizatio of k! (p k)!. The assumptios of 4() for ( ( p ad p are satisfied, therefore p ) k is a multiple of p (if < k < p).. Prove Fermat s Little Theorem : Let p be a prime ad let a be a iteger. The a p mod p = a mod p. 8