ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey

Similar documents
SOLUTIONS TO PROBLEM SET 5. Section 9.1

Applications of Fermat s Little Theorem and Congruences

Solutions for the Practice Questions

SOLUTIONS FOR PROBLEM SET 4

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Math 255 Spring 2017 Solving x 2 a (mod n)

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

Math 127: Equivalence Relations

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

The Chinese Remainder Theorem

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

Wilson s Theorem and Fermat s Theorem

Assignment 2. Due: Monday Oct. 15, :59pm

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

1.6 Congruence Modulo m

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Fermat s little theorem. RSA.

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

University of British Columbia. Math 312, Midterm, 6th of June 2017

Primitive Roots. Chapter Orders and Primitive Roots

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

MAT Modular arithmetic and number theory. Modular arithmetic

Math 412: Number Theory Lecture 6: congruence system and

#A3 INTEGERS 17 (2017) A NEW CONSTRAINT ON PERFECT CUBOIDS. Thomas A. Plick

6.2 Modular Arithmetic

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

Modular Arithmetic. claserken. July 2016

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Carmen s Core Concepts (Math 135)

Chapter 4 Cyclotomic Cosets, the Mattson Solomon Polynomial, Idempotents and Cyclic Codes

Goldbach Conjecture (7 th june 1742)

NUMBER THEORY AMIN WITNO

Number Theory. Konkreetne Matemaatika

Congruence properties of the binary partition function

Discrete Math Class 4 ( )

An elementary study of Goldbach Conjecture

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

SYMMETRIES OF FIBONACCI POINTS, MOD m

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

Distribution of Primes

ON THE EQUATION a x x (mod b) Jam Germain

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2.

Modular arithmetic Math 2320

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

Modular Arithmetic. Kieran Cooney - February 18, 2016

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

by Michael Filaseta University of South Carolina

PRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES. Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania

Zhanjiang , People s Republic of China

ON SPLITTING UP PILES OF STONES

