MERSENNE PRIMES SARAH MEIKLEJOHN AND STEVEN J. MILLER. 4 if i = 0, s i =

Similar documents
8 Primes and Modular Arithmetic

Math 319 Problem Set #3 Solution 21 February 2002

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

Quotient Rings and Field Extensions

k, then n = p2α 1 1 pα k

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

Applications of Fermat s Little Theorem and Congruences

PYTHAGOREAN TRIPLES KEITH CONRAD

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Groups in Cryptography

MATH10040 Chapter 2: Prime and relatively prime numbers

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Homework until Test #2

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

The last three chapters introduced three major proof techniques: direct,

Winter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov

Computing exponents modulo a number: Repeated squaring

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Integer roots of quadratic and cubic polynomials with integer coefficients

SUM OF TWO SQUARES JAHNAVI BHASKAR

arxiv: v2 [math.ho] 4 Nov 2009

Solutions for Practice problems on proofs

Cyclotomic Extensions

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

PRIME FACTORS OF CONSECUTIVE INTEGERS

Stupid Divisibility Tricks

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Basic Proof Techniques

Lecture 13 - Basic Number Theory.

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

Handout #1: Mathematical Reasoning

mod 10 = mod 10 = 49 mod 10 = 9.

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra:

minimal polyonomial Example

SECTION 10-2 Mathematical Induction

Zeros of a Polynomial Function

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = = (2-2) = = 5. x = 7-5. x + 0 = 20.

Today s Topics. Primes & Greatest Common Divisors

H/wk 13, Solutions to selected problems

Indiana State Core Curriculum Standards updated 2009 Algebra I

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

Continued Fractions and the Euclidean Algorithm

On the largest prime factor of x 2 1

ON GALOIS REALIZATIONS OF THE 2-COVERABLE SYMMETRIC AND ALTERNATING GROUPS

8 Divisibility and prime numbers

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

MATH 289 PROBLEM SET 4: NUMBER THEORY

MATH Fundamental Mathematics IV

(a) Write each of p and q as a polynomial in x with coefficients in Z[y, z]. deg(p) = 7 deg(q) = 9

2 When is a 2-Digit Number the Sum of the Squares of its Digits?

Some practice problems for midterm 2

Chapter 3. if 2 a i then location: = i. Page 40

Equations, Inequalities & Partial Fractions

26 Integers: Multiplication, Division, and Order

3.1. RATIONAL EXPRESSIONS

An Overview of Integer Factoring Algorithms. The Problem

Elementary Number Theory

3. Mathematical Induction

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

Mathematical Induction

Grade 7/8 Math Circles Fall 2012 Factors and Primes

Lecture 3: Finding integer solutions to systems of linear equations

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Factorization Algorithms for Polynomials over Finite Fields

MOP 2007 Black Group Integer Polynomials Yufei Zhao. Integer Polynomials. June 29, 2007 Yufei Zhao

Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures

Introduction to Finite Fields (cont.)

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

6.2 Permutations continued

FACTORING IN QUADRATIC FIELDS. 1. Introduction. This is called a quadratic field and it has degree 2 over Q. Similarly, set

Math 4310 Handout - Quotient Vector Spaces

Cartesian Products and Relations

THE FUNDAMENTAL THEOREM OF ALGEBRA VIA PROPER MAPS

A Study on the Necessary Conditions for Odd Perfect Numbers

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0

POLYNOMIAL FUNCTIONS

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

Factoring Polynomials

The Fundamental Theorem of Arithmetic

Category 3 Number Theory Meet #1, October, 2000

So let us begin our quest to find the holy grail of real analysis.

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Collinear Points in Permutations

Algebra 1 Course Title

How To Prove The Dirichlet Unit Theorem

r + s = i + j (q + t)n; 2 rs = ij (qj + ti)n + qtn.

Prime numbers and prime polynomials. Paul Pollack Dartmouth College

7. Some irreducible polynomials

SMT 2014 Algebra Test Solutions February 15, 2014

THE SIGN OF A PERMUTATION

Transcription:

