SPLITTING FIELDS AND PERIODS OF FIBONACCI SEQUENCES MODULO PRIMES

Similar documents
Quasi-reducible Polynomials

CALCULATING EXACT CYCLE LENGTHS IN THE GENERALIZED FIBONACCI SEQUENCE MODULO p

Classification of Finite Fields

9. Finite fields. 1. Uniqueness

(January 14, 2009) q n 1 q d 1. D = q n = q + d

Selected exercises from Abstract Algebra by Dummit and Foote (3rd edition).

Part II. Number Theory. Year

Galois fields/1. (M3) There is an element 1 (not equal to 0) such that a 1 = a for all a.

SOLVING SOLVABLE QUINTICS. D. S. Dummit

Section I.6. Symmetric, Alternating, and Dihedral Groups

Section VI.33. Finite Fields

Name: Solutions Final Exam

QUOTIENTS OF FIBONACCI NUMBERS

A connection between number theory and linear algebra

18. Cyclotomic polynomials II

PAijpam.eu THE PERIOD MODULO PRODUCT OF CONSECUTIVE FIBONACCI NUMBERS

Page Points Possible Points. Total 200

GALOIS GROUPS OF CUBICS AND QUARTICS (NOT IN CHARACTERISTIC 2)

Constructing Tower Extensions of Finite Fields for Implementation of Pairing-Based Cryptography

NONABELIAN GROUPS WITH PERFECT ORDER SUBSETS

Journal of Number Theory

ON EXPLICIT FORMULAE AND LINEAR RECURRENT SEQUENCES. 1. Introduction

198 VOLUME 46/47, NUMBER 3

1 The Galois Group of a Quadratic

On Orders of Elliptic Curves over Finite Fields

May 6, Be sure to write your name on your bluebook. Use a separate page (or pages) for each problem. Show all of your work.

3 Galois Theory. 3.1 Definitions and Examples

Algebra Exam Topics. Updated August 2017

ON DIVISIBILITY OF SOME POWER SUMS. Tamás Lengyel Department of Mathematics, Occidental College, 1600 Campus Road, Los Angeles, USA.

1/30: Polynomials over Z/n.

Algebra SEP Solutions

Fibonacci Pseudoprimes and their Place in Primality Testing

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

Section X.55. Cyclotomic Extensions

DIVISIBILITY OF BINOMIAL COEFFICIENTS AT p = 2

NOTES ON FINITE FIELDS

18.S34 linear algebra problems (2007)

School of Mathematics

VARIETIES WITHOUT EXTRA AUTOMORPHISMS II: HYPERELLIPTIC CURVES

Self-complementary circulant graphs

ON MONIC BINARY QUADRATIC FORMS

Pseudo Sylow numbers

Permutation Polynomials over Finite Fields

THE p-adic VALUATION OF LUCAS SEQUENCES

How many units can a commutative ring have?

Class Field Theory. Steven Charlton. 29th February 2012

A Field Extension as a Vector Space

Chapter 8. P-adic numbers. 8.1 Absolute values

Explicit solution of a class of quartic Thue equations

ON TYPES OF MATRICES AND CENTRALIZERS OF MATRICES AND PERMUTATIONS

Math 121 Homework 3 Solutions

Finite Fields. [Parts from Chapter 16. Also applications of FTGT]

Section V.3. Splitting Fields, Algebraic Closure, and Normality (Supplement)

22M: 121 Final Exam. Answer any three in this section. Each question is worth 10 points.

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Two Diophantine Approaches to the Irreducibility of Certain Trinomials

COUNTING SEPARABLE POLYNOMIALS IN Z/n[x]

Public-key Cryptography: Theory and Practice

12x + 18y = 30? ax + by = m

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005

CLOSED FORM CONTINUED FRACTION EXPANSIONS OF SPECIAL QUADRATIC IRRATIONALS

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

Summary Slides for MATH 342 June 25, 2018

arxiv: v1 [math.gr] 3 Feb 2019

Bulletin of the Transilvania University of Braşov Vol 7(56), No Series III: Mathematics, Informatics, Physics, 59-64

SECOND-ORDER RECURRENCES. Lawrence Somer Department of Mathematics, Catholic University of America, Washington, D.C