12. Let Rm = {0,1,2,..., m 1} be a complete residue system modulo ra. Let a be an integer. When is a Rm = {0,1 a, 2 a,...

Practice Midterm 2 Solutions

Fall. Spring. Possible Summer Topics

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

arxiv: v3 [math.co] 4 Dec 2018 MICHAEL CORY

Number Theory/Cryptography (part 1 of CSC 282)

Asymptotic Results for the Queen Packing Problem

ALGEBRA: Chapter I: QUESTION BANK

TILLING A DEFICIENT RECTANGLE WITH T-TETROMINOES. 1. Introduction

Tilings with T and Skew Tetrominoes

An Elementary Solution to the Ménage Problem

Math 319 Problem Set #7 Solution 18 April 2002

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM

Twenty-sixth Annual UNC Math Contest First Round Fall, 2017

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Non-overlapping permutation patterns

Introduction to Modular Arithmetic

On repdigits as product of consecutive Fibonacci numbers 1

Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014

Solutions for the Practice Final

Combinatorics in the group of parity alternating permutations

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

Two congruences involving 4-cores

MATH 135 Algebra, Solutions to Assignment 7

On uniquely k-determined permutations

CHAPTER 2. Modular Arithmetic

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Algorithmic Number Theory and Cryptography (CS 303)

Sheet 1: Introduction to prime numbers.

Foundations of Cryptography

TILING RECTANGLES AND HALF STRIPS WITH CONGRUENT POLYOMINOES. Michael Reid. Brown University. February 23, 1996

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

Is 1 a Square Modulo p? Is 2?

Solutions for the 2nd Practice Midterm

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

Permutation group and determinants. (Dated: September 19, 2018)

Solutions to Exercises Chapter 6: Latin squares and SDRs

Diffie-Hellman key-exchange protocol

Algorithms. Abstract. We describe a simple construction of a family of permutations with a certain pseudo-random

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

Transcription:

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey Shah [1] and Bruckner [2] have considered the problem of determining which moduli m have the property that the Fibonacci sequence {u }, defined in the usual way 9 contains a complete system of residues modulo m, Following Shah we say that m is defective if m does not have this property, The results proved in [1] includes (I) If m is defective, so is any multiple of m; in particular, 8n is always defective. (II) if p is a prime not 2 or 5, p is defective unless p = 3 or 7 (mod 20). (in) If p is a prime = 3 or 7 (mod 20) and is not defective^ thenthe set {0, ±1, =tu 3, ±u 49 ±u 5,, ±u } 9 where h = (p + l)/2? is a complete system of residues modulo p In [2], Bruckner settles the case of prime moduli by showing that all primes are defective except 2, 3 S 5, and 7. In this paper we complete the work of Shah and Bruckner by proving the following re suit f which completely characterizes all defective and nondefective moduli. Theorem. A number m is not defective if and only if m has one of the following forms: 5 k, 2 * 5 k f 4»5 k, 3 3 *5 k 5 6«5 k, k k 7-5, 14* 5*, where k ^ 0 S j 1. Thus almost all numbers are defective. We will prove a series of lemm a s, from which the theorem will follow directly, We first make some useful definitions. We say a finite sequence of integers (a l9 ag? 9 a > a r ) is a Fibonacci cycle modulo m if it satisfies a. + a. +1 = a i + 2 (mod m), i = 1, * *, r - 2 9 as well as a - + a = at (mod m) and a + ai = a 2 (mod m), and furthermore (a lf a 2 e 9 e i aq) does not have these properties for any q <. r. (As 497

498 ON MODULI FOR WHICH THE FIBONACCI SEQUENCE [Dec. the name implies, it is convenient to regard the cycles as circular.) We say r is the length of the cycle. For any m, we also call (km) a Fibonacci cycle modulo m of length 1. We call two Fibonacci cycles equivalent if one is congruent termwise modulo m to a cyclic permutation of the other. Finally, we define a complete Fibonacci system modulo m to be a maximal set of pairwise inequivalent Fibonacci cycles modulo m. Note that the total number of terms appearing in such a system is m 2. The idea behind this definition is simple; it is a compact way of representing all possible Fibonacci sequences modulo m. For example, the following are complete Fibonacci systems modulo 2, 3, 4, and 5, respectively: {(0, 1, 1), (0)1, {(0, 1, 1, 2, 0, 2, 2, 1), (0)1, {0, 1, 1, 2, 3, 1), (0, 3, 3, 2, 1, 3), (0, 2, 2), (0)}, {(0, 1, 1, 2, 3, 0, 3, 3, 1, 4, 0, 4, 4, 3, 2, 0, 2, 2, 4, 1), (1, 3, 4, 2), (0)}. For larger m the structure of these systems can become quite intricate and is worthy of stafy in itself. We will not undertake such a study here. Instead, we will proceed to the lemmas. The first lemma gives another proof of the result of Bruckner; it is included to illustrate the above ideas.. Lemma 1. If p is a prime which is not defective, then p = 2, 3, 4, or 7. Proof. Assume the contrary, and let p > 7 be a nondefective prime. Then p = 3 or 7 (mod 20), and (III) holds. From this it is easily seen either directly or from (5.5) and (5.6) of [1] that Ci = (0, 1, 1,..., u h _ 2, u n _ l f u h, -u h _ 1, u h _ 2, ", 1, - 1, 0, - 1,. 1,..., -u h _ 2, - V l -u h, V l, - u h - 2,. ", - 1, 1) is a Fibonacci cycle of length 2p + 2 modulo p. Let C,, k = 1,, (p - l)/2, be the finite sequence formed by multiplying the terms of Cj by k. Clearly each C, is a Fibonacci cycle modulo p. But they are all inequivalent, since C. equivalent to C. implies

1971] CONTAINS A COMPLETE SYSTEM OF RESIDUES 499 j = ±k (modp), which implies j = k e Since all the (p - l)/2 sequences C, are inequivalent f the set ^ V D / 2 * ( 0 ) } is a complete Fibonacci system (modulo p) because the total number of terms appearing is E ^ i. (2p + 2) + 1 = p 2 Consider the finite sequence of integers 5 9-2, 3 S 1, 4 9 5 8 This satisfies the Fibonacci difference equation* and hence must be congruent term- byterm to a portion of some C, (possibly wrapped end around). Thus some C, has two congruent terms five steps apart, Therefore, multiplying each term by the inverse of k, we see that Cj has two congruent terms five steps apart But examination of the definition of Cj shows that this implies that for some 3 ^ j ^ h either u. = ±1 (mod p) or u. = ±u, (mod p) for some k ^ j, 3 == k ^ h* (Note that here we have used p > 7 e ) But this contradicts (in), so the lemma Is proved. By property (I) It suffices to consider moduli divisible only by 2, 3 S 5, and 7* We first deal with the powers of 3* Lemma 2, No power of three is deficient Pro of. We begin by determining a complete Fibonacci system modulo 3 n B It is well known that the rank and period of 3 are 4 * 3 " and 8. 3 respectively* That is,n 9 the smallest m > 0 for which 3 u is 4 0n.-l 3,. m and for all m Thus u = u - (mod 3 ) m l 0 0n-l m+8*3 C = (0, 1, 1, 2,, u n x) 8.3 11 is a Fibonacci cycle modulo 3 n s But It Is easily from the above facts that

500 ON MODULI FOB WHICH THE FIBONACCI SEQUENCE [Dec. so that u 1 = -1 (mod 3 n ), 4.3 n x +l Ct = fo, 1, 1, 2, -., 0, - 1, - 1, - 2, " 9 U - ] is an equivalent Fibonacci cycle. For each integer k prime to 3 in the range 0 < k ' < 3 11, let C, be the sequence formed by multiplying each term of Cj by k. As in the previous lemma, the C, are all inequivalent Fibonacci cycles. The total number of such C, is - </>(3 ) = 3 ", where $ is the Euler function. Hence, m 2 the total number of terms appearing in the C. is 8 3. Consider also the sequences formed by multiplying by 3 every term of a complete Fibonacci system modulo 3 "". This clearly forms a set of inequivalent Fibonacci cycles modulo 3, and the total number of terms appearing in the cycles is 2n 2 3. Furthermore, none of these cycles is equivalent to any C,. Therefore, these cycles, together with the C,, form a complete Fibonacci system modulo 3 n, since the total number of terms is then 8>32n-2 + 32n-2 = 32n ^ It is well known that the expression a 2 + ab - b 2 ], where a and b are two consecutive terms of a sequence satisfying the Fibonacci difference equation, is an invariant of the sequence. Consequently, an invariant of any such sequence modulo m is the pair of residue classes corresponding to ±(a 2 + ab - b 2 ), and the same applies to Fibonacci cycles. We now show that any Fibonacci cycle modulo 3 with invariant corresponding to ±1 is equivalent to Cj. Certainly such a cycle must be equivalent to some C,, since the invariants of the other cycle are divisible by 3. Such a C. must satisfy k 2 = ±1 (mod 3 ). But k 2 = -1 (mod 3 n ) is impossible, so (k + l)(k - 1) = 0 (mod 3 ), so that k = 1 and the cycle is equivalent to Cj.

1971] CONTAINS A COMPLETE SYSTEM OF RESIDUES 501 From this, we see that the lemma will be proved if it can be shown that for any a there is a b such that a 2 + ab - b 2 = ±1 (mod 3 n ). In fact, we will even show this for a 2 + ab - b 2 «-1. This is obvious for n = 1. Now suppose the above to have been proved for some value n ^ 1, and let b be such that a 2 + ab - b 2 = -1 (mod 3 n ), let a 2 + ab - b 2 = A-3 n - 1.. We will determine an x = 3 t + b such that a 2 + ax - x 2 = -1 (mod 3 n + 1 ). We have a 2 + ax - x 2 = a 2 + 3 n at + ab + 2-3 n bt + b 2 = 3 n (a + 2b)t + (a 2 + ab - b 2 ) = 3 n (a + 2b)t + 3 n A - Krnod 3 n + 1 ). Thus x will have the desired property if (a + 2b)t + A s 0 (mod 3). But 3 / a + 2b, for otherwise a = b, and

