Mersenne and Fermat Numbers

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

MATH 3240Q Introduction to Number Theory Homework 7

Practice Final Solutions

By Evan Chen OTIS, Internal Use

Practice Final Solutions

MATH342 Practice Exam

On the Multiplicative Order of a n Modulo n

MAS 4203 Number Theory. M. Yotov

Math 104B: Number Theory II (Winter 2012)

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Pythagorean triples and sums of squares

MATH 2710: NOTES FOR ANALYSIS

The Euler Phi Function

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

Number Theory Naoki Sato

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

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

t s (p). An Introduction

3 Properties of Dedekind domains

DIRICHLET S THEOREM ABOUT PRIMES IN ARITHMETIC PROGRESSIONS. Contents. 1. Dirichlet s theorem on arithmetic progressions

GAUSSIAN INTEGERS HUNG HO

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

6 Binary Quadratic forms

1 Integers and the Euclidean algorithm

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

Representing Integers as the Sum of Two Squares in the Ring Z n

Factorability in the ring Z[ 5]

Characteristics of Fibonacci-type Sequences

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

MATH 371 Class notes/outline September 24, 2013

On generalizing happy numbers to fractional base number systems

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Introductory Number Theory

Notes on Systems of Linear Congruences

Algebraic Number Theory

Elementary Analysis in Q p

QUADRATIC RECIPROCITY

HOMEWORK # 4 MARIA SIMBIRSKY SANDY ROGERS MATTHEW WELSH

Mobius Functions, Legendre Symbols, and Discriminants

Arithmetic Consequences of Jacobi s Two-Squares Theorem

A FEW EQUIVALENCES OF WALL-SUN-SUN PRIME CONJECTURE

QUADRATIC RECIPROCITY

MA3H1 Topics in Number Theory. Samir Siksek

MA3H1 TOPICS IN NUMBER THEORY PART III

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

M381 Number Theory 2004 Page 1

A review of the foundations of perfectoid spaces

Elementary Number Theory

LARGE GAPS BETWEEN CONSECUTIVE PRIME NUMBERS CONTAINING SQUARE-FREE NUMBERS AND PERFECT POWERS OF PRIME NUMBERS

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?

Math 5330 Spring Notes Prime Numbers

arxiv: v1 [math.nt] 4 Nov 2015

THE THEORY OF NUMBERS IN DEDEKIND RINGS

The Fibonacci Quarterly 44(2006), no.2, PRIMALITY TESTS FOR NUMBERS OF THE FORM k 2 m ± 1. Zhi-Hong Sun

.4. Congruences. We say that a is congruent to b modulo N i.e. a b mod N i N divides a b or equivalently i a%n = b%n. So a is congruent modulo N to an

Wilson s Theorem and Fermat s Little Theorem

On Arithmetic Functions

Jacobi symbols and application to primality

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?

Sets of Real Numbers

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

An Overview of Witt Vectors

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

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

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

DISCRIMINANTS IN TOWERS

QUADRATIC RESIDUES AND DIFFERENCE SETS

MATH 361: NUMBER THEORY FOURTH LECTURE

Some sophisticated congruences involving Fibonacci numbers

Primes - Problem Sheet 5 - Solutions

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

GRACEFUL NUMBERS. KIRAN R. BHUTANI and ALEXANDER B. LEVIN. Received 14 May 2001

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

Primes of the form ±a 2 ± qb 2

HENSEL S LEMMA KEITH CONRAD

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

Chapter 3 Basic Number Theory

The Arm Prime Factors Decomposition

Math 110 HW 3 solutions

Almost All Palindromes Are Composite

Homework 3, solutions

Maths 4 Number Theory Notes 2012 Chris Smyth, University of Edinburgh ed.ac.uk

CONGRUENCES MODULO 4 OF CALIBERS OF REAL QUADRATIC FIELDS. 1. Definitions and results

Quadratic Residues. Chapter Quadratic residues

Jonathan Sondow 209 West 97th Street, New York, New York

We collect some results that might be covered in a first course in algebraic number theory.

arxiv: v4 [math.nt] 11 Oct 2017

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

Chapter 3. Number Theory. Part of G12ALN. Contents