MATH 361: NUMBER THEORY TENTH LECTURE

Solving the general quadratic congruence. y 2 Δ (mod p),

Algebra Ph.D. Preliminary Exam

Real representations

The primitive root theorem

Math 120: Homework 6 Solutions

Dynamics of finite linear cellular automata over Z N

Algebra Qualifying Exam Solutions. Thomas Goller

Groups, Rings, and Finite Fields. Andreas Klappenecker. September 12, 2002

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

Some practice problems for midterm 2

Galois Theory TCU Graduate Student Seminar George Gilbert October 2015

A talk given at the University of California at Irvine on Jan. 19, 2006.

On the Rank and Integral Points of Elliptic Curves y 2 = x 3 px

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Galois groups of polynomials and the construction of finite fields

ABSTRACT INVESTIGATION INTO SOLVABLE QUINTICS. Professor Lawrence C. Washington Department of Mathematics

Properties of Generating Sets of Finite Groups

PYTHAGOREAN TRIPLES KEITH CONRAD

Finite Fields: An introduction through exercises Jonathan Buss Spring 2014

arxiv: v1 [math.co] 21 Sep 2015

SPRING 2006 PRELIMINARY EXAMINATION SOLUTIONS

1 Rings 1 RINGS 1. Theorem 1.1 (Substitution Principle). Let ϕ : R R be a ring homomorphism

TC10 / 3. Finite fields S. Xambó

FIFTH ROOTS OF FIBONACCI FRACTIONS. Christopher P. French Grinnell College, Grinnell, IA (Submitted June 2004-Final Revision September 2004)

GRE Subject test preparation Spring 2016 Topic: Abstract Algebra, Linear Algebra, Number Theory.

Introduction to Lucas Sequences

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

MATH 101A: ALGEBRA I, PART D: GALOIS THEORY 11

Math 201C Homework. Edward Burkard. g 1 (u) v + f 2(u) g 2 (u) v2 + + f n(u) a 2,k u k v a 1,k u k v + k=0. k=0 d

Primes of the Form x 2 + ny 2

Implementation of Theorems in D.S. Dummit s Solving Solvable Quintics(1991)

Transcription:

