Fixed Points of -Fibonacci Sequences
Abstract.
A -Fibonacci sequence is a binary recurrence sequence where , , and . These sequences are known to be periodic modulo every positive integer greater than . If the length of one shortest period of a -Fibonacci sequence modulo a positive integer is equal to the modulus, then that positive integer is called a fixed point. This paper determines the fixed points of -Fibonacci sequences according to the factorization of and concludes that if this process is iterated, then every modulus greater than 3 eventually terminates at a fixed point.
Mathematics Subject Classifications. 11B39, 11B50
Keywords. Fibonacci sequence, Pisano period, fixed points
The results of this paper were presented at the 21st International Fibonacci Conference, hosted at Harvey Mudd College, July 8, 2024.
1. Introduction
Perhaps the most popular sequence of all, the Fibonacci sequence is a binary recurrence defined by , , and and has been studied so thoroughly that discovering new properties at all is almost as surprising as the property discovered. The focus of this paper is a particular property that was first recognized in 1877 by Lagrange [10]: the terms in the Fibonacci sequence modulo (i.e. the one’s place digits) repeat every terms. Inquiry regarding the periodicity of the sequence modulo a positive integer has continued and in 2003 it was proven by Everest, Shparlinski, and Ward [4] that every binary recurrence sequence is periodic modulo a positive integer .
Define the Pisano period as the length of one (shortest) period of the Fibonacci sequence modulo . The Pisano period is denoted and can be recursively applied: denote and for . The trajectory of an integer is the set of integers given by recursively applying the Pisano period to . How long can the trajectory of a starting integer be?
A fixed point is a positive integer such that . A -periodic point is a -tuple of positive integers such that . In 1969, Fulton and Morris [6] determined the fixed points of the Fibonacci sequence and proved that the trajectory of every integer will eventually terminate at a fixed point. In 2020, Trojovská [14] showed that there are no -periodic points in the Fibonacci sequence.
Theorem 1.1 (Fixed Point Theorem, Fulton and Morris [6]).
For and integer , if and only if .
Theorem 1.2.
(Iteration Theorem, Fulton and Morris [6]) For every integer , there exists a least integer such that .
Example.
Trajectories of the integers in the Fibonacci sequence for .
Let denote the number of iterations of the Pisano period of until the trajectory reaches a fixed point. For example, and .
Theorem 1.3.
.
Closely related are -Fibonacci sequences defined by , , and . The Pisano period of these sequences is commonly denoted . What are the fixed points of -Fibonacci sequences? Some fixed points have already been calculated:
Theorem 1.4 (Falcon and Plaza [5]).
If is even, then . If is odd, then .
It follows that if , then and if , then . The main result of this paper extends the results of Fulton & Morris [6], establishing that for each , fixed points may be classified according to one of four categories of . Essentially, for every the trajectory of every terminates at a fixed point (or is a -periodic point).
Theorem 1.5 (-Fixed Point Theorem).
Let be the prime factorization of for a positive integer , then for every modulus and for , if and only if:
-
(romanenumi)
and .
-
(romanenumi)
and or where .
-
(romanenumi)
and or .
-
(romanenumi)
and or where .
with the only exception when , which has the -periodic points and .
Theorem 1.6 (-Iteration Theorem).
For every , there exists a positive integer such that , with the only exception when , which has the -periodic points and .
Note that every positive integer belongs to exactly one of the four categories in Theorem 1.5. Perhaps it is surprising that the prime factors of are important in finding fixed points. Famously, the limit of the ratio between successive Fibonacci numbers is the number where Binet’s formula gives the th Fibonacci number:
Something analogous occurs for -Fibonacci sequences (see [5, 11]). Note the similarity when :
5 or or 29 or or or or or or or or or or or or or
2. Preliminaries
Used in the proof of Theorems 1.5 and 1.6 are select results for -Fibonacci sequences. Renault [11] generalizes a result of Wall [15] and establishes a particular type of multiplicativity for among the prime factors of .
Theorem 2.1 (Renault [11]).
Let be the prime factorization of , then
Another result generalized by Renault [11] concerns Wall-Sun-Sun primes - conjectured primes where . For the Fibonacci sequence, these primes were originally investigated by Wall [15] in 1960 but became exceedingly popular in the 1990s when Sun & Sun [13] demonstrated that the first case of Fermat’s Last Theorem is false for an exponent only if is a Wall-Sun-Sun prime. No Wall-Sun-Sun prime has been found, though infinitely many are conjectured to exist. For -Fibonacci sequences, any prime such that is a -Wall-Sun-Sun prime. These are much more common: if , then and .
Theorem 2.2 (Renault [11]).
For all and all primes , there exists a maximal such that . For all , .
Theorem 2.3 (Renault [11]).
If , then .
For -Fibonacci sequences, Bouazzaoui [2, 3] showed that a prime that does not divide is a -Wall-Sun-Sun prime if and only if is not -rational. Results from Harrington & Jones [7, 8, 9] establish necessary and sufficient conditions for precisely which primes that do divide are -Wall-Sun-Sun primes. In particular, Harrington & Jones establish that no odd prime divisor of is ever a -Wall-Sun-Sun prime.
Theorem 2.4 (Harrington & Jones [7]).
Let be a prime divisor of . Then is a -Wall-Sun-Sun prime if and only if and .
In [1] the authors proved explicit formulas for , which depend upon the parity of :
Theorem 2.5 ([1], Theorems 4.25 and 4.28).
Let be an integer and let , then:
-
•
If is odd, then .
-
•
If is even, then where is the 2-adic valuation.
In an effort to characterize the behavior of for a prime , Renault [11] develops a trichotomy depending on the quadratic residues of modulo .
Theorem 2.6 (Renault [11]).
Let be an odd prime.
-
•
If is a nonzero quadratic residue modulo , then .
-
•
If is a quadratic non-residue modulo , then .
-
•
If , then .
In light of Theorem 2.6, it is possible to completely determine for primes that divide .
Theorem 2.7.
If is an odd prime and , then, and .
Proof.
Notice that , hence . It follows that . Similarly, if a prime , then . Thus, . Notice that . It follows that . Hence for all . The condition that is equivalent to the condition that , contradicting the assumption that is an odd prime. Thus, if , then . ∎
Harrington & Jones [7] discovered the value of when is an even integer.
For the proof of the main result, it is important to also understand the nature of when is odd.
Theorem 2.9 (Renault [11]).
If is odd, then .
Theorem 2.10.
If , then . Otherwise, .
Proof.
Consider the -Fibonacci sequence modulo . If , the sequence becomes , with a period of . If , the sequence is with a period of . If , the sequence is again with a period of . ∎
Theorem 2.11.
For all odd primes , if is a prime such that , then , with equality only if .
Proof.
If is a nonzero quadratic residue modulo , then and . If is a quadratic non-residue, then . Since is an odd prime, is composite, and is therefore composed of prime factors smaller than . Finally, if , then by Theorem 2.6 . It is clear that . Since the integers modulo form a cyclic group of order at most , it follows that . Hence, . ∎
3. Proof of the K-Fixed Point Theorem
Theorem 3.1.
If and for , where is the prime factorization of , then .
Proof.
Suppose and for , where is the prime factorization of . By Theorem 2.1,
(1) |
By Theorem 2.4, neither , , nor any is a -Wall-Sun-Sun prime. By Theorems 2.2 and 2.9, . By Theorem 2.10, . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
These may be substituted into equation (1) to obtain:
∎
Theorem 3.2.
If and , then for , where is the prime factorization of .
Proof.
Suppose and . Let where is the prime factorization of . Note that if then . By Theorem 2.1,
(2) |
By Theorem 2.11, if , then for all . By Theorem 2.2, and by Theorem 2.6, if is a quadratic residue, or if is not a quadratic residue modulo . Either way, it follows that and is the largest factor of that divides , that is, .
By Theorem 2.4, neither , , , nor are -Wall-Sun-Sun primes. By Theorems 2.2 and 2.9, . By Theorems 2.2 and 2.10, . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
Note that and , and . Thus, . But this implies that , which is a contradiction. Equation (7) is reduced to:
(3) |
Recall that by hypothesis, . Suppose , then is the largest power of in (3), implying . However, this contradicts the hypothesis . Suppose , then is the largest power of in (2), implying . However, this contradicts the hypothesis . Thus, , and equation (3) is reduced to:
where is the prime factorization of . ∎
Theorem 3.3.
If and or for , where is the prime factorization of and , then .
Proof.
Theorem 3.4.
If and , then or for , where is the prime factorization of and .
Proof.
Suppose and . Let where is the prime factorization of and . Note that if then . By Theorem 2.1,
(5) |
By Theorem 2.11, if , then for all . By Theorem 2.2, and by 2.6, if is a quadratic residue and if is not a quadratic residue modulo . Either way, it follows that is the largest factor of that divides , that is, .
By Theorem 2.4, neither , , nor are -Wall-Sun-Sun primes. By Theorems 2.2 and 2.8, . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
Note that and , and . Thus, . But this implies that , which is a contradiction. Equation (5) is reduced to:
where is the prime factorization of and . ∎
Theorem 3.5.
If and or for , where is the prime factorization of and and , then .
Proof.
Suppose and . Then by Theorem 2.1, . By Theorem 2.9, . By Theorem 2.10, . Hence, . Note, this also establishes the -periodic point .
Suppose for , where is the prime factorization of and and . By Theorem 2.4, neither , , nor any is a -Wall-Sun-Sun prime. By Theorem 2.1,
(6) |
By Theorem 2.5, . By Theorem 2.10, . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
These may be substituted into equation (6) to obtain:
∎
Theorem 3.6.
If and , then or for , where is the prime factorization of and and .
Proof.
Suppose and . Let where is the prime factorization of . Note that if then . By Theorem 2.1,
(7) |
By Theorem 2.11, if , then for all . By Theorem 2.2, and by 2.6, if is a quadratic residue and if is not a quadratic residue modulo . Either way, it follows that is the largest factor of that divides , that is, .
By Theorem 2.4, neither , , , nor are -Wall-Sun-Sun primes. By Theorem 2.5, . By Theorems 2.2 and 2.10, . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
Note that and , and . Thus, . But this implies that , which is a contradiction. Equation (7) is reduced to:
(8) |
Recall that by hypothesis, . Suppose , then is the largest power of in (3), implying . However, this contradicts the hypothesis . Thus, or . Suppose , then is the largest power of in (3), implying . However, this contradicts the hypothesis . Thus, , and equation (3) is reduced to:
where is the prime factorization of and and . ∎
Theorem 3.7.
If and or for , where is the prime factorization of and , then .
Proof.
Suppose and . By Theorem 2.8, . Suppose for , where is the prime factorization of and . By Theorem 2.1,
(9) |
By Theorem 2.4, is a -Wall-Sun-Sun prime, so . Also by Theorem 2.4, no other is a -Wall-Sun-Sun prime. By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
These may be substituted into equation (9) to obtain:
∎
Theorem 3.8.
If and , then or for , where is the prime factorization of and .
Proof.
Suppose and . Let where is the prime factorization of . Note that if then . By Theorem 2.1,
(10) |
By Theorem 2.11, if , then for all . By Theorem 2.2, and by Theorem 2.6, if is a quadratic residue, or if is not a quadratic residue modulo . Either way, it follows that is the largest factor of that divides , that is, .
By Theorem 2.4, is a -Wall-Sun-Sun prime where but neither , , nor are -Wall-Sun-Sun primes. By Theorem 2.5, for . Specifically, if , then . If , thus forming a fixed point. By Theorems 2.2 and 2.10, if and if . By Theorem 2.2, for . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . It follows that
Note that and , and . Thus, . But this implies that , which is a contradiction. Equation (10) is reduced to:
(11) |
Recall that by hypothesis, if , then . Suppose , then is the largest power of in (3), implying . Because , this contradicts the hypothesis that . Thus, equation (11) is reduced to:
where is the prime factorization of and . ∎
4. Proof of the K-Iteration Theorem
Theorem 4.1 (Renault [11]).
For all and , is even.
Theorem 4.2.
If is odd, then is not a -Wall-Sun-Sun prime.
Proof.
Note that by Theorem 2.9 that for odd . It remains to show that for odd . If , then the -Fibonacci sequence (modulo 4) becomes 0, 1, 1, 2, 3, 1, 0, 1, , with period 6. If , then the -Fibonacci sequence (modulo 4) becomes 0, 1, 3, 2, 1, 1, 0, 1, , again with period 6. Hence, for all odd . ∎
Theorem 4.3.
If , then for all , .
Proof.
Suppose . By Theorem 2.4, is a -Wall-Sun-Sun prime if and only if and . In this case, by Theorem 2.8 . Hence, for all . If and , then for all , because this is precisely one family of -fixed points by Theorem 3.4. On the other hand, suppose that is an odd prime. By Theorems 2.2 and 2.6, . Recursively applying the Pisano period yields . Iterating the Pisano period always preserves a factor of by induction. Thus, for all , . ∎
Theorem 4.4.
If , then there exists a positive integer such that for all , for any .
Proof.
Suppose . By Theorem 2.2, there is a maximal such that and for , . Applying the Pisano period again yields
By Theorem 2.6, since , it follows that for any positive integer . As the Pisano period is recursively applied, the highest power of that carries to the next iteration is strictly decreasing. Applying the Pisano period precisely times ensures that the highest power of that emerges is . Hence, there exists a positive integer such that for all , . ∎
Theorem 4.5.
If and , then there exists an such that for all , for , where is the prime factorization of .
Proof.
Suppose and for and , where is the prime factorization of . By Theorem 2.1,
(12) |
By Theorem 4.1, . By Theorem 2.9, implying that . By Theorem 2.10, , implying that . By Theorems 2.2 and 2.8, , implying . By Theorems 2.1, 2.8, and 2.10, , implying . By Theorem 4.3, if any , then the corresponding is preserved for all , and . By Theorem 4.4, for any , vanishes for some sufficiently large , and . Hence, for some , where is the prime factorization of . ∎
Theorem 4.6.
If and , then there exists an such that for all , for , where is the prime factorization of . And if or , then and .
Proof.
Suppose and for and , where is the prime factorization of . By Theorem 2.1,
(13) |
By Theorem 4.1, . If , then the -Fibonacci sequence must reduce to , so . In this case, the iterative Pisano period cycles at the 2-periodic point . Otherwise, either , where and is an odd number greater than 1, or , where . By Theorem 2.9, . If , then . Since and , . Else, if , and since 2 is not a -Wall-Sun-Sun prime by Theorem 4.2, then , so . By Theorem 4.3, if any , then the corresponding is preserved for all , and . By Theorem 2.6, and by Theorem 2.7, since is odd and divides . By Theorem 4.4, for any , vanishes for some sufficiently large , and . Hence, for some , . If there is at least one such , then where is the prime factorization of ; otherwise, . Finally, since , there is a 2-periodic point: . ∎
Theorem 4.7.
If and , then there exists an such that for all , for , where is the prime factorization of .
Proof.
Suppose and suppose for and (and if ), where is the prime factorization of . By Theorem 2.1,
(14) |
By Theorem 4.3, if any , then the corresponding is preserved for all , and . By Theorem 4.4, for any , vanishes for some sufficiently large , and . Hence, there is a positive integer such that for all , where is the prime factorization of . ∎
5. Proof of Theorem 1.3
Let be an odd prime factor of that is coprime to all fixed points, and define by
where is the -adic valuation of . By Theorem 2.6, . Since this number is even if , must have at least two prime factors. For arbitrarily large ,
Since , . Hence is reached in at most steps, where one step represents the calculation of the Pisano period for a certain . While one iteration of the Pisano period always accomplishes at least one step, as any term may be chosen and separated out by Theorem 2.1, it may accomplish more than one step if multiple ’s are present.
Any number where must be of the form , where for all as seen in the previous section. Note that by Theorem 2.6, all factors of remain constant upon iteration of the period, as , and the only factors that vary are powers of and . If is not a multiple of a fixed point, then the Pisano period may be applied recursively to achieve a fixed point. The maximum number of such iterations is 5, when .
Now suppose is a multiple of a fixed point but not a fixed point itself. The only primes whose -adic valuations may change on the iteration of the Pisano period when are 2 and 3; hence let . Suppose . Then, , , and ; likewise, , , and . Since is a multiple of a fixed point, and , and because is not a fixed point itself there must be at least one additional factor of either 2 or 3. If , then , and if , then . Hence decreases by at least 1 until a fixed point is reached, and may not be greater than . The maximum number of iterations of the Pisano period necessary to reach a fixed point is thus .
If , then the trajectory of will end at either the 2-periodic point or a fixed point that is a multiple of 12. If for at least one , then for since and . As above, , , , and , but . If the trajectory of ends at a multiple of 12 and , then will again decrease by at least 1 until a fixed point is reached, and the maximum number of iterations is . Two extra steps may be necessary if the trajectory terminates at the 2-periodic point.
If , then any number with will reach a fixed point after at most one more iteration, since any combination of powers of and ’s is a fixed point.
If , then for all ; hence, the powers of vanish in at most steps, giving total iterations.
Combining these yields an overall upper bound of on the number of iterations of the Pisano period required to reach a fixed point; hence
Corollary 5.1.
Let be the fixed point that terminates the trajectory of ; if and terminates at the 2-periodic point, define . Then .
Proof.
The first part of the proof of Theorem 1.3 shows that there can be at most steps in the reduction to , and by Theorem 2.6,
since the minimum possible is 3. If is such that , and is a multiple of a fixed point, each successive application of the Pisano period reduces . If is not a multiple of a fixed point, it is multiplied by no more than 24 until a fixed point is reached. Therefore,
and
∎
6. Final Thoughts
A general binary recurrence sequence is determined by the four parameters where
For example, the Fibonacci sequence is determined by , the Lucas sequence by , the Pell sequence by , the Jacobsthal sequence by , etc. When the initial values are and , the recurrence is called an -Fibonacci sequence. In all of these cases, the binary recurrence sequence is periodic modulo a positive integer [4]. Naturally, the Pisano period has been considered for many binary recurrence sequences. Is it possible to determine the fixed points for general binary recurrence sequences?
Sequence | Pisano Periods for |
---|---|
Fibonacci | 3,8,6,20,24,16,12,24,60,10,24,28,48,40,24,36,24,18,60,16,30,48,24,… |
Lucas | 3,8,6,4,24,16,12,24,12,10,24,28,48,8,24,36,24,18,12,16,30,48,24,… |
Pell | 2,8,4,12,8,6,8,24,12,24,8,28,6,24,16,16,24,40,12,24,24,22,8… |
Jacobsthal | 6,2,4,6,6,2,18,4,10,6,12,6,12,2,8,18,18,4,6,10,22,6,… |
It is well-established that the Pisano period of the Lucas sequence differs from the Pisano period of the Fibonacci sequence only when is a multiple of [12]. And note that the Pell sequence is simply the -Fibonacci sequence when .
Corollary 6.1.
In the Lucas sequence, is a fixed point if and only if .
Corollary 6.2.
In the Pell sequence, is a fixed point if and only if for
The Jacobsthal sequence is particularly interesting as a different type of sequence where . Note that the results of Renault used in the proofs of Theorem 1.5 used various aspects of where and . In the Jacobsthal sequence, note that .
Conjecture 6.3.
In the Jacobsthal sequence, is a fixed point if and only if for
Renault’s Theorem 2.6 is originally stated for -Fibonacci sequences, which is less controllable when . Let denote the -Pisano period of the -Fibonacci sequence modulo .
Theorem 6.4 (Renault [11]).
Let be an odd prime such that . Then,
-
•
if is a nonzero quadratic residue modulo , then
-
•
if is a quadratic nonresidue, then except when , in which case .
-
•
if , then .
An outlying case occurs when . There are five degenerate cases: and and . These occur when the ratio of the roots of the characteristic polynomial is a root of unity or if .
If , then , and the sequence is a repeating six-term cycle: . Note that if , then but for all other , . Hence, the only fixed point is . Similarly, if , then , and the sequence is a repeating three-term cycle: . Note that modulo any , the -sequence always has a period of 3. Hence, the only fixed point is .
If instead, , then and the sequence is exactly: , hence every positive integer is a fixed point, since modulo the sequence repeats with a length of . Somewhat similarly, if , then and whenever is even and whenever is odd. Then, fixed points occur whenever is even.
And if , then , and the sequence is a repeating four-term cycle: . Note that if , then and for all other , . Hence, the only fixed points are and .
For other values of , and something more familiar occurs.
Conjecture 6.5.
Let be the prime factorization of for and . Suppose then, for every modulus and for , fixed points occur if and only if
-
(i)
and where or
-
(ii)
and where or where
-
(iii)
and where and for ,
and when -
(iv)
and where or or where
-
(v)
and or .
Suppose instead that , then for every modulus and for , fixed points occur if and only if
-
(i)
and or where
-
(ii)
and where or
-
(iii)
and where or
-
(iv)
and where or or where
-
(v)
and where or where .
It appears that in the previous conjecture, only one prime has powers that are fixed points for any given ; let this be the critical prime for the -Fibonacci sequence. However, this prime is not always the smallest prime that divides the , nor always the largest. What is the behavior of the critical prime in general? A singular case occurs when , there is no critical prime; , but powers of are not fixed points.
7. Acknowledgements
References
- [1] B. Benfield and O. Lippard. Connecting zeros in Pisano periods to prime factors of -Fibonacci numbers. Publication pending, 2024.
- [2] Z. Bouazzaoui. Fibonacci numbers and real quadratic p-rational fields. Periodica Math. Hungarica, 81(1):123–133, 2020.
- [3] Z. Bouazzaoui. On periods of Fibonacci sequences and real quadratic p-rational fields. Fibonacci Quart., 58(5):103–110, 2020.
- [4] G. Everest, A. van der Poorten, I. Sharplinski, and T. Ward. Recurrence Sequences. Rhode Island, USA: American Mathematical Society, 2004.
- [5] S. Falcon and Á. Plaza. k-Fibonacci sequences modulo m. Chaos, Solitons & Fractals, 41(1):497–504, 2009.
- [6] J. Fulton and W. Morris. On arithmetical functions related to the Fibonacci numbers. Acta Arith., 2(16):105–110, 1969.
- [7] J. Harrington and L. Jones. A note on generalised Wall–Sun–Sun primes. Bull. Australian Math. Soc., 108(3):373–378, 2023.
- [8] L. Jones. Generalized Wall-Sun-Sun primes and monogenic power-compositional trinomials. Albanian J. Math., 17(2), 2023.
- [9] L. Jones. A new condition for -Wall–Sun–Sun primes. Taiwanese J. Math., 28(1):17–28, 2024.
- [10] J. L. Lagrange. Oeuvres de Lagrange. Gauthier Villars, Paris, 7:5–182, 1877.
- [11] M. Renault. The period, rank, and order of the (a, b)-Fibonacci sequence mod m. Math. Magazine, 86(5):372–380, 2013.
- [12] N. J. A. Sloane and The OEIS Foundation Inc. The on-line encyclopedia of integer sequences A106291. http://oeis.org/A106291, 2021.
- [13] Z.-H. Sun and Z.-W. Sun. Fibonacci numbers and Fermat’s last theorem. Acta Arith., 60(4):371–388, 1992.
- [14] E. Trojovská. On periodic points of the order of appearance in the Fibonacci sequence. Mathematics, 8(5):773, 2020.
- [15] D. D. Wall. Fibonacci series modulo m. Amer. Math. Monthly, 67(6):525–532, 1960.