Chapter 1. Number of special form. 1.1 Introduction(Marin Mersenne) 1.2 The perfect number. See the book.

Similar documents
PMA225 Practice Exam questions and solutions Victor P. Snaith

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.

M381 Number Theory 2004 Page 1

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

Chapter 5.1: Induction

1. Algebra 1.7. Prime numbers

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

Some multiplicative arithmetical functions

Wilson s Theorem and Fermat s Little Theorem

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

God may not play dice with the universe, but something strange is going on with the prime numbers.

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

Counting Perfect Polynomials

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

NONABELIAN GROUPS WITH PERFECT ORDER SUBSETS

Perfect Numbers in ACL2

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

Perfect if and only if Triangular

The first dynamical system

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

On the Cardinality of Mersenne Primes

4 Powers of an Element; Cyclic Groups

Math 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.

7. Prime Numbers Part VI of PJE

Gaussian Amicable Pairs

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

Before we talk about prime numbers, we will spend some time with divisibility because there is

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

Some Extensions to Touchard s Theorem on Odd Perfect Numbers

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

Amicable numbers. CRM Workshop on New approaches in probabilistic and multiplicative number theory December 8 12, 2014

Number Theory and Graph Theory. Prime numbers and congruences.

PRACTICE PROBLEMS: SET 1

Cryptosystem. Traditional Cryptosystems: The two parties agree on a secret (one to one) function f. To send a message M, thesendersendsthemessage

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

History of Mathematics

Intermediate Math Circles March 6, 2013 Number Theory I

LARGE PRIME NUMBERS (32, 42; 4) (32, 24; 2) (32, 20; 1) ( 105, 20; 0).

On the Composite Terms in Sequence Generated from Mersenne-type Recurrence Relations

Lecture 11 - Basic Number Theory.

A Readable Introduction to Real Mathematics

Summary Slides for MATH 342 June 25, 2018

Math 324, Fall 2011 Assignment 6 Solutions

Discrete Structures Lecture Primes and Greatest Common Divisor

Pseudoprimes and Carmichael Numbers

Factorization & Primality Testing

Chapter 5: The Integers

5: The Integers (An introduction to Number Theory)

Solutions to Practice Final 3

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

Chapter 8. Introduction to Number Theory

Ma/CS 6a Class 4: Primality Testing

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

7.2 Applications of Euler s and Fermat s Theorem.

Algebra for error control codes

Solutions to Practice Final

MATH 25 CLASS 8 NOTES, OCT

The Abundancy index of divisors of odd perfect numbers Part III

Theory of Numbers Problems

A Few Primality Testing Algorithms

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

Primality Proofs. Geoffrey Exoo Department of Mathematics and Computer Science Indiana State University Terre Haute, IN

On the Prime Divisors of Odd Perfect Numbers

Applied Cryptography and Computer Security CSE 664 Spring 2017

Prime and Perfect Numbers

download instant at

Mersenne and Fermat Numbers

CS280, Spring 2004: Prelim Solutions

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

The Chinese Remainder Theorem

Math 5330 Spring Notes Congruences

Congruence of Integers

PRIMALITY TEST FOR FERMAT NUMBERS USING QUARTIC RECURRENCE EQUATION. Predrag Terzic Podgorica, Montenegro

MATH 145 Algebra, Solutions to Assignment 4