SPLITTING FIELDS AND PERIODS OF FIBONACCI SEQUENCES MODULO PRIMES SANJAI GUPTA, PAROUSIA ROCKSTROH, AND FRANCIS EDWARD SU 1. Introduction The Fibonacci sequence defined by F 0 = 0, F 1 = 1, F n+1 = F n + F n 1 is clearly periodic when reduced modulo an integer m, since there are only finitely many possible pairs of consecutive elements chosen from Z/mZ (in fact, m 2 such pairs) and any such pair determines the rest of the sequence. What is the period of this sequence? An upper bound is m 2 1 (since the sequence does not have a consecutive pair of 0 s), but the period is often much smaller. As examples, the Fibonacci sequence mod 11 is: 0, 1, 1, 2, 3, 5, 8, 2, 10, 1, 0, 1, 1,... and has period 10; the Fibonacci sequence mod 7 is: 0, 1, 1, 2, 3, 5, 1, 6, 0, 6, 6, 5, 4, 2, 6, 1, 0, 1, 1,... and has period 16. This problem was first considered by Wall [7] and shortly thereafter by Robinson [5]. Among other cases, they studied the Fibonacci sequence for prime moduli, and showed that for primes p 1, 4 mod 5 the period length of the Fibonacci sequence mod p divides p 1, while for primes p 2, 3 mod 5, the period length divides 2(p+1). The examples above illustrate these facts. Wall s proofs use different combinatorial techniques for each of these classes of primes. Robinson proves these results by appealing to a directed graph of points formed by multiplication by a Fibonacci matrix. In this paper, we give alternative proofs of these results that also use the Fibonacci matrix, but unlike Robinson, we place the roots of its characteristic polynomial in an appropriate splitting field. This allows us to obtain bounds for the periods of the more general recurrence E n+1 = AE n + BE n 1 modulo a prime, which neither Wall nor Robinson consider. Vella and Vella [6] consider general recurrences, but only in the special case where the roots of characteristic polynomial are integers (viewed as a polynomial with real coefficients). Using sophisticated methods, Pinch [3] proves general results about multipleterm recurrences with prime power moduli, but does not produce specific bounds of the kind that we consider here. Li [4] reviews prior work on period lengths of general recurrences in the context of a different problem: determining which residue classes appear in recurrence sequences. The purpose of our brief paper is to illustrate an accessible, motivated treatment of this classical topic using only ideas from linear and abstract algebra (rather than Supported in part by NSF DMS-0701308. 1

2 GUPTA, ROCKSTROH, AND SU the case-by-case analysis found in many papers on the subject, or techniques from graduate number theory). Our methods extend to general recurrences with prime moduli and provide some new insights, e.g., Theorem 9. And our treatment highlights a nice application of the use of splitting fields that might be suitable to present in undergraduate course in abstract algebra or Galois theory. 2. Eigenvalues of the Fibonacci Matrix Let p be an odd prime. In accordance with previous literature [5, 7] we define k(p), the period of the Fibonacci sequence mod p, to be the smallest non-zero index i such that F i 0 mod p and F i+1 1 mod p. In our examples above, k(11) = 10, while k(7) = 16. Following Robinson [5], we consider the Fibonacci matrix: U = [ 1 1 1 0 This is a matrix over some field F that we should be careful to specify. If we choose F = R, then U n Fn+1 F = n. F n F n 1 And if we choose F = Z/pZ (also written F p, the finite field of order p) then the entries of U n are elements of the Fibonacci sequence mod p, the desired objects of study. It is natural to consider the eigenvalues of the matrix U, which are roots of its characteristic polynomial x 2 x 1. If eigenvalues λ, λ exist and are distinct, then U = CDC 1 where D is the diagonal matrix λ 0 D = 0 λ and C is a matrix with the corresponding eigenvectors as columns. (If the eigenvalues are not distinct, then D is not diagonal but a Jordan block and C is a matrix of generalized eigenvectors.) Then U k = CD k C 1. We see that for k = k(p), we have U k = I, the identity matrix. Therefore D k = C 1 U k C is also I. We observe that the exponent k = k(p) is the smallest non-zero exponent n such that D n = I. Thus: Lemma 1. The period k(p) must divide any n that satisfies D n = I. When do the eigenvalues λ, λ exist? The quadratic formula shows that ax 2 + bx + c has roots in the field Z/pZ as long as the discriminant = b 2 4ac is a square in Z/pZ; hence the characteristic polynomial x 2 x 1 has roots in Z/pZ if and only if = 5 is a square. Quadratic reciprocity shows that if p is an odd prime, then 5 is a square in Z/pZ if and only if p 0, 1, 4 mod 5. And as long as p 5, the eigenvalues are distinct, hence we recover the classical bound: Theorem 2. If p is an odd prime and p 1, 4 mod 5, then k(p) divides p 1. In particular, k(p) p 1. Proof. The eigenvalues λ, λ of U are non-zero (since U is invertible) and distinct (since p 5). Since p is prime, Fermat s (little) theorem implies both λ p 1 = 1 and λ p 1 = 1. Hence D p 1 = I and Lemma 1 gives the desired conclusion. When p = 5, the eigenvalues are not distinct and D is not diagonal, so D 4 I even though λ 4 = λ 4 = 1. One finds that D 20 = I and k(5) = 20. ].