Elementary Proof That There are Infinitely Many Primes p such that p 1 is a Perfect Square (Landau's Fourth Problem)

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

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

Introduction to Arithmetic Geometry Fall 2013 Lecture #10 10/8/2013

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

March 4, :21 WSPC/INSTRUCTION FILE FLSpaper2011

Transcription:

NUMBER THEORY CHARLES LEYTEM Mersenne and Fermat Numbers CONTENTS 1. The Little Fermat theorem 2 2. Mersenne numbers 2 3. Fermat numbers 4 4. An IMO roblem 5 1

2 CHARLES LEYTEM 1. THE LITTLE FERMAT THEOREM We start by recalling the Little Fermat theorem and a useful roerty. Proosition 1.0.1. For any rime number and any ositive integer a, a a is divisible by, in other words a a (mod ). Proof. We use induction on a. The roerty is true for a = 1. If it holds for a, then ( ) (a + 1) = a j a + 1 a + 1 (mod ). j j=0 Corollary 1.0.2. If is a rime and a an integer such that gcd(a, ) = 1, then a 1 1 (mod ). Problem 1.0.3. The sum of some given integers is 1492. Can the sum of their seventh owers be equal to 1996 (to 1998)? Solution. Modulo 7 the sum Σ of the integers is equal to the sum Σ 7 of their seventh owers. As 1998 is not congruent to 1492 modulo 7, Σ 7 can t be equal to 1998. Suose the sum Σ doesn t contain terms which are larger than 3 in absolute value, i.e. it is of the form Σ = a 1 + b ( 1) + c 2 + d ( 2) = (a b) + (c d)2. Then Σ 7 = a 1 + b ( 1) + c 2 7 + d ( 2) 7 = (a b) + (c d)2 7. Solving (a b) + (c d)2 = 1492 (a b) + (c d)2 7 = 1996 we find a b = 1484 and c d = 4. Thus a ossible solution is Σ = 1 + 1 + + 1 + 2 + 2 + 2 + 2 with 1 occurring 1484 times. Proosition 1.0.4. Let a and be integers. If a m 1 (mod ) and a n 1 (mod ) then a (m,n) 1 (mod ). Proof. We may suose m > n. Write m = nq + r (0 r < n). Then 1 a m a nq+r (a n ) q a r a r. Reeat the rocedure using (n, r) instead of (m, n). Continuing this way we eventually end u with a (m,n) 1 (mod ). 2. MERSENNE NUMBERS In this section we roose some roblems related to numbers of the form 2 n 1. Problem 2.0.5. Show that for even n > 4 the number 2 n 1 is the roduct of at least three rime numbers, two of which at least are distinct. Solution. We can write n = 2k and 2 n 1 = (2 k 1)(2 k + 1). First note that (2 k 1) and (2 k + 1) cannot have common rime factors, as they differ by 2. Thus there are at least two distinct rime factors as n > 4. Among the three consecutive numbers (2 k 1), 2 k, (2 k +1) one is divisible by 3, and it must be the first one or the last one. Thus 2 n 1 has at least three rime factors as n > 4. Problem 2.0.6. Show that 2 n 1 cannot be a erfect (roer) ower of a rime.

NUMBER THEORY 3 Solution. Suose we can write 2 n 1 = k (k > 1, rime). Obviously is odd. Suose k is odd. Then we have 2 n = k + 1 = ( + 1)( k 1 k 2 + + 1) where the second factor contains k odd terms, and thus is odd, which is imossible. Thus k must be even. Write k = 2l. Now 2 n 1 = k 2 n 2 = 2l 1 Factoring out we get 2(2 n 1 1) = ( l 1)( l + 1). As is odd, the right hand side is divisible by 4 whereas the left hand side is only divisible by 2, a contradiction. Problem 2.0.7. Determine all rime numbers such that 2 1. Solution. Suose there exists such a rime number. Obviously must be odd. 2 1 2 1 (mod ). By Fermat 2 1 1 (mod ). By roosition 1.0.4, 2 ( 1,) 1 (mod ). As ( 1, n) = 1 we get 2 1 1 (mod ) = 1, a contradiction. Thus there are no such rimes. Problem 2.0.8. Determine all ositive integers n such that n 2 n 1. Solution. Obviously n = 1 is a solution. Suose n > 1. Denote the smallest rime in the rime decomosition of n. Obviously is odd. n 2 n 1 2 n 1 2 n 1 (mod ). By Fermat 2 1 1 (mod ). By roosition 1.0.4, 2 ( 1,n) 1 (mod ). But the rimes in the rime factorization of 1 are smaller than those in the factorization of n. Therefore ( 1, n) = 1 imlying 2 1 1 (mod ) = 1, a contradiction. Problem 2.0.9. Determine all ositive integers k > 1,n 1, n 2,..., n k such that n 1 2 n 2 1, n 2 2 n 3 1,..., n k 2 n 1 1. Solution. Obviously n 1 = n 2 = = n k = 1 is a solution for any k. Also if one n j equals 1 then all n i must be 1. Let us suose n i > 1 for all i. Denote the smallest rime in the rime decomositions of the n i (i = 1,..., k). Note is odd. Suose is a factor of n j : n j 2 n j+1 1 2 n j+1 1 2 n j+1 1 (mod ). By Fermat 2 1 1 (mod ). Therefore 2 ( 1,n j+1) 1 (mod ). But the rimes in the rime factorization of 1 are smaller than those in the factorization of n j+1. Therefore ( 1, n j+1 ) = 1 imlying 2 1 1 (mod ) = 1, a contradiction. Problem 2.0.10. Determine all rimes such that 2 1 1 a erfect square. Solution. Obviously > 2. We have the factorization 2 1 1 = (2 1 2 1)(2 1 2 + 1). (the Fermat quotient of with base 2) is Both factors are relatively rime as they are odd and differ by 2. As the rime divides one of them, the other one has to be a square for 2 1 1 to be a square. So deending on the case we have to solve the equation 2 x 1 = k 2 resectively 2 x + 1 = k 2 with k an odd integer. We consider the two cases searately.

4 CHARLES LEYTEM 2 x + 1 = k 2. This is equivalent to 2 x = k 2 1 2 x = (k 1)(k + 1). Thus k 1 = 2 i and k + 1 = 2 j (i, j integer), leading to 2 j 2 i = 2 2 i 1 (2 j i 1) = 1 with unique solution i = 1 and j = 2. We get x = 3 and finally = 7. We check that 2 1 1 = 9, a square. 2 x 1 = k 2. If x > 1 it is immediate that there is no solution, as 2 x 1 3 (mod 4) and k 2 1 (mod 4). So we assume x = 1 and get the solution k = 1 leading to = 3. Again we check that 2 1 1 = 1, a square. Problem 2.0.11. Determine all rimes such that 2 2 1 1. Solution. Oen roblem. Primes such that 2 2 1 1 are called Wieferich rimes. The only known ones are = 1093 and = 3511. 3. FERMAT NUMBERS In this section we roose some roblems related to numbers of the form 2 n + 1. Problem 3.0.12. Show that the number (2 4n+2 + 1)/5 is comosite for n > 1 integer. Solution. As 2 4n+2 = 4 2n+1 ( 1) 2n+1 1 (mod 5), we have 5 2 4n+2. We have the factorization 2 4n+2 + 1 = (2 2n+1 2 n+1 + 1)(2 2n+1 + 2 n+1 + 1) and therefore 5 must divide one of the factors. For the smallest factor we have 2 2n+1 2 n+1 + 1 = 2 n+1 (2 n 1) + 1 2 3 3 + 1 = 25 and it follows that (2 4n+2 + 1)/5 is comosite. Problem 3.0.13. Show that 2 n + 1 cannot be a erfect (roer) ower of a rime unless n = 3. Solution. Suose we can write 2 n + 1 = k for rime. Obviously is odd. As we have 2 n = k 1 = ( 1)( k 1 + k 2 + + 1) where the second factor contains k odd terms, k = 2l must be even. Then 2 n + 1 = 2l 2 n = 2l 1 = ( l 1)( l + 1) which is only ossible if l 1 = 2 and l + 1 = 4. Therefore l = 3 and = 3. Also 2 m = 2 4 yields m = 3. Therefore the unique solution is 2 3 + 1 = 3 2. Problem 3.0.14. Show that for even n > 6 the number 2 n 1 is the roduct of at least three distinct rime numbers. Solution. As in roblem 2.0.5 we write n = 2k, 2 n 1 = (2 k 1)(2 k + 1). We also recall that (2 k 1) and (2 k + 1) cannot have common rime factors. Thus if 2 n 1 has only two distinct rime factors we must have that each factor is a rime or a erfect ower of a rime. But this is imossible as 3 is a roer divisor of at least one of the factors, and by roblems 2.0.6 and 3.0.13 none of the factors can be a roer erfect ower of a rime. Problem 3.0.15. Show that that there is an infinity of ositive integers n such that n 2 n + 1. Solution. First solution: We consider the integers n = 3 k. We roceed by induction. If k = 1 then then n = 3 and 3 2 3 + 1 = 9. Suose the roerty is true for k, i.e. 2 3k + 1 is divisible by 3 k. As we have 2 3k+1 + 1 = (2 3k + 1)(2 2 3k 2 3k + 1)

we have to show that 2 2 3k 2 3k + 1 is divisible by 3. But NUMBER THEORY 5 2 2 3k 2 3k + 1 = 4 3k 8 3k 1 + 1 1 + 1 + 1 0 (mod 3) Second solution: We show that n 2 n + 1 2 n + 1 2 2n +1 + 1. As n 2 n + 1, we can write 2 n + 1 = kn with k odd. Therefore 2 n + 1 (2 n ) k + 1 = 2 nk + 1 = 2 2n +1 + 1. Problem 3.0.16. Find all rime numbers such that 2 + 1. Solution. The Fermat theorem imlies that 2 2. So we get 2 + 1 (2 2) = 3. Therefore = 3 is the only solution. Problem 3.0.17. Show that all ositive integers n > 1 such that n 2 n +1 are of the form n = 3 k m with k 0 and m rime to 3. Solution Obviously n is odd. Denote the smallest rime in the rime decomosition of n: n 2 n + 1 2 n + 1 2 n 1 (mod ) 2 2n 1 (mod ). By Fermat 2 1 1 (mod ). Therefore 2 ( 1,2n) 1 (mod ). But the rimes in the rime factorization of 1 are smaller than those in the factorization of n. Therefore ( 1, n) = 2 imlying 2 2 1 (mod ) = 3. Problem 3.0.18. Show that 2 3k + 1 is divisible by 3 k+1 and not by 3 k+2. Solution. We roceed by induction. Suose the roerty is true for k, i.e. 2 3k + 1 is exactly divisible by 3 k+1. As we have 2 3k+1 + 1 = (2 3k + 1)(2 32k 2 3k + 1) we have to show that 2 32k 2 3k + 1 is divisible by 3 and not by 9. As 2 2 3k 2 3k + 1 = 4 3k 8 3k 1 + 1 1 + 1 + 1 0 (mod 3) 2 2 3k 2 3k + 1 = 8 2 3k 1 8 3k 1 + 1 1 + 1 + 1 3 (mod 9) 2 32k 2 3k + 1 is divisible by 3 and not by 9. Now we are reared to solve: 4. AN IMO PROBLEM Problem 4.0.19. Find all ositive integers n such that 2n +1 n 2 is an integer. (IMO, 1990) Solution. In view of roblem 3.0.17 n = 3 k m with m odd rime to 3. Also 2 n + 1 = (2 3k + 1)(2 (m 1)3k 2 (m 2)3k + + 1). As the second factor is congruent to m modulo 3 it is not divisible by 3. Therefore by roblem 3.0.18, 2 n + 1 is divisible by exactly 3 k+1. But, as 2 n + 1 divisible by n 2 it is divisible by 3 2k imlying 2k k + 1 k = 1. Therefor n = 3m. Now let > 3 be a rime dividing n. n 2 n + 1 2 n + 1 2 n 1 (mod ) 2 2n 1 (mod ). By Fermat 2 1 1 (mod ). Therefore 2 ( 1,6m) 1 (mod ). But the rimes in the rime factorization of 1 are smaller than those in the factorization of m. Therefore ( 1, 6m) =

6 CHARLES LEYTEM 1, 2, 3, 6 imlying = 2, 3, 4, 7. This leaves as only ossibility = 7. But 2 n + 1 = 2 3m + 1 = 8 m + 1 1 + 1 2 (mod ). Finally n = 3 is the only solution. Problem 4.0.20. Show that all Fermat numbers are square-free. Solution. Oen roblem