The 2-adic valuation of generalized Fibonacci sequences with an application to certain Diophantine equations
Bartosz Sobolewski

TL;DR
This paper investigates the 2-adic valuation of generalized Fibonacci sequences, derives bounds for solutions to related Diophantine equations, and explores connections with p-regular sequences, advancing understanding of these number sequences.
Contribution
It provides explicit formulas for the 2-adic valuation of 2k-nacci sequences and applies these to solve specific Diophantine equations, extending to a broader family of sequences.
Findings
Explicit 2-adic valuation formulas for 2k-nacci sequences
Bounds on factorials expressed as products of these sequences
Potential links between these sequences and p-regular sequences
Abstract
In this paper we focus on finding all the factorials expressible as a product of a fixed number of -nacci numbers with . We derive the 2-adic valuation of the -nacci sequence and use it to establish bounds on the solutions of the initial equation. In addition, we specify a more general family of sequences, for which we can perform a similar procedure. We also investigate a possible connection of these results with -regular sequences.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 11 | 19 | 27 | 35 | 43 | 51 | 59 | 67 | 75 | 84 |
| 3 | 13 | 22 | 31 | 40 | 50 | 59 | 68 | 77 | 87 | 96 |
| 4 | 11 | 19 | 28 | 36 | 44 | 52 | 60 | 68 | 76 | 84 |
| 5 | 14 | 25 | 35 | 46 | 56 | 67 | 77 | 88 | 98 | 109 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematical Dynamics and Fractals · semigroups and automata theory · Advanced Mathematical Identities
The 2-adic valuation of generalized Fibonacci sequences with an application to certain Diophantine equations.
Bartosz Sobolewski
Jagiellonian University, Faculty of Mathematics and Computer Science, Institute of Mathematics, Łojasiewicza 6, 30 - 348 Kraków, Poland
Abstract.
In this paper we focus on finding all the factorials expressible as a product of a fixed number of -nacci numbers with . We derive the 2-adic valuation of the -nacci sequence and use it to establish bounds on the solutions of the initial equation. In addition, we specify a more general family of sequences, for which we can perform a similar procedure. We also investigate a possible connection of these results with -regular sequences.
Key words and phrases:
generalized Fibonacci sequences, Diophantine equations, factorials, -adic valuation
2010 Mathematics Subject Classification:
11B39, 11B65, 11D99
1. Introduction
For a fixed integer define the generalized Fibonacci (-nacci) sequence as follows:
[TABLE]
Notice, that for we obtain the usual Fibonacci sequence, which has already been studied extensively. In this paper we will mostly restrict ourselves to the case of even and write for some . The main motivation for our considerations is to completely solve the equation
[TABLE]
in positive integers .
For prime define the -adic valuation of a non-zero integer as and . Equation (2) for the case of and was solved by Lengyel and Marques in [5] by means of computing and then applying this result to obtain an effective upper bound on and . In this paper we will follow a similar procedure for -nacci sequences with .
To begin with, in Theorem 2 we specify a more general family of integer sequences for which we are able to solve equation (2) and show a general procedure to achieve this goal. Informally speaking, we need the term to grow at least exponentially and – at most polynomially with an exponent less than 1, for some prime.
Theorem 3 provides a simple expression for when and the subsequent corollary shows that the sequence satisfies the conditions of Theorem 2. We then find all the solutions of equation (2) for small values of and .
We also briefly discuss how our results are related to -regular sequences. Recall that a sequence with rational values is -regular iff its -kernel
[TABLE]
is contained in a finitely generated -module. More details on regular sequences can be found in [1] and [2]. As we note later, the formula given in Theorem 3 implies -regularity of . However, it turns out that exponential growth of a sequence and -regularity of still do not guarantee that the assumptions of Theorem 2 are met. In this case we cannot determine, using the shown method, whether the equation (2) has only a finite number of solutions.
2. Main results
As we mentioned before, we start with describing a general situation in which equation (2) can be completely solved. For two sequences and we denote if there exists a positive constant such that for sufficiently large . Similarily, we write if there exists a positive constant such that for sufficiently large . First, we give an auxiliary lemma, also used in [5], which is an easy corollary from Legendre’s formula for .
Lemma 1**.**
For any integer and prime , we have
[TABLE]
Theorem 2**.**
Let be a sequence of positive integers such that
[TABLE]
Let be a prime. Assume that
[TABLE]
for some constant . Then for each fixed positive integer the equation
[TABLE]
has only a finite number of solutions in .
Proof.
We adjust the method used in [5] to a more general setting. Roughly speaking, we will show that if (5) is satisfied and we let both sides grow, then the -adic valuation of the right hand side increases slower than . For each value of we proceed in the same way, so for simplicity assume that . By our assumptions, there exist some positive constants and an integer such that and for .
Suppose that for . There is only a finite number of solutions with because grows at least exponentially. By Lemma 1, for we get
[TABLE]
where the leftmost inequality is true for . On the other hand,
[TABLE]
Hence, for
[TABLE]
We need another inequality with bounded from above by . By the assumption (3)
[TABLE]
Furthermore, for the following inequality holds:
[TABLE]
and hence
[TABLE]
Combining inequalities (7) and (9) yields
[TABLE]
where . But implies that the exponent in (10) is strictly greater than 0, so (10) holds only for finitely many . Thus, by inequality (9) we obtain an upper bound for all .
Now assume without loss of generality that for . Observe that for each fixed the problem is equivalent to solving the equation (5) with and the left hand side divided by a positive integer constant . Then in (6) and (8) we need to replace with which only changes the set of for which both of those inequalities hold. But this leads to the same conclusion as before. ∎
Remark 1**.**
Observe that the method of Theorem 2 does not work if we let be unbounded. Indeed, the constant in (10) becomes arbitrarily small as increases, so we cannot use the subsequent argument. Informally speaking, the -adic valuation of the expression might grow too fast for the method to work.
Remark 2**.**
The condition (3) is satisfied for sequences expressible in Binet form. Hence, for linear recurrence sequences, we usually need to check only the condition (4) for some . One might also ask whether we can replace it with some other assumption. Shu and Yao proved in [7] a condition on a binary recurrence sequence, which guarantees -regularity of , and mentioned a possible generalization to recurrences of higher order. It is known that -regular sequences grow at most polynomially, which is a result by Allouche and Shallit [1]. Unfortunately, this does not give a bound on in (4) and the proof of Theorem 2 fails if . Therefore, some additional information besides regularity needs to be known about in order to put the theorem to use.
The reasoning in Theorem 2 provides an upper bound on the solutions of the equation (5) if we are able to find the values of and . We will show that it is indeed the case for our sequence . We start by determining the -adic valuation of each . A similar characterization of for is given by Lengyel in [3] and [4] (by a different method).
Theorem 3**.**
If , then the sequence satisfies the following conditions:
[TABLE]
The proof of the theorem is presented in Section 3.
Remark 3**.**
Theorem 3 implies that is a -regular sequence. Note that this conclusion does not follow directly from the results of [7], as we consider recurrence of any even order.
Now we proceed to show that Theorem 2 can be applied to our sequence . The following lemma establishes a lower bound on .
Lemma 4**.**
For all we have
[TABLE]
where is the unique real root of the equation lying in the interval .
Proof.
By lemma 3.6 in [8] there is indeed exactly one such , which in addition lies in the interval . For the inequality (11) follows from starting conditions for and the fact that . Then we proceed easily by induction. ∎
Corollary 5**.**
If then the equation (2) has only a finite number of solutions in and this number can be effectively bounded from above.
Proof.
By theorem 3 we have
[TABLE]
where the last inequality is true for example for . By lemma 4
[TABLE]
for , because . Hence, we can take and apply the method used in Theorem 2 to find an upper bound on . ∎
We could apply Corollary 5 to find all non-trivial solutions (with for each ) of the equation (2) for given and . However, using the explicit form of , one can make the bounds much more precise. We will once again follow the approach shown in [5]. The computations are quite similar to those in Theorem 2, so we omit the details.
By Lemma 1 and Theorem 3, we obtain
[TABLE]
On the other hand, from Lemma 4, and inequality (8), we get for
[TABLE]
where is the value of in Lemma 4 corresponding to . The AM–GM inequality applied to all , together with (2) and (13), yields
[TABLE]
This gives an upper bound on and, consequently, on each . As an example, in the table below we give the upper bound on obtained for -nacci sequences with and .
Using this result we find that the only non–trivial solution of the equation (2) with and appears in the -nacci sequence and is the single term .
3. Proof of Theorem 3
In order to study the 2-adic valuation of it is enough to focus on divisible by as all the other terms are odd. In this case we can write for odd and . We will divide our proof into two main parts.
First, we will show by induction on and that consecutive terms of the sequence , starting with , satisfy a particular system of congruences, given in Lemma 7. However, as it will turn out, this argument works only for , where depends on . Moreover, the initial system of congruences for involves some constants, which need to be computed.
Therefore, we will have to employ another method for . We will show how to obtain the values of in terms of for any and then proceed by induction. As a result, we will be able to express in quite concrete form, given in Lemma 10, involving binomial coefficients weighted by powers of 2.
For simplicity, we introduce the following matrix notation:
[TABLE]
where . By we will denote the companion matrix of which has the form
[TABLE]
where the entries above the diagonal and in the bottom row are equal to 1 and all other entries are zero. It is easy to check that and , so for any positive integers and we have
[TABLE]
First, we state an identity involving the terms of the sequence .
Lemma 6**.**
The matrix is invertible and its determinant is odd. Moreover, for all positive integers we have the formula
[TABLE]
Proof.
It is easy to see that is even iff is divisible by . Therefore,
[TABLE]
where zeros in the latter matrix appear only at positions corresponding to and in , that is, at and such that . By subtracting the first row from all the others, we easily obtain , which proves the first part of the statement.
[TABLE]
The first coordinate gives us the formula for . ∎
The identity (18) might seem difficult to apply without an explicit expression for . However, it plays a major role in deriving the congruence relations in the following lemma.
Lemma 7**.**
For any the following congruence relation holds:
[TABLE]
Moreover, if a column vector satisfies
[TABLE]
where , then for any and we also have
[TABLE]
Proof.
Obviously (19) is true for . Now assume that (19) holds for some . We can write
[TABLE]
where are some positive integers for . Define also by the same recurrence as . Then (21) is satisfied for . For convenience denote by the vector with 1 on the -th position (counting from 0) and 0 on the other positions, and additionally define
[TABLE]
for . It follows from the definition of that .
Fix any . The formula (18) yields
[TABLE]
Therefore, using (21) we get
[TABLE]
for some rational such that is an integer. In Lemma 6, however, we showed that is odd which means that must be an integer. Thus,
[TABLE]
from which (19) follows. If we choose then the term in (7) is reduced modulo . We can take to complete the proof of (20) for .
To proceed by induction on notice that the index can be expressed as a sum of indices in the following way:
[TABLE]
We can then perform a similar computation as in (7) to get the desired result. ∎
Our specific choice of the divisor in (20) equal to is based on the observation of and is indeed effective in proving the formula for . The numbers in (21) are determined uniquely modulo . We are particularly interested in finding the value of which will directly give us the 2-adic valuation of for , provided that . However, as mentioned before, we need to develop another method to analyze the case when .
We start with deriving a formula for expressing in terms of .
Lemma 8**.**
Define as in (15). Then
[TABLE]
Proof.
Using the identity , one can show by induction that for any
[TABLE]
We know that is the only matrix satisfying for all . Thus, for each the coefficients at in (23) correspond to the -th row of (counting from 0). ∎
We are also going to need two standard identities involving binomial coefficients. For the convenience of the reader we include the proof.
Lemma 9**.**
For all positive integers we have
(a)* ,*
(b)* *
Proof.
For any fixed the formula (a) follows easily from induction on .
To prove (b) take any and consider the function
[TABLE]
for . It is easy to see that the left side of (b) is equal to evaluated at . Applying the Leibniz formula we get
[TABLE]
Substituting we get the desired result. ∎
The following lemma gives us an easily computable expression for subsequent terms .
Lemma 10**.**
Define the following column vectors in :
[TABLE]
for . Then for any we have
[TABLE]
Proof.
Using the form of given in Lemma 8, it is easy to see that
[TABLE]
Now fix . Applying Lemma 9 to each coordinate gives us
[TABLE]
One can check that
[TABLE]
so (24) is true for . Now assume that (24) holds for some . Using (25) and (26) we get
[TABLE]
where is equal to modulo 2. Thus, the coefficient at is equal to , so we can incorporate it into the sum. Finally, we obtain
[TABLE]
∎
We are now ready to prove Theorem 3.
Proof (of Theorem 3).
The term is even iff is divisible by , which proves that for . Observe that if , then , so by Lemma 8 for we have
[TABLE]
Looking at the first entry of this vector, we obtain
[TABLE]
Thus, for odd we get , hence for .
Now let for odd and , so that . We will further split the third case into two subcases, depending whether or . If then from (27) we obtain
[TABLE]
so .
We cannot extend the same argument to because we only know the congruence modulo . However, substituting and in (28) gives us a possible value , as defined in Lemma 7. Using Lemma 7 for any , we get in the first coordinate
[TABLE]
which again yields . ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J.-P. Allouche and J. Shallit, The ring of k 𝑘 k -regular sequences, Theor. Comput. Sci. 98 : 163–197 (1992).
- 2[2] J.-P. Allouche and J. Shallit, The ring of k 𝑘 k -regular sequences II, Theor. Comput. Sci. 307 : 3–29 (2003).
- 3[3] T. Lengyel, The order of Fibonacci and Lucas numbers, Fibonacci Quart. 33 : 234–239 (1995).
- 4[4] T. Lengyel, Divisibility properties by multisection, Fibonacci Quart. 41 : 72–79 (2003).
- 5[5] T. Lengyel and D. Marques, The 2-adic order of the Tribonacci Numbers and the equation T n = m ! subscript 𝑇 𝑛 𝑚 T_{n}=m! , J. Integer Seq. 17 : Article 14.10.1 (2014).
- 6[6] D. Marques, The order of appearance of product of consecutive Fibonacci numbers, Fibonacci Quart. 50 : 132–139 (2012).
- 7[7] Z. Shu and J.-Y. Yao, Analytic functions over ℤ p subscript ℤ 𝑝 \mathbb{Z}_{p} and p 𝑝 p -regular sequences, C. R. Math. 349 : 947–952 (2011).
- 8[8] D. A. Wolfram, Solving generalized Fibonacci recurrences, Fibonacci Quart. 36 : 129–145 (1998)
