Abstract
We investigate the Fibonacci pseudoprimes of level k, and we disprove a statement concerning the relationship between the sets of different levels, and also discuss a counterpart of this result for the Lucas pseudoprimes of level k. We then use some recent arithmetic properties of the generalized Lucas, and generalized Pell–Lucas sequences, to define some new types of pseudoprimes of levels and and parameter a. For these novel pseudoprime sequences we investigate some basic properties and calculate numerous associated integer sequences which we have added to the Online Encyclopedia of Integer Sequences.
MSC:
11A51; 11B39; 11B50
1. Introduction
Let a and b be integers. The generalized Lucas sequence and its companion, the generalized Pell–Lucas sequence , denoted by and for simplicity, are defined by
The general term of these sequences is given by the following Binet-type formulae
where and , are the roots of the quadratic . By Viéte’s relations, one has and , while .
Using bivariate cyclotomic polynomials, the relations (3) can be written [1] (p. 99) in terms of and , as
where
and is a primitive n-th root of unity. It can be checked that is an integer for any , and this feature can highlight arithmetic properties of the integers .
If is an n-th root of , the following formula for can be written for as
However, the use of this formula is limited since is not always an integer.
The formulae (3) also extend naturally to negative indices. For any integer one has
Clearly, and are integers for all if and only if , and for this reason we shall focus on this case.
For , if k is a positive real number, then the k-Fibonacci and k-Lucas numbers are obtained for and , in which case [2]. Clearly, for we get the Fibonacci and Lucas numbers and with , and for the Pell and Pell–Lucas numbers and , where .
When , the sequences have interesting combinatorial interpretations, while the terms can be linked to the number of solutions for certain Diophantine equations (see [3]) and to important classes of polynomials (see [4] (Chapter 2.2)).
The following results have been recently proved by the authors in [3].
Theorem 1
(Theorem 3.1, [3]). Let p be an odd prime, k a non-negative integer, and r an arbitrary integer. If and a is an integer such that is not a perfect square, then the sequences and defined by (1) and (2) satisfy the following relations
where is the Legendre symbol (see, e.g., [5]).
Theorem 2
(Theorem 3.5, [3]). Let p be an odd prime, and let and a be integers so that is not a perfect square. If and , then we have
- (1)
- (2)
Theorem 3
(Theorem 3.7, [3]). Let p be an odd prime, and let and a be integers so that is not a perfect square. If and , then we have
- (1)
- (2)
Applying Theorem 1 for and , we obtain the well known relations
Taking in Theorems 2 and 3, and since and , one has
Pseudoprimes are those composite numbers that, under certain conditions, behave similarly to the prime numbers. These have numerous applications in the factorization of large integers, primality testing, and cryptography. Some important notions of pseudoprimality are linked to the generalized Lucas sequences and given by (1) and (2), based on the relations (4), (5), (6) and (7), which were known even to Lucas (see [6]).
Definition 1.
An odd composite integer n is said to be a generalized Lucas pseudoprime of parameters a and b if and n divides , where is the Jacobi symbol.
By relation (4), we deduce that (mod p). Using this, in our paper [7] we have defined a weak pseudoprimality notion for generalized Lucas sequences .
Definition 2.
A composite integer n for which is called a weak generalized Lucas pseudoprime of parameters a and b.
This notion plays a key role in the present paper. Another weak pseudoprimality concept for generalized Pell–Lucas sequences inspired by (5) is also defined in [7].
Definition 3.
A composite integer n is said to be a generalized Bruckman–Lucas pseudoprime of parameters a and b if .
Historical details and various pseudoprimality tests for generalized Lucas sequences are given in the papers by Brillhart, Lehmer, and Selfridge [8], and by Baillie and Wagstaff in [9]. Grantham [10] unified many pseudoprimality notions under the name of Frobenius pseudoprimes and several examples are listed in Rotkiewics [11]. Various strong concepts like super-pseudoprimes [12], or extensions of recurrences to more general contexts like abelian groups have been proposed [13].
Interesting divisibility results for and are stated in [9] (Section 2).
Proposition 1.
If n is an odd composite number such that , then any two of the following statements imply the other two.
- (1)
- (2)
- ;
- (3)
- (4)
- (valid whenever ).
The structure of this paper is as follows. In Section 2 we review the notion of Fibonacci pseudoprime of level k, and propose a counterpart defined for Lucas sequences. We also disprove a statement formulated in [14] for Fibonacci numbers, which shows that the relationship between the pseudoprimes of different levels is not trivial. In Section 3 we define the generalized Lucas and Pell–Lucas pseudoprimality of level k, which involves the Jacobi symbol. For these notions we study some new related integer sequences indexed in the Online Encyclopedia of Integer Sequences (OEIS). Finally, in Section 4 we summarize the findings and suggest future directions of investigation.
The numerical simulations in this paper have been performed with specialist Matlab libraries and Wolfram Alpha (explicit formulae are indicated in OEIS). Sometimes we have provided more terms than in the OEIS (which has a limit of 260 characters), so that the readers can check the numerical examples and counterexamples.
2. Fibonacci and Lucas Pseudoprimes of Level k
In this section we present the Fibonacci pseudoprimes of level k and give a counterexample to a result from [14], about the connection between the sets of pseudoprimes on different levels. We then define the Lucas pseudoprimes of level k, for which we also explore connections between the pseudoprimes on different levels.
2.1. Fibonacci Pseudoprimes of Level k
A composite number n is called a Fibonacci pseudoprime if . The even Fibonacci pseudoprimes are indexed as A141137 in the OEIS [15], while the odd Fibonacci pseudoprimes indexed as A081264 start with the terms
In [14], the authors introduced the following notion. Let k be a fixed positive integer. A composite number n is called a Fibonacci pseudoprime of level k if it satisfies
The set of all the Fibonacci pseudoprimes of level k is denoted by . Notice that for we obtain the classical Fibonacci pseudoprimes. We now state a corrected version of Proposition 1 in [14], and then discuss why the original version does not hold.
Proposition 2.
Let n be a positive integer that is coprime with 10. If , then if and only if .
Proof.
Notice that the conditions in the hypothesis relate to Equations (8) and (9). Clearly, is equivalent to , while is equivalent to .
For all integers , Catalan’s identity , is valid. Using this identity for and and since , one has
Since is odd, this can be rewritten as
Clearly, if , then by taking the relation (10) modulo n, one obtains that is equivalent to . □
Remark 1.
Notice that if and , then by (10) it follows that . This may not always indicate that . However, this assertion holds whenever n is square-free. We have confirmed that the numbers satisfying both and with are
which are all square-free and satisfy .
We now recall Proposition 1 in [14], which states that if is coprime with 10, then for all if and only if and . In particular, if and , then for all . The following example gives an integer n for which and , (hence in ), but which is not in . This shows that Proposition 1 in [14] does not generally hold.
Example 1.
The first composite integer n for which and is . For this integer one can check that , but we have , where . The calculations involving the large numbers below are implemented with the vpi (variable precision integer) library in Matlab®. We have
We now discuss why the proof of Proposition 1 in [14] fails, but we mention that the error in the proof is not trivial as we can notice in the previous numerical example.
Remark 2.
The problems appear at the induction step. When applying Catalan’s identity for and one obtains the identity
Assuming and taking this relation modulo n one obtains after some steps
from where the authors (incorrectly) claim . In fact, we only have
This holds when n is coprime with , but this cannot be guaranteed in general.
2.2. Lucas Pseudoprimes of Level k
From the relations (5) and (7) applied for and one obtains
A composite integer n satisfying the property is called a Bruckman–Lucas pseudoprime. The sequence is indexed in the OEIS [15] as A005845, and begins with
In 1964 Lehmer [16] proved that Fibonacci pseudoprimes are infinite, while in 1994 Bruckman showed that the Bruckman–Lucas pseudoprimes are odd [17], and also he proved that these numbers are infinitely many [18].
For a positive integer k we define the Lucas pseudoprimes of level k as the composite integers n satisfying the relation
The set of all the Lucas pseudoprimes of level k is denoted by .
For the integers satisfy and define the sequence A339125 added by us to OEIS, which starts with the terms
For the integers satisfy the relation , and recover a sequence we have indexed as A339517, whose first elements are
The following result highlights a connection between the Lucas pseudoprimes of levels 1 and 2 via the positive integers with the property .
Proposition 3.
Let n be a positive integer that is coprime with 10. If , then if and only if .
Proof.
One can easily check (see Lemma 2.4 [19]) that for any integers m and r we have
Using this identity for and , we get
As n and 5 are coprime, we have and , while since , it follows that . Therefore
This identity can be further written as
Now we take this relation modulo n. Clearly, from we , hence the first bracket vanishes. Notice that if any of the other two brackets in (14) vanish, then the third vanishes as well, hence if and only if . □
One could check that if and , then it does not follow that . We give an example below.
Example 2.
From Example 1, we know that for we have and . One can check numerically that , but .
It can be checked that is the smallest odd composite number for which and but , but as we will see later, there are (possibly infinitely) many numbers that satisfy this property.
3. Generalized Lucas Pseudoprimes of Level k
In this section we use Theorems 2 and 3 to extend the notions presented in Section 2 for generalized Lucas and Pell–Lucas sequences. We calculate the terms of the integer sequences obtained for a few particular parameter values and we formulate some conjectures.
3.1. Jacobi’s Symbol
Let be the prime factorization of an odd integer n. The Jacobi symbol is defined as
where a is an integer. When n is a prime this recovers the Legendre symbol.
Jacobi’s symbol is completely multiplicative in both the numerator and denominator, i.e., for integers, we have
The Jacobi symbol also satisfies the quadratic reciprocity law. This states that if m and n are odd positive coprime integers, then the following identity holds
3.2. Results for
We shortly denote and . If p is prime number and a is an odd integer, then by the law of quadratic reciprocity for the Jacobi symbol with one has
This implies , hence the results in Theorem 2 can be written as
- (1)
- (2)
- .
We now investigate similar relations modulo a composite number n, where is the Jacobi symbol, which is well-defined for any odd composite integers n and D. These allow us to define new concepts of pseudoprimality.
Definition 4.
Let , and n be non-negative integers, where a is odd. We say that the composite number n is a
generalized Lucas pseudoprime of level and parameter a if
The set of all such numbers is denoted by .
generalized Pell–Lucas pseudoprime of level and parameter a if
The set of all such numbers is denoted by .
In [19] we proved connections between the sets of generalized Lucas and Pell–Lucas pseudoprimes of levels and , which are linked through the property (see Definition 2). Integers having this property were called weak generalized Lucas pseudoprimes of parameters a and b and present interest in their own right. Some of their properties, associated integer sequences and conjectures have been discussed in [7].
Theorem 4.
Let be odd integers with . The following statements hold
- (1)
- Reference [19] (Theorem 4.3). If , then if and only if .
- (2)
- Reference [19] (Theorem 4.6). If and , then if and only if .
We now present the integer sequences , calculated for the values and . Most of these were added by the authors to OEIS [15]. For these values we show that the reciprocal statements in Theorem 4 do not hold, and also, the results cannot be extended directly to superior levels.
To begin with, we provide some details on weak generalized Lucas pseudoprimes.
Remark 3.
Remark 4.
As seen in Example 2, even when , and (or ), it does not mean that (or ). For we have the following examples:
- : None found for (see also, Remark 1);
- : ;
- : None found for ;
- : .
For we have
- : ;
- : ;
- : ;
- : .
Also the connections between the levels and are non-trivial.
Remark 5.
As seen in Example 1, even when , if (hence ), it does not mean that . The following values have been found:
- : ;
- : ;
- : ;
- : .
The following n with and , , but were found:
- : None found for ;
- : None found for ;
- : ;
- : None found for .
The numerical results in Remarks 4 and 5 suggest the following conjecture.
Conjecture 1.
If , then if and only if .
Example 3.
If , , , we obtain the classical Fibonacci and Lucas numbers.
- The set recovers the odd Fibonacci pseudoprimes A081264 in [15].
- The set gives A340118 and its first elements are
- The set is A340235 and its first elements are
- The set recovers A339125, seen in Section 2.2.
- The set is A339517, seen in Section 2.2.
- The sequence is given by A339724 and starts with the elements
Example 4.
, , .
Example 5.
, , .
Example 6.
, , .
In 1964, E. Lehmer [16] proved that the sequence is infinite.
Conjecture 2.
If a and k are positive integers with a odd, then and are infinite.
3.3. Results for
We shortly denote and . If p is prime and a odd, then we have , and by the law of quadratic reciprocity for the Jacobi symbol (15) we get , hence the results in Theorem 3 can be rewritten as
- (1)
- (2)
We investigate similar relations modulo a composite number n, where is the Jacobi symbol, which is well-defined for any odd composite integers n and D, which allow us to naturally define new pseudoprimality notions.
Definition 5.
Let and n be non-negative integers, with a odd. We say that the composite number n is a
generalized Lucas pseudoprime of level and parameter a if
The set of all such numbers is denoted by .
generalized Pell–Lucas pseudoprime of level and parameter a if
The set of all such numbers is denoted by .
In [19] we have proved connections between the sets of generalized Lucas and Pell–Lucas pseudoprimes of levels and , linked through the property (similarly to Theorem 4).
Theorem 5.
Let be odd integers with . We have:
- (1)
- Reference [19] (Theorem 4.9). If , then if and only if .
- (2)
- Reference [19] (Theorem 4.12). If and , then if and only if .
We now present the integer sequences , calculated for the values and . Most of these have been added by the authors to OEIS [15]. For these values we show that the reciprocal statements in Theorem 5 do not hold, and also, the results cannot be extended directly to superior levels.
We first provide some details on weak generalized Lucas pseudoprimes.
Remark 6.
We now show that the reciprocals of Theorem 5 do not hold.
Remark 7.
(1) If with , does not imply . A counterexample is given by (bisection of Fibonacci numbers), where . For we have , , and , but .
When with , it does not imply . A counterexample is given by (bisection of Lucas numbers), where . For we get , one has and
For the calculations we have used the vpi (variable precision integer) library in Matlab.
For each value there might be infinitely many such integers n.
Remark 8.
As seen in Example 2, even when , and (or ), it does not mean that (or ). For we have:
- : ;
- : ;
- :
For we have
- : ,;
- : ,;
- : .
We show that for one cannot make the jump from levels and to level , even under the extra condition .
Example 7.
When and we have . The first composite integer n for which and is . For this integer one can check that , but we have , where . The calculations with large integers are implemented with the vpi library in Matlab®. We have
We now find multiple such integers for , as in Remark 5.
Remark 9.
Below we present some integers n which satisfy the properties and , but .
- : ,;
- : ,;
- : .
We conjecture that these sequences exist and are infinite for all odd integers a.
By Theorem 5 we have that whenever we have . The following property for is suggested by numerical simulations for and , but we do not currently have a proof.
Conjecture 3.
If are odd integers such that n is composite and , then we have .
Example 8.
, , (bisection of Fibonacci and Lucas numbers).
Recall that and , while (A001906) and (A001906) represent the bisection of Fibonacci and Lucas sequences, respectively. The numerical results suggest the following two conjectures.
Conjecture 4.
. Notice that the terms of (Fibonacci pseudoprimes)
can be found amongst the elements of .
Conjecture 5.
. One may notice that the elements of smaller than 10000 also belong to the set .
Note that for and , the values and are not prime.
Example 9.
, , .
Example 10.
, , .
The following sequences of pseudoprimes are obtained.
Conjecture 6.
If a and k are positive integers with a odd, then and are infinite.
4. Conclusions and Further Work
In this paper we have analyzed the Fibonacci pseudoprimes of level k, and we have formulated an analogous version of this concept for the Lucas numbers (Section 2.2).
In Section 3 we have generalized these notions for Lucas , and generalized Pell–Lucas sequences , obtaining the generalized Lucas and Pell–Lucas pseudoprimes of levels (for ) and (for ) and parameter a. For these concepts, it was known from [19], that under the supplementary condition , the pseudoprimes of levels and , and and , respectively, coincide.
The purpose of this paper has been threefold. First, to calculate the explicit values of these pseudoprimes for levels , for with and for with . This effort led to numerous new additions to OEIS. Second, we have shown that reciprocal statements for Theorems 4 and 5 do not hold, providing a range of counterexamples (Remark 4 and Remarks 7 and 8, respectively). Thirdly, we have shown that the transition from levels and to level (and from levels and to , respectively) cannot be guaranteed in general, even under the supplementary condition (Remarks 5 and 7, respectively).
An interesting problem for further investigation is the connection between the generalized Lucas and Pell–Lucas pseudoprimes of levels and and parameter a, and the weak pseudoprimality concepts defined in [7].
Numerous open problems remain to be solved, as seen from Conjectures 1, 2, 3, 4, 5, or 6. Another interesting direction for further study, suggested by one of the referees, was to explore whether any odd composite integer could be a pseudoprime of a given level, or to find the smallest such integer that cannot be a pseudoprime at all. We invite the readers to join us in trying to solve these problems.
Author Contributions
Conceptualization, D.A. and O.B.; Data curation, D.A.; Formal analysis, O.B.; Investigation, O.B.; Methodology, D.A.; Software, O.B.; Writing–original draft, D.A. and O.B.; Writing–review–editing, O.B. All authors claim to have contributed significantly and equally to this work. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Codes for all the sequences in this paper are provided in OEIS.
Acknowledgments
The authors would like to thank the referees for their valuable feedback and constructive comments, which helped to improve the quality of the manuscript. The would also wish the thank the editorial team of OEIS, who have reviewed the multiple new integer sequences mentioned in this paper.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Everest, G.; van der Poorten, A.; Shparlinski, I.; Ward, T. Recurrence Sequences; Mathematical Surveys and Monographs 104; American Mathematical Society: Providence, RI, USA, 2003. [Google Scholar]
- Falcon, S. On the k-Lucas numbers. Int. J. Contemp. Math. Sci. 2011, 6, 1039–1050. [Google Scholar]
- Andrica, D.; Bagdasar, O. On some arithmetic properties of the generalized Lucas sequences. Mediterr. J. Math. 2021, 18, 47. [Google Scholar] [CrossRef]
- Andrica, D.; Bagdasar, O. Recurrent Sequences: Key Results, Applications and Problems; Springer: Berlin, Germany, 2020. [Google Scholar]
- Andreescu, T.; Andrica, D. Number Theory. Structures, Examples, and Problems; Birkhauser Verlag: Boston, MA, USA; Berlin, Germany; Basel, Switzerland, 2009. [Google Scholar]
- Williams, H.C. Edouard Lucas and Primality Testing; Wiley-Blackwell: Hoboken, NJ, USA, 2011. [Google Scholar]
- Andrica, D.; Bagdasar, O.; Rassias, T.M. Weak pseudoprimality associated to the generalized Lucas sequences. In Approximation and Computation in Science and Engineering; Daras, N.J., Rassias, T.M., Eds.; Springer: Berlin, Germany, 2021. [Google Scholar]
- Brillhart, J.; Lehmer, D.H.; Selfridge, J.L. New primality criteria and factorizations of 2m ± 1. Math. Comput. 1975, 29, 620–647. [Google Scholar]
- Baillie, R.; Wagstaff, S.S., Jr. Lucas Pseudoprimes. Math. Comput. 1980, 35, 1391–1417. [Google Scholar] [CrossRef]
- Grantham, J. Frobenius pseudoprimes. Math. Comput. 2000, 70, 873–891. [Google Scholar] [CrossRef]
- Rotkiewicz, A. Lucas and Frobenius pseudoprimes. Ann. Math. Sil. 2003, 17, 17–39. [Google Scholar]
- Somer, L. On superpseudoprimes. Math. Slovaca 2004, 54, 443–451. [Google Scholar]
- Marko, F. A note on pseudoprimes with respect to abelian linear recurring sequence. Math. Slovaca 1996, 46, 173–176. [Google Scholar]
- Andrica, D.; Crişan, V.; Al-Thukair, F. On Fibonacci and Lucas sequences modulo a prime and primality testing. Arab J. Math. Sci. 2018, 24, 9–15. [Google Scholar] [CrossRef]
- The On-Line Encyclopedia of Integer Sequences, Published Electronically. 2020. Available online: https://oeis.org (accessed on 12 March 2021).
- Lehmer, E. On the infinitude of Fibonacci pseudoprimes. Fibonacci Q. 1964, 2, 229–230. [Google Scholar]
- Bruckman, P.S. Lucas pseudoprimes are odd. Fibonacci Q. 1994, 32, 155–157. [Google Scholar]
- Bruckman, P.S. On the infinitude of Lucas pseudoprimes. Fibonacci Q. 1994, 32, 153–154. [Google Scholar]
- Andrica, D.; Bagdasar, O. Pseudoprimality related to the generalized Lucas sequences. Math. Comput. Simul. 2021, in press. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).