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 relationswhere 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.
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. For , the odd integers n satisfying the property recover the weak Fibonacci pseudoprimes indexed as A337231 for , A337234 for , A337237 for , and A338081 for . The reader can use these to check the numerical examples. 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 sequence
is given by
A339724 and starts with the elements
Example 4. , , .
The set
recovers pseudoprimes indexed as
A327653 in [
15], starting with
The set
gives
A340119 and its first elements are
The set
is indexed as
A340236 and its first elements are
The set
recovers
A339126, and starts with
The set
giving
A339518, has the first elements
The set
is given by
A339725 and starts with the elements
Example 5. , , .
The set
recovers the entry
A340095 in [
15], starting with
The set
gives
A340120 and its first elements are
The set
is indexed as
A340237 and its first elements are
The set
recovers
A339127, and starts with
The set
giving
A339519, has the first elements
The set
is given by
A339726 and starts with the elements
Example 6. , , .
The set
recovers the entry
A340096 in [
15], starting with
The set
gives
A340121 and its first elements are
The set
is indexed as
A340238 and its first elements are
The set
recovers
A339128, and starts with
The set
giving
A339520, has the first elements
The set
is given by
A339727 and starts with the elements
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. For , the odd integers n satisfying the property recover the sequences A338007 for , A338009 for , and A338011 for . The reader can use these links to check the numerical examples given below. 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).
The set
recovers the entry
A340097 in [
15], starting with
The set
recovers
A340122 and its first elements are
The set
is indexed as
A340239 and its first elements are
The set
recovers
A339129, and starts with
The set
giving
A339521, has the first elements
The set
is given by
A339728 and starts with the elements
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. , , .
The set
recovers the entry
A340098 in [
15], starting with
The set
recovers
A340123 and its first elements are
The set
is indexed as
A340240 and its first elements are
The set
recovers
A339130, and starts with
The set
giving
A339522, has the first elements
The set
is given by
A339729 and starts with the elements
Example 10. , , .
The following sequences of pseudoprimes are obtained.
The set
recovers the entry
A340099 in [
15], starting with
The set
recovers
A340124 and its first elements are
The set
is indexed as
A340241 and its first elements are
The set
recovers
A339131, and starts with
The set
giving
A339523, has the first elements
The set
is given by
A339730 and starts with the elements
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.