A Fibonacci-like sequence of composite numbers

Similar documents
Math 319 Problem Set #3 Solution 21 February 2002

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

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

8 Primes and Modular Arithmetic

PRIME FACTORS OF CONSECUTIVE INTEGERS

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

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

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

MATH10040 Chapter 2: Prime and relatively prime numbers

Today s Topics. Primes & Greatest Common Divisors

Homework until Test #2

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

Lecture 13 - Basic Number Theory.

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

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

Notes on Factoring. MA 206 Kurt Bryan

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

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

MACM 101 Discrete Mathematics I

Quotient Rings and Field Extensions

15 Prime and Composite Numbers

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

8 Divisibility and prime numbers

Applications of Fermat s Little Theorem and Congruences

Discrete Mathematics, Chapter 4: Number Theory and Cryptography


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

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Handout #1: Mathematical Reasoning

Lectures on Number Theory. Lars-Åke Lindahl

SUM OF TWO SQUARES JAHNAVI BHASKAR

Math Workshop October 2010 Fractions and Repeating Decimals

On the largest prime factor of x 2 1

Some practice problems for midterm 2

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

3 Some Integer Functions

Settling a Question about Pythagorean Triples

FACTORING LARGE NUMBERS, A GREAT WAY TO SPEND A BIRTHDAY

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

Factoring & Primality

On Generalized Fermat Numbers 3 2n +1

Stupid Divisibility Tricks

Patterns in Pascal s Triangle

Math 55: Discrete Mathematics

Fibonacci Numbers and Greatest Common Divisors. The Finonacci numbers are the numbers in the sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Elementary Number Theory


Mathematical Induction

The Fundamental Theorem of Arithmetic

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

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples

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.

The Chinese Remainder Theorem

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

3. Mathematical Induction

A Study on the Necessary Conditions for Odd Perfect Numbers

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

CONTRIBUTIONS TO ZERO SUM PROBLEMS

4.5 Finite Mathematical Systems

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

FACTORING. n = fall in the arithmetic sequence

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

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

The Euclidean Algorithm

SOLUTIONS FOR PROBLEM SET 2

Lecture 3: Finding integer solutions to systems of linear equations

Session 6 Number Theory

Groups in Cryptography

Computing exponents modulo a number: Repeated squaring

PYTHAGOREAN TRIPLES KEITH CONRAD

of Nebraska - Lincoln

Handout NUMBER THEORY

Note on some explicit formulae for twin prime counting function

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.

Just the Factors, Ma am

Congruent Number Problem

V Quantitative Reasoning: Computers, Number Theory and Cryptography

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

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

The positive minimum degree game on sparse graphs

Tests for Divisibility, Theorems for Divisibility, the Prime Factor Test

6.1 The Greatest Common Factor; Factoring by Grouping

On the number-theoretic functions ν(n) and Ω(n)

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

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

Study of algorithms for factoring integers and computing discrete logarithms

Section IV.1: Recursive Algorithms and Recursion Trees

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

Overview of Number Theory Basics. Divisibility

Factoring Whole Numbers

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

Cartesian Products and Relations

Introduction. Appendix D Mathematical Induction D1

DIVISIBILITY AND GREATEST COMMON DIVISORS


Computer and Network Security

Transcription:

A Fibonacci-like sequence of composite numbers John W. Nicol University of Illinois, Urbana, IL nicol@alumni.cs.cmu.edu Submitted: June 17, 1998; Submitted in revised form: October 12, 1999; Accepted: November 6, 1999. Abstract In 1964, Ronald Graham proved that there exist relatively prime natural numbers a and b such that the sequence {A n } defined by A n = A n 1 + A n 2 (n 2; A 0 = a, A 1 = b) contains no prime numbers, and constructed a 34-digit pair satisfying this condition. In 1990, Donald Knuth found a 17-digit pair satisfying the same conditions. That same year, noting an improvement to Knuth s computation, Herbert Wilf found a yet smaller 17-digit pair. Here we improve Graham s construction and generalize Wilf s note, and show that the 12-digit pair also defines such a sequence. (a, b) = (407389224418, 76343678551) Mathematical Reviews Subject Numbers: 11B39, 11N99. 1 Introduction Ronald Graham [2] proved that there exist relatively prime natural numbers a and b such that the sequence {A n } defined by A n = A n 1 + A n 2 (n 2; A 0 = a, A 1 = b) 1