502 ON MODULI FOR WHICH THE FIBONACCI SEQUENCE [Dec. a 2 = a 2 + ab - b 2 = - 1 (mod 3), which is i m p o s s i b l e Therefore, the above congruence has a solution and the l e m m a is proved, We now consider the effect of the p r i m e 5. We will prove a general l e m m a which is of some interest in itself. L e m m a 3. Suppose that the Fibonacci sequence {u } has period k modulo m, and that it has period 5k modulo 5m» F o r some n and a let u = a (mod m). Then u, u,,, u,, are congruent to a, m + a*, 4m + a (mod 5m) in some o r d e r. Proof. We consider two c a s e s, depending on whether or not 5Jm We first assume 5 / m. Then the period of 5m is the g. c. d. of k and the p e r - iod of 5, which is 20. Since this period is to equal 5k, we have k = 4, 8, 12, 16 (mod 20). Now, a cycle modulo 5 which corresponds to the standard Fibonacci sequence is (0, 1, 1, 2, 3,. 0, 3, 3, 1, 4, 0, 4, 4, 3, 2, 0, 2, 2, 4, 1). F r o m this it m a yj b e verified that u, u.,,, u.., n k+n ' 4k+n are congruent mod- ulo 5 t o 0, 1, 2, 3, 4 in some o r d e r. F o r instance, if n = 0 (mod 20) they are congruent respectively to 9, 3, 1, 4, 2. Since each of these is congruent to a modulo m, they are congruent in some o r d e r to a, m + a,, 4m + a. This completes the first c a s e. We now assume 5 m. Since the Fibonacci sequence has period k modulo m, u, u,,,, u,, are all congruent to a modulo m and hence & n k+n' 4k+n are each congruent to im + a modulo 5m for some choice of 0 ^ i ^ 4. Our object is to show that the value of i is different for each of the five t e r m s. Set u,- = b (mod m). Then u, -, u,,, * e *, u.,, - are each conn+1 n+1 m+n+1 4m+n+l gruent to jm + b for some 0 ^ j ^ 4. Speaking in t e r m s of the concept we have defined, there are 25 p a i r s congruent modulo 5m to (im + a, j m + b) appearing within a complete Fibonacci s y s t e m modulo 5m, of which 5 a p- p e a r in the cycle corresponding to the standard Fibonacci sequence. Our o b - ject is to show that each of these 5 gives a different value of i. Since &

19711 CONTAINS A COMPLETE SYSTEM OF RESIDUES 503 a 2 + ab - b 2 = ±1 (mod m), we may set a 2 + ab - b 2 = ma ± 1. Applying this same invariant to the pair (im + n, jm + b), we have (im + a) 2 + (im + a)(jm + b) - (jm + b) 2 = i 2 m 2 + ijm 2 - j 2 m 2 + ((2a + b)i + (a - 2b)j)m + a 2 + ab - b 2 = m 2 (i 2 + ij - j 2 ) + m((2a + b)i + (a - 2b)j) + ma ± 1. This last expression will be congruent to ±1 (modulo 5m) if and only if (2a + b)i + (a - 2b)j + A = 0 (mod 5). However 9 2a + b ^ 0 (mod 5) since otherwise ±1 = a 2 - ab - b 2 = a 2-2a 2-4a 2 = 0 (mod 5); similarly a - 2b ^ 0 (mod 5). Consequently s for each of the 5 possible choices of i, there is exactly one j satisfying the above congruence. Hence only these 5 pairs could appear as consecutive pairs in the Fibonacci sequence. Since i is different in each case, the lemma is proved., We now deal with the other primes, and combinations thereof. Lemma 4. The numbers 8, 12, 18, 21, 28, and 49 are deficient; the numbers 4, 6, 14, and 20 are nondeficient. Proof. The arithmetic involved in verifying these facts is left to the reader. We now can easily prove the main result. Proof of Theorem. Lemmas 1 and 4, along with (I), show that the numbers of the theorem are the only possible nondeficient numbers. Ail numbers 3 J are nondeficient by Lemma 2. Furthermore, the periods of 6, 14, 20,

504 ON MODULI FOR WHICH THE FIBONACCI SEQUENCE Dec. 1971 CONTAINS A COMPLETE SYSTEM OF RESIDUES and 30 are 24, 48, 60, and 8 3 J ~, respectively, so that by Lemma 3, all numbers 6 5, 14 5, 20-5, 3 J 5 are all nondeficient. Applying (I) again we see that all numbers of the theorem are nondeficient. the theorem is proved, Thus, It would be interesting to extend this work by considering more generally the problem of characterizing, at least partially, the residue classes that appear in the Fibonacci sequence with respect to a general modulus, as well as their multiplicities. A small start on this large problem has been made by [1], [2], and the present work, especially Lemma 3. Also of interest, both as an aid to the above and for itself, would be a systematic study of complete Fibonacci systems, whose structure can be quite complicated. In particular, it would be useful to know the set of lengths and multiplicities of the cycles. Considerable information, especially for prime moduli, bearing on this problem exists in various places; see for instance [3], [4]. Of course, these problems can be generalized to sequences satisfying other recurrence relations. REFERENCES 1. A. P. Shah, "Fibonacci Sequence Modulo m," Fibonacci Quarterly, Vol. 6, 1968, pp. 139-141. 2. G. Bruckner, "Fibonacci Sequence Modulo A Prime p = 3 (mod 4),"' Fibonacci Quarterly, Vol. 8, 1970, pp. 217-220. 3. D. D. Wall, "Fibonacci Series Modulo m, " Amer. Math Monthly, Vol. 67, 1960, pp. 525-532. 4. D. M. Bloom, "On Periodicity in Generalized Fibonacci Sequences," Amer. Math. Monthly, Vol. 72, 1965, pp. 856-861. NINTH ANNUAL FALL CONFERENCE OF THE FIBONACCI ASSOCIATION Nov. 13, 1971 COLLEGE OF THE HOLY NAMES, Oakland, California Morning Session A Triangle for the Fibonacci Powers Charles Pasma, San Jose State College, San Jose, California On the Number of Primitive Solutions of x 2 - x y - y 2 = a in Positive Relatively Prime Integers, Professor V. E. Hoggatt, J r., San Jose State College Free Discussion Period [ Continued on page S t l. ]