Sundaram's Sieve. by Julian Havil. Sundaram's Sieve

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

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

8 Primes and Modular Arithmetic

Shi Feng Sheng Danny Wong

What is proof? Lesson 1

Grade 7/8 Math Circles. Mathematical Thinking

Junior Villafana. Math 301. Dr. Meredith. Odd Perfect Numbers

Direct Proof and Counterexample I:Introduction

Unit 3: Definitions, Theorems and Proofs

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

Making the grade. by Chris Sangwin. Making the grade

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

6: Polynomials and Polynomial Functions

The Fibonacci Sequence

1 Modular Arithmetic Grade Level/Prerequisites: Time: Materials: Preparation: Objectives: Navajo Nation Math Circle Connection

#26: Number Theory, Part I: Divisibility

Elementary Number Theory

8th Grade The Number System and Mathematical Operations Part

A proof has to be rigorously checked before it is published, after which other mathematicians can use it to further develop the subject.

Cool Results on Primes

Making the grade: Part II

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

1 Continued Fractions

THE MATHEMATICS OF EULER. Introduction: The Master of Us All. (Dunham, Euler the Master xv). This quote by twentieth-century mathematician André Weil

8th Grade. Slide 1 / 157. Slide 2 / 157. Slide 3 / 157. The Number System and Mathematical Operations Part 2. Table of Contents

CHAPTER 1 NUMBER SYSTEMS. 1.1 Introduction

How important is this hypothesis?

8th Grade. The Number System and Mathematical Operations Part 2.

5.1. EXAMPLE 1 Decide whether the first number listed is divisible by the second. (a) 45; 9

Eureka Math. Algebra II Module 1 Student File_A. Student Workbook. This file contains Alg II-M1 Classwork Alg II-M1 Problem Sets

35 Chapter CHAPTER 4: Mathematical Proof

Chapter 12: Ruler and compass constructions

Free Pre-Algebra Lesson 9 page 1

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

Pierre de Fermat ( )

Introduction: Pythagorean Triplets

Knot Just Another Math Article

March 19 - Solving Linear Systems

Arithmetic, Algebra, Number Theory

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Infinity. The infinite! No other question has ever moved so profoundly the spirit of man. David Hilbert

What do we actually know about prime numbers distribution?

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

Intermediate Math Circles March 6, 2013 Number Theory I

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Unit 1. Number Theory

8th Grade The Number System and Mathematical Operations Part

Prime Numbers. Prime Numbers. Ramesh Sreekantan ISI, Bangalore. December 1, 2014

AQA Level 2 Further mathematics Further algebra. Section 4: Proof and sequences

NUMBERS It s the numbers that count

Infinity and Infinite Series

Math 7 Notes Unit Two: Integers

All About Numbers Definitions and Properties

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 1. REVIEW: NUMBERS

Grades 7 & 8, Math Circles 10/11/12 October, Series & Polygonal Numbers

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

Big doings with small g a p s

from Euclid to Einstein

Number Theory. Jason Filippou UMCP. ason Filippou UMCP)Number Theory History & Definitions / 1

What can you prove by induction?

Heuristics for Prime Statistics Brown Univ. Feb. 11, K. Conrad, UConn

Week 2: Sequences and Series

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information

As the title suggests, we tackle three famous theorems in this chapter. 4.1 The Fundamental Theorem of Arithmetic

Sequences and Series

1/19 2/25 3/8 4/23 5/24 6/11 Total/110 % Please do not write in the spaces above.

Egyptian Fractions: Part I

LECTURE 1: DIVISIBILITY. 1. Introduction Number theory concerns itself with studying the multiplicative and additive structure of the natural numbers

MITOCW MITRES18_005S10_DiffEqnsGrowth_300k_512kb-mp4

USING CAS TECHNOLOGY IN A COURSE DESIGNED FOR PRESERVICE TEACHERS. Jay L. Schiffman. Rowan University. 201 Mullica Hill Road. Glassboro, NJ

The poetry of mathematics

Lesson 5b Solving Quadratic Equations

Trinity Christian School Curriculum Guide

What this shows is that an a + b by c + d rectangle can be partitioned into four rectangular regions with areas ac, bc, ad and bd, thus proving that

Solving Linear Equations (in one variable)

Roberto s Notes on Linear Algebra Chapter 11: Vector spaces Section 1. Vector space axioms

Teacher's Guide for ODYSSEY: July/August 2011: Rage or Reason?

MATHE 4800C FOUNDATIONS OF ALGEBRA AND GEOMETRY CLASS NOTES FALL 2011

Mathematics Without Calculations It s a Beautiful Thing!

Egyptian Fractions: Part I

Square-Triangular Numbers

PRIME NUMBERS YANKI LEKILI

5.2. Perfect Numbers Divisors of a natural number were covered in Section 5.1.

Primes, Divisibility, and Factoring

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities)

Pell s Equation Claire Larkin

C.T.Chong National University of Singapore

Chapter 17. Proof by Contradiction The method

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

Greece In 700 BC, Greece consisted of a collection of independent city-states covering a large area including modern day Greece, Turkey, and a multitu

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

How big is the Milky Way? Introduction. by Toby O'Neil. How big is the Milky Way? about Plus support Plus subscribe to Plus terms of use

Rubbing Shoulders With Newton: A New Look at a Fundamental Constant of Nature

LESSON #1: VARIABLES, TERMS, AND EXPRESSIONS COMMON CORE ALGEBRA II

SUMS OF SQUARES WUSHI GOLDRING

AN ALGEBRA PRIMER WITH A VIEW TOWARD CURVES OVER FINITE FIELDS