the electronic journal of combinatorics 6 (1999), #R44 2 contains no prime numbers. Graham s pair (a, b) was (331635635998274737472200656430763, 1510028911088401971189590305498785). Donald Knuth [4] found the smaller pair (a, b) = (62638280004239857, 49463435743205655). Herbert Wilf [8] noted that Knuth s computation could be improved and so found the pair (a, b) = (20615674205555510, 3794765361567513). Here we show that Wilf actually generalized the system of congruences given by Graham. By further generalizing the system, improving Graham s construction, and applying Knuth s method to the cases that are generated, we show that the pair (a, b) = (407389224418, 76343678551) also defines such a sequence. Graham constructed the following 18 triples of numbers (p k,m k,r k ) such that 1. p k is prime 2. p k F n n m k (F n is the Fibonacci number.) 3. The congruences x r k (mod m k ) cover the integers (i.e., for every number n, there exists a k, 1 k 18 such that n r k (mod m k )) (3, 4, 1) (2, 3, 2) (5, 5, 1) (7, 8, 3) (17, 9, 4) (11, 10, 2) (47, 16, 7) (19, 18, 10) (61, 15, 3) (2207, 32, 15) (53, 27, 16) (31, 30, 24) (1087, 64, 31) (109, 27, 7) (41, 20, 10) (4481, 64, 63) (5779, 54, 52) (2521, 60, 0) Note that the first column covers all n 1 (mod 2), the second column covers all n 2 (mod 3) and n 4 (mod6),andthethirdcolumncoversalln 0 (mod 6), which clearly covers all n. Graham then constructed a and b such that 4. p k A n n r k (mod m k ) thereby assuring that for all n, A n was composite. Knuth then minimized the a

the electronic journal of combinatorics 6 (1999), #R44 3 and b satisfying the last condition. Wilf, armed with the observation that if a<b, then the pair (b a, a) forms a smaller sequence, took one of the non-minimal pairs found by Knuth and projected it backwards. Does this mean Knuth had not found the minimal solution? Actually, he had, but he found the minimal solution given the triples (p k,m k,r k ). Wilf s note amounts to the observation that adding the number i to every r k creates another covering of the integers. Wilf found the minimal pair given the triples (p k,m k,(r k + 4)), by projecting backwards four steps. In this paper, we generate all possible choices for the r k (thus finding all possible coverings of the integers given the m k ) and minimize the a s and b s constructed by Knuth s method. Thus the minimum values of a and b are determined for the pairs (p k,m k ). 2 Proof of Regularity Before minimizing the r k, we wish to strengthen condition (3) to be (3 ). The congruences x r k (mod m k )arearegular covering (also called an irredundant covering) [7, 3] of the integers. (A regular covering is a covering of the integers that has no unnecessary congruence relations. Thus a covering {(m k,r k )}is regular if there does not exist an i such that {(m k,r k ):k i}covers the integers.) For if this is not the case, then we are forcing a and b to satisfy an extra triple, and thus are perhaps not finding minimum values for a and b. Now let us verify that the above pairs (m k,r k ) form a regular covering. Assume not (i.e., assume at least one pair (m l,r l ) is not required and can be removed). Take d, e, f all of the same parity and in different residue classes modulo 3, and c of the opposite parity. Let us first assume that a pair (m l,r l )canbe removed from the first column. Then, by inspection, for some c 1 and c 2 where c 1 and c 2 are of opposite parity, the first column does not cover the integers n c 1 and c 2 (mod 64). Thus, the second and third columns must cover these. But note that the other even m k (18,54,10,20,30,60) can only contribute to covering either the integers n c 1 or n c 2 (mod 64), since c 1 and c 2 have opposite parity. Thus, at most three of the even m k contribute to covering one of these, let us say c 1. Note that for the m k abovetobeabletocovertheintegersn c 1 (mod 64), then they divided by their greatest common divisor with 64 must cover all of the integers.