MERSENNE PRIMES SARAH MEIKLEJOHN AND STEVEN J. MILLER ABSTRACT. A Mersenne prime is a prime that can be written as 2 p 1 for some prime p. The first few Mersenne primes are 3, 7 and 31 (corresponding respectively to p = 2, 3 and 5). We give some standard conditions on p which ensure that 2 p 1 is prime, and discuss an application to even perfect numbers. The proof requires us to study the field Z/qZ[ 3], where q 3 is a prime. 1. INTRODUCTION If n 2 and a n 1 is prime, we call a n 1 a Mersenne prime. For which integers a can a n 1 be prime? We take n 2 as if n = 1 then a is just one more than a prime. We know, using the geometric series, that a n 1 = (a 1)(a n 1 + a n 2 + + a + 1). (1) So, a 1 a n 1 and therefore a n 1 will be composite unless a 1 = 1, or equivalently unless a = 2. Thus it suffices to investigate numbers of the form 2 n 1. Further, we need only examine the case of n prime. For assume n is composite, say n = mk. Then 2 n = 2 mk = (2 m ) k, and 2 n 1 = (2 m ) k 1 = (2 m 1)((2 m ) k 1 + (2 m ) k 2 + + (2 m ) 2 + 2 m + 1). (2) So if n = mk, 2 n 1 always has a factor 2 m 1, and therefore is prime only when 2 m 1 = 1. This immediately reduces to 2 m = 2, or simply m = 1. Thus, if n is composite, 2 n 1 is composite. Now we know we are only interested in numbers of the form 2 p 1; if this number is prime then we call it a Mersenne prime. As it turns out, not every number of the form 2 p 1 is prime. For example, 2 11 1 = 2047, which is 23 89. 2. STATEMENT OF THE LUCAS-LEHMER TEST How do we determine which p yield M p = 2 p 1 prime? An answer is the Lucas- Lehmer test, which states that M p is prime if and only if M p s p 2, where we recursively define { 4 if i = 0, s i = (3) s 2 i 1 2 if i 0. We prove one direction of this statement, namely that if M p s p 2, then M p is prime. We start by defining u = 2 3 and v = 2 + 3. Some immediate properties are u + v = 4 = s 0 ; uv = 1, implying that (uv) x = u x v x = 1 (so uv to any power equals one). Date: December 4, 2005. 1

2 SARAH MEIKLEJOHN AND STEVEN J. MILLER We will show that s n = u t(n) + v t(n), where we have defined t(s) = 2 s. We shall see later that this is a useful way to write s n. Two properties of t(s) that we need are t(0) = 1; t(s + 1) = 2 s+1 = 2t(s). We prove by induction that s n = u t(n) + v t(n). Base Case: Clearly the base case is true, as we have already seen that s 0 = u 1 +v 1 = 4. Inductive Case: Assuming s n = u t(n) +v t(n), we must show s n+1 = u t(n+1) +v t(n+1) = s 2 n 2. To do this, we look at s n+1 = s 2 n 2 = (u t(n) + v t(n) ) 2 2 = u 2t(n) + v 2t(n) + 2u t(n) v t(n) 2. (4) But we already know that u t(n) v t(n) = (uv) t(n) = 1 and 2t(n) = t(n + 1), so we have which shows that s n+1 = u t(n+1) + v t(n+1). s n+1 = u t(n+1) + v t(n+1) + 2 2 = u t(n+1) + v t(n+1), (5) 3. PROOF OF THE LUCAS-LEHMER TEST We prove one direction of the Lucas-Lehmer test. Specifically, we prove by contradiction that if M p s p 2 then M p is prime. 3.1. Preliminaries. We assume that s p 2 is divisible by M p, but that M p is not prime. By direct calculation we may assume that p > 5. There is therefore an integer R > 1 such that s p 2 = u t(p 2) + v t(p 2) = RM p. (6) If we multiply both sides by u t(p 2), we obtain u t(p 2) (u t(p 2) + v t(p 2) ) = u t(p 1) + 1 = RM p u t(p 2). (7) Subtracting one from each side gives u t(p 1) = RM p u t(p 2) 1. (8) We square both sides. As (u t(p 1) ) 2 = u t(p), we obtain that u t(p) = (RM p u t(p 2) 1) 2. (9) Note u t(p) is not necessarily an integer. Let us choose some prime factor q > 1 of M p such that q M p, or equivalently so that q 2 M p. Does such a q exist? There is no problem with assuming q > 1, but what about q M p? If M p = bc then either b or c is at most M p, for if both were larger then the product would exceed M p. Note we are not claiming that q < M p, just that q M p. We use below the fact that q 3; we need q 3 so that 3 will have a multiplicative inverse in Z/qZ. We are assuming p > 5 (as the other cases can be handled by direct

MERSENNE PRIMES 3 computation). Thus we may write p as 4n + a, where n is an integer and a {1, 3}. Thus M p = 2 p 1 = 2 4n+a 1 = 2 4n 2 a 1 = (2 4 ) n 2 a 1 2 a 1 mod 3, (10) since 2 4 = 16 1 mod 3. If a = 1 then 2 4n+a 1 1 mod 3, while if a = 3 then 2 4n+a 1 1 mod 3. Thus 3 does not divide M p, and we may assume that q 3 below. The proof is completed by analyzing the order of u t(p) in the field Z/qZ[ 3], where q is a prime dividing M p. There are two different cases, depending on whether or not 3 is a square modulo q. Note that if 3 is a square modulo q, then this field is actually just Z/qZ. 3.2. 3 is not a square modulo q. We finish the proof in the case that 3 is not a square modulo q. This means that t 2 3 does not have a root in Z/qZ, or equivalently that t 2 3 is irreducible in Z/qZ. Proof. Consider the ring Z/qZ[ 3] = { a + b 3 : a, b Z/qZ } ; note there are q 2 elements, and q 2 1 non-zero elements. As q 3 is prime, Z/qZ is a field. Further, Z/qZ[ 3] is a field as 3 is invertible in Z/qZ[ 3]; the inverse is b 3, where b Z/qZ is such that 3b 1 mod q. More generally, let p(t) = t 2 3 Z/qZ[t] be the irreducible monic polynomial for 3 over Z/qZ. Given any a + b 3 Z/qZ[ 3] with a and b not both zero, consider the linear polynomial g(t) = a + bt. Then p(t) and g(t) are relatively prime (since p(t) is monic and irreducible). Thus there are polynomials such that h 1 (t)g(t) + h 2 (t)p(t) = 1; letting t = 3 yields h 1 ( 3)g( 3) = 1, so we have found an inverse to g( 3) = a + b 3, proving Z/qZ[ 3] is a field. We may study the subset of elements with multiplicative inverses, ( Z/qZ[ 3] ). The order of this multiplicative group is q 2 1; thus by Lagrange s theorem every element x Z/qZ[ 3] satisfies x q2 1 = 1; note that here by equals 1 we mean with respect to the multiplication operation of Z/qZ[ 3] (which includes multiplication modulo q and 3 3 = 3). From (7), we see that As q M p, M p 0 mod q. Therefore Similarly, looking at (9), we see that which implies that u t(p 1) RM p u t(p 2) 1 mod q. (11) u t(p 1) 1 mod q. (12) u t(p) (RM p u t(p 2) 1) 2 mod q, (13) u t(p) (0 1) 2 1 mod q. (14)

4 SARAH MEIKLEJOHN AND STEVEN J. MILLER The order of an element g in our multiplicative group ( Z/qZ[ 3] ) is the smallest positive k such that g k = 1; we often denote this by ord(g). By Lagrange s theorem, k q 2 1. Further, by (14) we know that ord(u) t(p). We now show that ord(u) is exactly t(p). From (14) we see that ord(u) t(p). As t(s) = 2 s, if ord(u) t(p) then ord(u) t(p 1). But if ord(u) divided t(p 1) then u t(p 1) 1 mod q, (15) which contradicts (12). Thus ord(u) = t(p) = 2 p. However, since the order of any element is at most the order of the group, we have ord(u) = 2 p q 2 1 < M p = 2 p 1, (16) where the second inequality follows from q 2 M p. We thus obtain the contradiction which proves that M p is prime. 2 p < 2 p 1, (17) 3.3. 3 is a square modulo q. We finish the proof in the case that 3 is a square modulo q. This means that t 2 3 has a root in Z/qZ, or equivalently that t 2 3 factors into two linear terms in Z/qZ. For example, if q = 13 then t 2 3 (t 4)(t 9) mod q. Proof. We now assume that 3 is a square modulo q; for definiteness, let b 2 = 3. In 3.1 we showed that u t(p 1) = RM p u t(p 2) 1 (18) and u t(p) = (RM p u t(p 2) 1) 2. (19) Note u t(n) is not necessarily an integer. We may regard these equations modulo q. Doing so, we replace 3 with b. Reducing these equations modulo q yield and u t(p 1) 1 mod q (20) u t(p) 1 mod q. (21) Arguing as in 3.2, ord(u) = 2 p ; the only difference is that now there are q 1 non-zero elements in our field Z/qZ, and not q 2 1. We therefore have and this contradiction completes the proof. ord(u) = 2 p q 1 M p = 2 p 1, (22) 4. MERSENNE PRIMES AND PERFECT NUMBERS Another interesting fact about Mersenne primes is their correspondence with perfect numbers. Perfect numbers are integers whose proper divisors (all divisors except the number itself) sum to the number. For example, 6 = 1 + 2 + 3 and 28 = 1 + 2 + 4 + 7 + 14. There is a one-to-one correspondence between even perfect numbers and Mersenne primes. While it can be shown that every even perfect number is of the form (2 p 1) 2 p 1, where 2 p 1 is a Mersenne prime, we content ourselves with showing that any number of the form (2 p 1) 2 p 1 is perfect when 2 p 1 is a Mersenne prime.

MERSENNE PRIMES 5 Let q = 2 p 1 be a Mersenne prime; we show that q 2 p 1 is perfect. We know that the proper divisors break up into two disjoint sets: So, using the geometric formula {1, 2, 4,..., 2 p 1 } {q, 2q, 4q,..., 2 p 2 q}. (23) 1 + x + x 2 + + x n 1 = xn 1 x 1, (24) we see that the first set sums to 1 + 2 + 4 + + 2 p 1 = 2p 1 2 1 = 2p 1 = q, (25) and the second set sums to ( ) 2 q+2q+4q+ +2 p 2 q = q(1+2+4+ +2 p 2 1 ) = q = q(2 p 1 1). 2 1 (26) Thus the sum of the proper divisors is proving that (2 p 1) 2 p 1 is perfect. q + q(2 p 1 1) = q + 2 p 1 q q = 2 p 1 q, (27) E-mail address: sjmiller@math.brown.edu DEPARTMENT OF MATHEMATICS, BROWN UNIVERSITY, PROVIDENCE, RI 02912