. In particular if a b then N(

Chapter 5. Modular arithmetic. 5.1 The modular ring

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

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

Numbers and their divisors

Iterated Encryption and Wiener s attack on RSA

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

Chapter 2. Divisibility. 2.1 Common Divisors

Chapter 1. From Euclid to Gauss. 1.1 Prime numbers. If a, b Z we say that a divides b (or is a divisor of b) and we write a b, if.

SIX PROOFS OF THE INFINITUDE OF PRIMES

Elementary Number Theory Review. Franz Luef

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

Introduction to Number Theory. The study of the integers

THE TRIANGULAR THEOREM OF THE PRIMES : BINARY QUADRATIC FORMS AND PRIMITIVE PYTHAGOREAN TRIPLES

Mathematical Problem Solving TEAM A-11/12/2010

ASSIGNMENT Use mathematical induction to show that the sum of the cubes of three consecutive non-negative integers is divisible by 9.

Perfect Numbers and Perfect Polynomials: Motivating Concepts From Kindergarten to College

On Exponentially Perfect Numbers Relatively Prime to 15

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

Senior Math Circles Cryptography and Number Theory Week 2

Kevin James. MTHSC 412 Section 3.4 Cyclic Groups

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

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

A SURVEY OF PRIMALITY TESTS

Transcription:

Chapter 1 Number of special form 1.1 Introduction(Marin Mersenne) See the book. 1.2 The perfect number Definition 1.2.1. A positive integer n is said to be perfect if n is equal to the sum of all its positive divisors, excluding n it self. Example 1.2.1. n = 6 all divisors are 1, 2, 3, 6 6 = 1 + 2 + 3, σ(n) = 1 + 2 + 3 + 6 = 12 σ(6) = 2 6 so 6 is perfect number. Remark 1.2.1. A number n is perfect if σ(n) = 2n Example 1.2.2. σ(28) = 1 + 2 + 4 + 7 + 14 + 28 = 56 so 28 is a perfect number. = 2 28 Theorem 1.2.1. If 2 k 1 is prime (k > 1), then n = 2 k 1 (2 k 1) is perfect and every even perfect number is of this form. Proof. Let 2 k 1 = p, p is prime gcd(p, 2 k 1 ) = 1 n = 2 k 1 p so σ(n) = σ(2 k 1 p) = σ(2 k 1 )σ(p) so n perfect number. = 2k 1 2 1 (p + 1) = (2k 1)2 k = 2 2 k 1 (2 k 1) = 2 n 1

We will now show that an even integer is perfect number then it is of the form 2 k 1 (2 k 1)where 2 k 1 is prime. Let n be an even perfect number k N, k 2 n = 2 k 1 m, where m N and m is odd. gcd(2 k 1, m) = 1, and σ(n) = σ(2 k 1 m) = σ(2 k 1 )σ(m) but σ(n) = 2n = σ(2 k 1 )σ(m) so 2 2 k 1 m = (2 k 1)σ(m) 2 k m = (2 k 1)σ(m)............... (1) (2 k 1) 2 k m, but (2 k 1) m, because gcd(2 k 1, 2 k ) = 1. So M Z m = (2 k 1)M............ (2) substitute equation (2) in (1) 2 k (2 k 1)M = (2 k 1)σ(m) 2 k M = σ(m) since m and M are both divisors of m with M < m σ(m) m + M 2 k M = σ(m) m + M = (2 k 1)M + M 2 k M = σ(m) 2 k M M + M 2 k M = σ(m) 2 k M σ(m) = m + M m has only two positive divisors, which are m and M so m is a prime and M = 1 m = (2 k 1)M = (2 k 1) 1 is a prime number any perfect number n has the form n = (2 k 1 )m = 2 k 1 (2 k 1), where 2 k 1 is prime. Lemma 1.2.1. If a number a k 1 is prime, a > 0, k 2, then a = 2 and k is also prime. Proof. (1) first we will show a = 2 a k 1 = (a 1) ak 1 = (a a 1 1)(ak 1 + a k 2 +... + a + 1) k 1 = (a 1)( a i ) i=0 since a k 1 + a k 2 +... + a + 1 a + 1 > 1 and a k 1 is prime number so the other factor must be 1, that is a 1 = 1 a = 2. 2

(2) second we will show k is prime Let k be composite number, r and s N k = r s a k 1 = a rs 1 = (a r 1) ars 1 a r 1 s 1 = (a r 1)( a ri ) i=0 = (a r 1)(1 + a r + a 2r... + a r(s 1) ) a k 1 is composite number (contradiction) k is prime. Theorem 1.2.2. Prove that 16 m, m N ends in 6. Proof. 16 = 10 + 6 ( ) m 16 m = (10 + 6) m m = 10 m i 6 i i i=0 m 1 = ( 10 m i 6 i ) + 6 m i=0 = 10v + 6 m but 6 m = 6 + 10w 16 m = 6 + 10k 6(mod 10) Theorem 1.2.3. Every even perfect number n ends in 6 or 8 That is n 6(mod10) or n 8(mod10) Proof. Since n is even perfect number k prime n = 2 k 1 (2 k 1), 2 k 1 is prime If k = 2 n = 2(2 2 1) = 2 3 = 6 (done) If k > 2, since any prime number k is either of the form k = 4m + 1 or of the form k = 4m + 3 If k = 4m + 1 n = 2 4m+1 1 (2 4m+1 1) = (2 4 ) m (2(2 4 ) m 1) = (16) m (2(16) m 1) Since (16) m ends in 6 2(16) m ends in 2 2(16) m 1 ends in 1 (16) m (2(16) m 1) ends in 6 n 6(mod10) 3

If k = 4m + 3 n = 2 4m+3 1 (2 4m+3 1) = 4(16) m (8(16) m 1) Since (16) m ends in 6 4(16) m ends in 4, 8(16) m ends in 8 8(16) m 1 ends in 7, 4(16) m (8(16) m 1) ends in 8. every even perfect number n ends in 6 or 8 4

1.3 Mersenne primes and amicable number Definition 1.3.1. The numbers of the form M n = 2 n 1, (n > 1) are called Mersenne numbers. If M n is prime it is called Mersenne prime number. Example 1.3.1. M 2 = 2 2 1 = 3 M 3 = 2 3 1 = 7 M 5 = 2 5 1 = 11 are Mersenne prime numbers. but M 4 = 2 4 1 = 15 M 11 = 2 11 1 = 2047 are Mersenne numbers not Mersenne prime. Remark 1.3.1. If n is prime it is not necessarily true that M n = 2 n 1 is a prime. Theorem 1.3.1. If p and q = 2p+1 are primes, then either q M p or q (M p +2), but not both. Proof. By Fermats theorem, we know that 2 q 1 1 0(mod q) (2 q 1 2 1)(2 q 1 2 + 1) = (2 p 1)(2 p + 1) 0(mod q) let M p = 2 p 1 M p + 2 = 2 p + 1 M p (M p + 2) 0(mod q) q M p or q (M p + 2) Now if q M p and q (M p + 2) q 2 (contradiction) Example 1.3.2. If p = 23 then q = 2p + 1 = 47 is prime whether 47 M 23 or not, or whether 2 23 1(mod 47) we have 2 23 = 2 3 (2 5 ) 4 2 3 ( 15) 4 (mod 47) but ( 15) 4 = (225) 2 ( 10) 2 6(mod 47) So 2 23 = 2 3 6 48 1(mod 47) 47 (2 23 1) = M 23 So M 23 is composite. The previous Theorem does not help us to test the primality of M 29, say 59 M 29 but 59 (M 29 + 2). 5

What condition on q will ensure that q M p? The answer is to be found in the following theorem Theorem 1.3.2. If q = 2n + 1 is prime, then (1) q M n, provided that q 1(mod 8) or q 7(mod 8). (2) q (M n + 2), provided that q 3(mod 8) or q 5(mod 8). Example 1.3.3. 1) Let n = 23 q = 47 since 47 7(mod 8) 47 M 23. 2)Let n = 29 since q = 59 and 59 3(mod 8) 59 (M 29 + 2). Corollary 1.3.1. If p and q = 2p + 1 are both odd primes, with p 3(mod 4), then q M p. Proof. An odd prime is of the form 4k + 1 or 4k + 3. If p = 4k + 3, then q = 8k + 7 and q 7(mod 8) q M p. In case p = 4k + 1, then q = 8k + 3 so q M p but q (M p + 2) (because q 3(mod 8). Example 1.3.4. All of the following p primes, p 3(mod 4) for which q = 2p + 1 is also prime p = 11, 23, 83, 131, 179, 181, 239, 251 q M p in this case M p is composite Mersene number. Theorem 1.3.3. If p is an odd prime, then any divisor of M p is of the form 2pk + 1. Theorem 1.3.4. If p is an odd prime, then any prime divisor q of M p is of the form q ±1(mod 8). Proof. Suppose that q = 2p + 1 is a prime divisor of M p if a = 2 p+1 2,then a 2 2 = 2 p+1 2 = 2M p 0(mod q) a 2 2(mod q) since p = q 1 2 (a 2 ) p = a q 1 2 p (mod q)...(1) since q is an odd integer gcd(a, q) = 1 and so a q 1 1(mod q) (from 1) 2 p 1(mod q) q (2 p 1) = M p. by theorem 1.3.2 provided that q 1(mod 8) or q 7(mod 8) q 1(mod 8) 6

Example 1.3.5. Consider M 17 = 2 17 1, p = 17 we will show that M 17 is a prime, consider the integers of the form 2kp + 1 = 34k+1 which are less than 362 < M 17, are 35, 69, 103, 137, 171, 205, 239, 273, 307, 341. Since the smallest nontrivial divisor of M 17 must be prime, we need only consider the primes among the foregoing ten numbers,namely, 103, 137, 239, 307. We show that 307 ±1(mod 8), so we delete it from the lest, and the remaining three primes are not divide M 17 so M 17 is prime. Example 1.3.6. If n is an odd perfect number, then n = p k 1 1 p 2 j 2 2 p 2 jr r the p i are distinct odd primes and p 1 k 1 1(mod 4). where Corollary 1.3.2. If n is an odd perfect number, then n is of the form n = p k m 2 where p is a prime p m, and p k 1(mod 4); in particular,n 1(mod 4) Definition 1.3.2. A positive integer n is said to be deficient number if σ(n) < 2n, and an abundent number if σ(n) > 2n. Example 1.3.7. Let n = 20 = 4 5 σ(20) = σ(2 2 )σ(5) = 23 1 52 1 2 1 5 1 σ(20) > 2(20) 42 > 40 so n is a bundent number. σ(4) = 1 + 2 + 4 = 7 < 2 4 so 4 is deficient number. Definition 1.3.3. Amicable numbers (friendly numbers): = 7 6 = 42 Amicable pair of numbers m and n are positive integers if each number is equal to the sum of all positive divisors of the other, not counting the number it self, that is σ(m) m = n and σ(n) n = m or σ(m) = m + n = σ(n). Example 1.3.8. m = 220 and n = 284 are amicable pair, because the sum of divisors of 220 is equal 1 + 2 + 4 + 5 + 10 + 11 + 2 + 55 + 110 = 284 and the sum of divisors of 284 is 1 + 2 + 4 + 71 + 142 = 220. Or σ(220) = 220 + 284 = σ(284) = 504. Remark 1.3.2. in 9th century the arabian mathematician Thabit ibn Qurra finds rules for amicable pairs: If p = 3 2 n 1 1, q = 3 2 n 1, and r = 9 2 2n 1 1 are all prime numbers, where n 2, then 2 n pq and 2 n r are an amicable pair of numbers. This rule produces amicable numbers for n = 2, 4 and 7, but for no other n 20000. 7

Proof. σ(2 n pq) = 2n+1 1 (p + 1)(q + 1) = 2 1 (2n+1 1)(3 2 n 1 )(3 2 n ) = (2 n+1 1)(9 2 2n 1 )...(1) And σ(2 n r) = (2 n+1 1)(r + 1) = (2 n+1 1)(9 2 2n 1 )...(2). So from (1) and (2) we have σ(2 n pq) = σ(2 n r), so the numbers 2 n pq and 2 n r are amicable pairs. 1.4 Fermat numbers Definition 1.4.1. A Fermat number is an integer of the form F n = 2 2n + 1, for n 0. If F n is primes it is said to be a Fermat prime. Example 1.4.1. F 0 = 3, F 1 = 5, F 2 = 17, F 3 = 257, F 4 = 65537 are all primes. But F 5 = 429496797 is composite number (discovered by Euler) and F 5 is divisible by 641. Theorem 1.4.1. The Fermat number F 5 is divisible by 641. Proof. Let a = 2 7, b = 5, so 1 + ab = 1 + 2 7 5 = 641. Since 1 + ab b 4 = 1 + (a b 3 )b = 1 + (128 125)b = 1 + 3b = 2 4. But this implies that F 5 = 2 25 + 1 = 2 32 + 1 = 2 4 (2 7 ) 4 + 1 = 2 4 a 4 + 1 = (1+ab b 4 )a 4 +1 = (1+ab)a 4 +(1 a 4 b 4 ) = (1+ab)a 4 +(1 a 2 b 2 )(1+a 2 b 2 ) = (1 + ab)a 4 + (1 ab)(1 + ab)(1 + a 2 b 2 ) = (1 + ab)[a 4 + (1 ab)(1 + a 2 b 2 ))] = 641[a 4 + (1 ab)(1 + a 2 b 2 ))], which gives 641 F 5, so F 5 is composite number. Theorem 1.4.2. For Fermat numbers F n and F m, where m > n 0, gcd(f m, F n ) = 1. Proof. Put d = gcd(f m, F n ). Since Fermat numbers are odd integers, d must be odd. If we set x = 2 2n and k = 2 m n, then F m 2 = (22n ) 2m n 1 = xk 1 F n 2 2n + 1 x + 1 = xk 1 x k 2 + 1 = t Z, hence F n F m 2. From d F n it follows that d (F m 2). But d F m = d 2 but d is an odd integer, and so d = 1 = d = 1 = gcd(f m, F n ). 8