PERIODS OF FIBONACCI SEQUENCES MOD PRIMES 3 3. A Splitting Field for the Eigenvalues A slight modification will take care of the remaining classes of primes p 2, 3 mod 5; but for such p the characteristic polynomial x 2 x 1 will not have roots in F p unless we enlarge the field. In this case, we choose F = F p [x]/(x 2 x 1), the splitting field of x 2 x 1, and consider U as a matrix with entries in F. Note that F is isomorphic to F p 2, the finite field of order p 2. It has F p as a subfield, namely the image of the constant polynomials in F p [x]. The quadratic formula gives the eigenvalues of U: (1) λ = 2 1 (1 + 5), λ = 2 1 (1 5) where 5 denotes a field element of F whose square is 5 (there are two; fix one). This element has a special property: Lemma 3. If p 2, 3 mod 5, then ( 5) p = 5. Proof. Consider the Frobenius map σ : F p 2 F p 2 where σ(α) = α p. It is wellestablished [1] that the Frobenius map is an automorphism of F p 2 that fixes F p, hence it must permute the roots of irreducible polynomials with coefficients in F p. In particular, σ permutes the roots of x 2 5, so either σ( 5) = 5 or σ( 5) = 5, i.e., either σ fixes the entire field F p 2 or just the subfield F p. But σ is not the identity, since the multiplicative group of F p 2 is known to be cyclic [1, p.314] of order p 2 1, so if the multiplicative generator is γ, then σ(γ) = γ p γ. Hence σ( 5) = 5, as desired. Lemma 4. Let λ and λ be the two roots of x 2 x 1 in F = F p 2. Then λ p+1 = λ p+1. Proof. We make frequent use of the following fact [1, p.548]: if a, b F p 2, then (a+b) p = a p + b p. This follows from the binomial theorem, noting that ( p n) is divisible by p if p is prime and n is not 0 or p. From (1), note that λ = 1 λ. Then λ p+1 = (1 λ) p+1 = (1 λ) p (1 λ) = (1 λ p )(1 λ) = 1 λ λ p + λ p+1. The desired result then follows from this claim: that 1 λ λ p = 0. Substituting (1), and using (1 + 5) p = 1 + 5 p, we find: 1 λ λ p = 1 2 1 (1 + 5) (2 1 ) p (1 + 5 p ). But since 2 1 is in F p, by Fermat s theorem, ( 2 1) p = 2 1, and the claim follows from Lemma 3 and 1 2(2 1 ) = 0. Now we have enough to determine the desired bound: Theorem 5. Let p be an odd prime with p 2, 3 mod 5 then k(p) divides 2(p + 1). In particular, k(p) 2(p + 1). Proof. Recall that λ and λ are roots of x 2 x 1. Note that λ λ = 1, and the above lemma shows that λ p+1 = λ p+1, so λ p+1 λ p+1 = λ p+1 λp+1 = ( 1) p+1. Since p is odd, ( 1) p+1 = 1, so λ 2(p+1) = 1. By Lemma 4 we also have λ 2(p+1) = 1. The result follows from Lemma 1.

4 GUPTA, ROCKSTROH, AND SU As Wall [7] notes, the upper bounds of Theorems 2 and 5 are tight for many small odd primes p 5 (for p < 100, the only exceptions are 29, 47, and 89). The bounds appear to be less tight for larger p. Wall also shows for prime powers, k(p t ) p t 1 k(p) with equality if k(p 2 ) k(p). It is believed the latter condition always holds; see [2] for partial results. Combining knowledge of k(p t ) with the fact that lcm[k(m), k(n)] = k(lcm[m, n]), one can obtain a bound on k(m) for each positive integer m. 4. The General Recurrence Our methods can be adapted to obtain bounds for the period of the general recurrence E n+1 = AE n + BE n 1 modulo a prime p, with E 0 = 0 and E 1 = 1. Let k A,B (p) be the period of E n mod p. The Fibonacci matrix becomes A B U =, 1 0 and the eigenvalues λ, λ are roots of the characteristic polynomial x 2 Ax B. This has roots in Z/pZ as long as the discriminant = A 2 + 4B is a square in Z/pZ (a quadratic residue mod p), and they are distinct if 0 mod p. The same arguments as in Theorem 2 will yield: Theorem 6. If p is an odd prime and is a non-zero quadratic residue mod p, then k A,B (p) divides p 1. In particular k A,B (p) p 1. For example, consider E n+1 = 3E n + 2E n 1 mod 13. Then A = 3, B = 2, and = 17. Since 2 2 mod 13, is a non-zero quadratic residue mod 13. Our theorem shows that k 3,2 (13) 12 (and, in fact, it is 12). A curious consequence of our theorem is that the sequence E n+1 = E n + 2E n 1 mod p has small period (that divides p 1) for every odd prime p except 3 (since = 3 2 is always a square, the only prime p dividing is 3). If the discriminant is not a square in Z/pZ, we consider U as a matrix with entries from the splitting field of x 2 Ax B, isomorphic to F p 2 as before. The proof of Lemma 3 holds with 5 replaced by and noting that σ permutes the roots of x 2. Thus: Lemma 7. If is a quadratic nonresidue mod p, then ( ) p =. The analogue of Lemma 4 still holds: Lemma 8. Let λ and λ be the two roots of x 2 Ax B in F = F p 2. Then λ p+1 = λ p+1. This follows by a similar argument as in Lemma 4, noting that λ = A λ, and λ p+1 = A(1 λ λ p ) + λ p+1. Thus it suffices to show, as before, that 1 λ λ p = 0. The same arguments hold, with 5 replaced by. Theorem 9. If is a quadratic nonresidue mod p, then k A,B (p) divides 2(p + 1) ord(b 2 ), where ord(n) is the multiplicative order of n. In particular, k A,B (p) 2(p + 1) ord(b 2 ).

