The density of numbers $n$ having a prescribed G.C.D. with the $n$th Fibonacci number
Carlo Sanna, Emanuele Tron

TL;DR
This paper investigates the asymptotic density of positive integers n for which the gcd of n and the nth Fibonacci number is a fixed k, establishing its existence and providing a formula involving the Möbius function.
Contribution
It proves the existence of the asymptotic density for sets defined by gcd conditions with Fibonacci numbers and provides an explicit formula for this density.
Findings
Asymptotic density of _k exists for each k
Explicit formula for the density involving the Möbius function and least common multiples
Zero density occurs if and only if the set _k is empty
Abstract
For each positive integer , let be the set of all positive integers such that , where denotes the th Fibonacci number. We prove that the asymptotic density of exists and is equal to where is the M\"obius function and denotes the least positive integer such that divides . We also give an effective criterion to establish when the asymptotic density of is zero and we show that this is the case if and only if is empty.
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.
The density of numbers having a prescribed G.C.D. with the th Fibonacci number
Carlo Sanna
Dipartimento di Matematica
Università di Torino
via Carlo Alberto 10
10123 Torino, Italy
[email protected] http://orcid.org/0000-0002-2111-7596 and
Emanuele Tron
Institut de Mathématiques de Bordeaux
Université de Bordeaux
351 Cours de la Libération
33405 Talence, France
Abstract.
For each positive integer , let be the set of all positive integers such that , where denotes the th Fibonacci number.
We prove that the asymptotic density of exists and is equal to
[TABLE]
where is the Möbius function and denotes the least positive integer such that divides . We also give an effective criterion to establish when the asymptotic density of is zero and we show that this is the case if and only if is empty.
Key words and phrases:
asymptotic density; Fibonacci numbers; greatest common divisor
2010 Mathematics Subject Classification:
Primary: 11B37. Secondary: 11B39, 11B05, 11N25
1. Introduction
Let be a nondegenerate linear recurrence with integral values. The arithmetic relations between and are a topic which has attracted the attention of several researchers, especially in recent years. For instance, the set of positive integers such that is divisible by has been studied by Alba González, Luca, Pomerance, and Shparlinski [1], under the mild hypothesis that the characteristic polynomial of has only simple roots; and by André-Jeannin [2], Luca and Tron [11], Somer [17], and Sanna [14], when is a Lucas sequence. A problem in a sense dual to this is that of understanding when is coprime to . In this respect, Sanna [15, Theorem 1.1] recently proved the following result.
Theorem 1.1**.**
The set of positive integers such that has a positive asymptotic density, unless is a linear recurrence.
In this paper, we focus on the linear recurrence of Fibonacci numbers , defined as usual by and for all integers . For each positive integer , define the set
[TABLE]
Leonetti and Sanna [10, Theorems 1.1 and 1.3] proved the following:
Theorem 1.2**.**
If then its counting function satisfies
[TABLE]
for all . Furthermore, has zero asymptotic density.
Let be the rank of appearance, or entry point, of a positive integer in the sequence of Fibonacci numbers, that is, the smallest positive integer such that divides . It is well known that exists. Set also .
Our first result establishes the existence of the asymptotic density of and provides an effective criterion to check whether this asymptotic density is positive.
Theorem 1.3**.**
For each positive integer , the asymptotic density of exists. Moreover, if and only if if and only if .
Our second result is an explicit formula for the asymptotic density of .
Theorem 1.4**.**
For each positive integer , we have
[TABLE]
where is the Möbius function.
Notation
Throughout, we reserve the letters and for prime numbers. For a set of positive integers , we put for all , and we recall that the asymptotic density of is defined as the limit of the ratio , as , whenever this exists. As usual, , , and , denote the Möbius function, the number of divisors of a positive integer , and the greatest prime factor of an integer , respectively. We employ the Landau–Bachmann “Big Oh” and “little oh” notations and , as well as the associated Vinogradov symbol .
2. Preliminaries
The next lemma summarizes some basic properties of , , and the Fibonacci numbers, which we will implicitly use later without further mention.
Lemma 2.1**.**
For all positive integers , and all prime numbers , we have:
- (i)
* if and only if .* 2. (ii)
. 3. (iii)
, where is a Legendre symbol. 4. (iv)
* whenever .* 5. (v)
* if and only if .* 6. (vi)
. 7. (vii)
* for , while .*
Proof.
Facts (i)–(iii) are well-known (see, e.g., [12]). Fact (iv) follows quickly from the formulas for given by Lengyel [9]. Finally, (v)–(vii) are easy consequences of (i)–(iii) and the definition of . ∎
Now we state an easy criterion to establish if [10, Lemma 2.2(iii)].
Lemma 2.2**.**
* if and only if , for all integers .*
If is a set of positive integers, we define its set of nonmultiples as
[TABLE]
Sets of nonmultiples, or more precisely their complement sets of multiples
[TABLE]
have been studied by several authors, we refer the reader to [6] for a systematic treatment of this topic. We shall need only the following result.
Lemma 2.3**.**
If is a set of positive integers such that
[TABLE]
then has an asymptotic density. Moreover, if then .
Proof.
The part about the existence of is due to Erdős [4], while the second assertion follows easily from the inequality
[TABLE]
proved by Heilbronn [7] and Rohrbach [13]. ∎
For any , let us define
[TABLE]
The following is a well-known lemma, which belongs to the folklore.
Lemma 2.4**.**
For all , we have .
Proof.
It is enough noting that
[TABLE]
where we employed the inequality , valid for all positive integers . ∎
3. Proof of Theorem 1.3
We begin by showing that is a scaled set of nonmultiples.
Lemma 3.1**.**
For each positive integer such that , we have
[TABLE]
where
[TABLE]
Proof.
We know that implies . Hence, it is enough to prove that , for some positive integer , if and only if .
Clearly, for some positive integer , if and only if
[TABLE]
for all prime numbers .
Let be a prime number dividing . Then, for all positive integer , we have and consequently , so that
[TABLE]
In particular, recalling that since and thanks to Lemma 2.2, for we get
[TABLE]
which together with (3) gives
[TABLE]
Therefore, (2) holds if and only if .
Now let be a prime number not dividing . Then (2) holds if and only if
[TABLE]
That is, , which in turn is equivalent to
[TABLE]
since and are relatively prime.
Summarizing, we have found that , for some positive integer , if and only if for all prime numbers dividing , and for all prime numbers not dividing , that is, . ∎
Now we show that the series of the reciprocals of the ’s converges. The methods employed are somehow similar to those used to prove the result of [8]. (See also [3] for a wide generalization of that result.)
Lemma 3.2**.**
The series
[TABLE]
converges.
Proof.
Let be an integer and put . Clearly, is divisible by . Hence, we can write , where is a positive integer such that . Also, if and are known then can be chosen in at most ways. Therefore,
[TABLE]
where we also used the fact that for each prime number . By Mertens’ formula [18, Chapter I.1, Theorem 11], we have
[TABLE]
for all prime numbers . Put and . It is well known [18, Chapter I.5, Corollary 1.1] that for any fixed . Hence, for all prime numbers . Thus we have found that
[TABLE]
On the one hand, by partial summation and by Lemma 2.4, we have
[TABLE]
since . On the other hand, by the definition of , we have
[TABLE]
since . Hence, putting together (5), (6), and (7), we get the claim. ∎
Now we are ready for the proof of Theorem 1.3. If is a positive integer such that then, obviously, the asymptotic density of exists and is equal to zero. So we can assume , which in turn, by Lemma 2.2, implies that . Thanks to Lemma 3.2, we have
[TABLE]
while clearly . Hence, Lemma 2.3 tell us that has a positive asymptotic density. Finally, by Lemma 3.1 we conclude that the asymptotic density of exists and it is positive.
4. Proof of Theorem 1.4
We begin by introducing a family of sets. For each positive integer , let be the set of positive integers such that:
- (i)
; 2. (ii)
if for some prime number , then .
The essential part of the proof of Theorem 1.4 is the following formula for the asymptotic density of .
Lemma 4.1**.**
For all positive integers , the asymptotic density of exists and
[TABLE]
where the series is absolutely convergent.
Proof.
For all positive integers and , let us define
[TABLE]
Note that is multiplicative in its second argument, that is,
[TABLE]
for all relatively prime positive integers and , and all positive integers .
It is easy to see that if and only if and for all prime numbers dividing but not dividing . Therefore,
[TABLE]
for all . Moreover, given a positive integer which is relatively prime with , we have that and if and only if , which in turn is equivalent to being divisible by
[TABLE]
since and are relatively prime. Hence,
[TABLE]
for all , which together with (4) implies that
[TABLE]
for all , where
[TABLE]
Now, thanks to Lemma 3.2, we have
[TABLE]
Hence, the series in (8) is absolutely convergent.
It remains only to prove that as , and then the desired result follows from (10). We have
[TABLE]
as , since by Lemma 3.2 the last series is the tail of a convergent series and hence converges to [math] as . The proof is complete. ∎
At this point, by the definition of and by the inclusion-exclusion principle, it follows easily that
[TABLE]
for all . Hence, by Lemma 4.1, we get
[TABLE]
since every squarefree positive integer can be written in a unique way as , where and are squarefree positive integers such that and . Also note that the rearrangement of the series in (4) is justified by absolute convergence. The proof of Theorem 1.4 is complete.
Remark 4.2*.*
As a consequence of Theorem 1.4, note that if (or equivalently if , by Lemma 2.2) then the series in (1) evaluates to [math], which is not obvious a priori.
5. Generalization to Lucas sequences
In order to simplify the exposition, we chose to give our results for the sequence of Fibonacci numbers. However, they can be easily generalized to every nondegenerate Lucas sequence. We recall that a Lucas sequence is an integral linear recurrence satifying , , and , for all integers , where and are relatively prime integers; while “nondegenerate” means that and that the ratio of the roots of the characteristic polinomial is not a root of unity.
To prove this generalization, there is just a minor complication that must be handled: The rank of appearance of a positive integer in the Lucas sequence , that is, the smallest positive integer such that divides , exists if and only if is relatively prime with . Therefore, the arguments involving must be adapted to considering only the positive integers which are relatively prime with . Except for that, everything works the same, since and satisfy the same properties of and . Note only that Lemma 2.1(iii) must be replaced by:
[TABLE]
for all prime numbers not dividing , where is the discriminant of . Also, the analog of Lemma 2.1(iv), that is, whenever , can be proved, for example, by using the formula for the -adic valuations of the terms of a Lucas sequence given in [16].
With these changes, the following generalization can be proved.
Theorem 5.1**.**
Let be a nondegenerate Lucas sequence satisfying the recurrence for all integers , where and are relatively prime integers. Furthermore, for each positive integer , define the set
[TABLE]
Then if and only if and . In such a case, has an asymptotic density which is given by
[TABLE]
where the series is absolutely convergent.
Acknowledgements
The authors thank the anonymous referee for carefully reading the paper and for suggesting a much simpler proof of Lemma 3.2, instead of our original one which was based on arguments similar to those of [5, Theorem 5].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. J. Alba González, F. Luca, C. Pomerance, and I. E. Shparlinski, On numbers n 𝑛 n dividing the n 𝑛 n th term of a linear recurrence , Proc. Edinb. Math. Soc. (2) 55 (2012), no. 2, 271–289.
- 2[2] R. André-Jeannin, Divisibility of generalized Fibonacci and Lucas numbers by their subscripts , Fibonacci Quart. 29 (1991), no. 4, 364–366.
- 3[3] C. Ballot and F. Luca, On the sumset of the primes and a linear recurrence , Acta Arith. 161 (2013), no. 1, 33–46.
- 4[4] P. Erdős, On the density of the abundant numbers , J. London Math. Soc. 9 (1934), no. 4, 278.
- 5[5] J. B. Friedlander, C. Pomerance, and I. E. Shparlinski, Period of the power generator and small values of Carmichael’s function , Math. Comp. 70 (2001), no. 236, 1591–1605.
- 6[6] R. R. Hall, Sets of multiples , Cambridge Tracts in Mathematics, vol. 118, Cambridge University Press, Cambridge, 1996.
- 7[7] H. A. Heilbronn, On an inequality in the elementary theory of numbers , Proc. Cambridge Philos. Soc. 33 (1937), 207–209.
- 8[8] K. S. E. Lee, On the sum of a prime and a Fibonacci number , Int. J. Number Theory 6 (2010), no. 7, 1669–1676.