the electronic journal of combinatorics 6 (1999), #R44 4 Thus, the moduli (3,9,27,27,5,15) and at most three of (9,27,5,5,15,15) should suffice to cover the integers, which by inspection is clearly not the case. So no pairs can be removed from the first column. Note also that the first column is an exact covering of the integers n c (mod 2) (i.e., if n c (mod 2), then n is not covered by the first column). Let us now assume that a pair (m l,r l ) can be removed from the second column. This means the second columns does not cover the integers n d and e (mod 6). Then, by inspection, the first and second columns do not cover the integers n d 1 (mod 18) and n d 2 (mod 54), where d 1 d 2 (mod 3), but d 1 d 2 c (mod 2). Again, this implies that the m k not divisible by 3 plus at most one of the m k divisible by 3 in the third column will cover the integers n d 2 (mod 54). Thus one of the moduli (5,10,20) and one of the moduli (15,30,60) will cover the integers n d 2 (mod 54), which is clearly false. So the second column must cover the integers n d and e (mod 6), which means the third column must cover the integers n f (mod 6). After dividing the m k of the third column by their greatest common divisor with 6, it is clear that none of the moduli of the third column can be removed. Thus the covering system (m k,r k ) is regular, and is in fact regular for all valid choices of the r k. 3 A Slight Improvement to Graham s Construction Although the given covering system is regular, this does not imply that it is the optimal covering system (even after optimizing over the r k ). Although it is not clear how to prove that one system is better than another (without computing the minimal solution for each system), a good heuristic seems to be choosing small p k, and using as few congruences as possible. Note that if the second and third columns covers n 0, 2, 4, 5 (mod 6), as done in Graham s construction, then the first column need only cover n 1, 3 (mod 6). The first column of Graham s construction covers n 1 (mod 2), which is perhaps overkill. If we replace the triples (2207, 32, 15), (1087, 64, 31), and (4481, 64, 63) with the triples (23, 24, 15) and (1103, 48, 31), we obtain a covering with smaller p k and one fewer congruence.

the electronic journal of combinatorics 6 (1999), #R44 5 Since we have proven that Graham s system is regular, showing that this new system is regular is rather simple. We need only show that no subset of the first column covers n 1, 3 (mod 6). It suffices to show that the modulus 48 cannot be removed. We assume otherwise; but by inspection, the moduli (4, 8, 16, 24) cannot cover n 1, 3 (mod 6). Thus the new system is also regular, and the minimal solution for this system is roughly five hundred times smaller than the minimal solution for Graham s system. 4 Counting the cases Now, we determine the number of possible distinct coverings given the m k above. The first column must cover the congruences n g (mod 6) and n h (mod 6), where g and h are of the same parity and g h (mod 3). There are twelve ways this can be done (order is important, since the p k are distinct). There are then two choices for the modulus 4, two for the modulus 8, and two for the modulus 16. Thus, there are 12 2 3 = 96 ways to choose the first column. We fix the first column (and thus g and h), and note that all the even m k in the second and third column must have r k g (mod 2). The choice of residue for the modulus 3 is forced. There are then six choices for the modulus 9, two for 18, three for 27, and two for the second 27. Thus, there are 6 2 3 2=72 ways that the second column can be chosen. Finally, fixing the first and second column, and that the m k divisible by 4 in the third column must not have their r k be congruent modulo 4, we see that there are precisely five choices for the modulus 5, four for the modulus 10, three for 15, two for 30, and two for 20. So there are 5 4 3 2 2 = 240 ways that the third column can be chosen. 5 The Result Now, applying Knuth s method [4] to each of the 96 72 240 = 1658880 cases above, we find the smallest values of a and b to be: with the triples below: (a, b) = (407389224418, 76343678551)

the electronic journal of combinatorics 6 (1999), #R44 6 (3, 4, 3) (2, 3, 0) (5, 5, 3) (7, 8, 1) (17, 9, 5) (11, 10, 0) (47, 16, 5) (19, 18, 8) (61, 15, 7) (23, 24, 5) (53, 27, 11) (31, 30, 16) (1103, 48, 13) (109, 27, 2) (41, 20, 14) (5779, 54, 20) (2521, 60, 4) It is trivial to verify that the sequence A n defined by a and b above will consist of only composite terms. 6 Thanks My thanks to Richard Guy [3] and Paulo Ribenboim [5, 6] for pointing out this problem in their books, and the makers of PARI [1] for the use of their wonderful program. References [1] C. Batut, K. Belabas, D. Bernardi, Henri Cohen, and M. Olivier, User s guide to PARI-GP, Version 2 (1999). [2] Ronald L. Graham, A Fibonacci-like sequence of composite numbers, Mathematics Magazine 37 (1964), 322-324. [3] Richard K. Guy, Unsolved Problems in Number Theory, Second Edition (1994), 11, 252. [4] Donald E. Knuth, A Fibonacci-like sequence of composite numbers, Mathematics Magazine 63 (1990), 21-25. [5] Paulo Ribenboim, The Little Book of Big Primes (1991), 178. [6] Paulo Ribenboim, The New Book of Prime Number Records (1996), 367. [7] R. J. Simpson, Regular coverings of the integers by arithmetic progressions, Acta Arithmetica, 45 (1985), 145-152. [8] Herbert S. Wilf, Letters to the Editor, Mathematics Magazine 63 (1990), 284.