PERIODS OF FIBONACCI SEQUENCES MOD PRIMES 5 The multiplicative order of n is the smallest positive integer t such that n t 1 mod p. The proof follows the proof of Theorem 5 by noting λ λ = B, and hence λ 2(p+1) = ( B) p+1 = B 2 by Fermat s theorem. Note that if B = 1, then the original bound 2(p + 1) still holds. For example, consider E n+1 = 3E n + E n 1 mod 19. Then A = 3, B = 1, and = 13. Since 13 is a nonresidue mod 19, our theorem shows k 3,1 (19) divides 40 (and, in fact, is 40). For the same sequence mod 11, we find that 13 is a nonresidue mod 11, so k 3,1 (11) divides 2(11 + 1) = 24 (and, in fact, is 8). For a general example where B 1, consider E n+1 = 3E n + 2E n 1 mod 7. Then A = 3, B = 2, and = 17. Since 17 is a nonresidue mod 7, and B 2 = 4 satisfies 4 3 1 mod 7, our theorem shows that the period k 3,2 divides 2(7 + 1) 3 = 48 (and, in fact, is 48). In general, we note that ord(b 2 ) is at most (p 1)/2 by Fermat s theorem, so the bound in Theorem 9 could be as high as 2(p + 1)(p 1)/2 = p 2 1, the bound at the beginning of this paper. This bound is actually achieved by E n+1 = 3E n + 2E n 1 mod 37. This sequence begins 0, 1, 3, 11, 2, 28, 14, 24, 26, 15, 23, 25, 10, 6, 1, 15, 10, 23, 15, 17,... and has period 1368 = (37 + 1)(37 1), indicating that all possible consecutive pairs other than 0, 0 appear in this Fibonacci sequence mod 37. References [1] D.S. Dummit and R.M. Foote, Abstract Algebra, 3rd edition. John Wiley and Sons Inc., 2004. [2] S.E. Mamangakis, Remarks on the Fibonacci series modulo m, Amer. Math. Monthly 68 (1961), 648 649. [3] R. G. E. Pinch, Recurrent sequences modulo prime powers, in Cryptography and coding, III (Cirencester, 1991), 297 310, Inst. Math. Appl. Conf. Ser. New Ser., 45, Oxford Univ. Press, New York, 1993. [4] H. C. Li, Complete and reduced residue systems of second-order recurrences modulo p, Fib. Quart. 38 (2000), 272 281. [5] D.W. Robinson, The Fibonacci Matrix Modulo m, Fib. Quart. 1 (1963), 29 36. [6] D. Vella and A. Vella, Cycles in the Generalized Fibonacci Sequence modulo a Prime, Math. Mag. 75 (2002), 294 299. [7] D. D. Wall, Fibonacci Series Modulo m, Amer. Math. Monthly 67, (1960) 525 532. Department of Mathematics, Irvine Valley College, Irvine, CA 92618 E-mail address: sgupta@ivc.edu Department of Mathematics, Simon Fraser University, Burnaby, British ColumbiaV5A 1S6 E-mail address: parousia rockstroh@sfu.ca Department of Mathematics, Harvey Mudd College, Claremont, CA 91711 E-mail address: su@math.hmc.edu