Beautiful Mathematics

Transcription:

1997 2009, Millennium Mathematics Project, University of Cambridge. Permission is granted to print and copy this page on paper for non commercial use. For other uses, including electronic redistribution, please contact us. March 2009 Features Sundaram's Sieve by Julian Havil The primes are the atoms among numbers. But how can we find them all? The prime numbers so simple, yet so mysterious. Primes are those numbers that are divisible only by themselves and the number 1. They are the atoms amongst the integers because every whole number can be written as a product of a unique set of primes. We have known since the time of Euclid that there are infinitely many primes there is no largest prime but there is no general formula that generates all of them. Their Sundaram's Sieve 1

distribution among the other numbers is still a mystery and motivates some of the biggest open questions in mathematics (see the Plus articles A whirlpool of numbers and Mathematical mysteries: the Goldbach conjecture). As the eighteenth century mathematical genius Leonhard Euler put it, "Mathematicians have tried in vain to this day to discover some order in the sequence of prime numbers, and we have reason to believe that it is a mystery into which the mind will never penetrate." However, all is not lost: we do have algorithms that can find all the primes up to a given number. In this article we'll look at an example of such an algorithm, in which the primes pop out of a very simple, and highly regular, structure as if by magic. It's called the sieve of Sundaram, after an obscure East Indian mathematician by the name of S.P. Sundaram, who discovered it in the 1930s. Sundaram's algorithm is not a real sieve, of course, but a clever way of spotting numbers that are not prime, thus "sieving out" those that are. Sundaram's sieve is based on an array of numbers formed from arithmetic progressions, in other words, sequences of numbers in which successive numbers are a given fixed distance apart. We start with the infinite sequence in which successive numbers are exactly three steps apart, and which starts with the number 4: 4, 7, 10, 13, 16, 19, 22, 25,... Next up is the sequence starting with the number 7 and with successive numbers exactly 5 steps apart: 7, 12, 17, 22, 27, 32, 37, 42,... Now consider the sequence starting with the number 10 and with a difference of 7 between successive numbers: 10, 17, 24, 31, 38, 45, 52, 59,... You can see the pattern emerging: the starting point of each sequence is three steps on from that of the previous one, and the distance between successive numbers is the distance of the previous sequence plus 2. Writing the sequences beneath each other, we get the following doubly infinite array: 4 7 10 13 16 19 22 25... 7 12 17 22 27 32 37 42... 10 17 24 31 38 45 52 59... 13 22 31 40 49 58 67 76... 16 27 38 49 60 71 82 93...................... The array exhibits a lot of structure: the first row is equal to the first column, each row is an arithmetic progression, and the differences between entries in two consecutive rows form the sequence 3, 5, 7, 9, 11, 13, 15, 17,... Sundaram's Sieve 2

which is itself an arithmetic progression. Now pick any number in this array, double it, add 1, and ask yourself if the resulting number is a prime. Repeat this a few times and you'll find that your answer, no matter which number from the array you pick, is always "no". So what about the numbers not in the array, for example 5, 6, 8, etc? A few calculations should convince you that for a number N not in the array, the number 2N+1 is prime. That is, the first set of calculations suggests that And the second set of calculations suggests that We can roll the two statements into one as follows: If N lies in the array, then 2N+1 is not prime. If N does not lie in the array, then 2N+1 is prime. 2N+1 is prime, if and only if N does not lie in the array. Euclid of Alexandria, ca 325 BC 265 BC. He proved that there are infinitely many primes. If this statement is indeed true for all numbers N, then it gives us a way of deriving the sequence of primes, with all its well known irregularity, from an array with a high degree of mathematical structure, and the simplest structure as well: that of arithmetic progressions. Quite an amazing result! But can we be sure that the statement is true for all N? We can indeed, because it is possible to prove it in its full generality. But rather than giving you the proof to read off the page, we challenge you to come up with your own version. It doesn't require any mathematical knowledge beyond a familiarity with multiplication and division, and a tiny bit of algebra. If you get stuck, the three steps below guide you through the process, and there are hints too, in case you need them. Step 1 Step 2 Sundaram's Sieve 3

Step 3 Conclusion If you've found your way through our three steps, or have found your own version of the proof, then you have shown that N lies in the array if and only if 2N+1 is not prime. This proves that Sundaram's sieve works: to find the kth prime, simply find the (k 1)st number not in the array, double it, and add 1. (It's the (k 1)st missing number, because the array doesn't generate the first prime, which is 2.) Of course, there are other methods for "sieving out" primes, including the famous sieve of Eratosthenes (see the Plus article Goldbach revisited) and the lesser known visual sieve (see the Plus article Catching primes). These methods are altogether different, although their workings are equally mysterious and the mathematics involved is similarly elementary. About the author Julian Havil is a prematurely retired mathematics teacher who for 33 years taught the subject at Winchester College. He spends his retirement as people should, enjoying the freedom it brings and trying to make good use of the time gifted to him: writing books and articles, giving talks, and travelling both for teaching and for leisure. Havil's books Impossible?, Nonplussed!, and Gamma: Exploring Euler's Constant, have all been reviewed in Plus. Havil's latest book has the working title The Irrationals. It will give an historical account of their discovery and development throughout the centuries, spanning ancient Greece to 19th century Europe. It will explore the importance of these numbers, as well as many significant results associated with them. The book will be aimed at good sixth form students and above, and will be published by Princeton University Press. Conclusion 4

Plus is part of the family of activities in the Millennium Mathematics Project, which also includes the NRICH and MOTIVATE sites. Conclusion 5