1. Introduction
Many primality tests have been developed, such as the Lucas–Lehmer primality [
1] test, Proth’s test [
2], etc., which are useful prime test to specific use cases. In this note, we develop a primality test specified for Mersenne numbers. One of the interesting prime numbers is the Mersenne prime,
, which has the form
.
Lemma 1 (Hyperbolic Primality Test).
If there exists a non-trivial x satisfying:
Then is prime. Here, the trivial solutions are and .
Proof. When
p is prime, for an arbitrary Mersenne number
:
And when
is prime, we call it a
Mersenne prime. [
3] When all
(or
) are zero, then
is prime.
Therefore we can summarize the result as:
This can be rewritten as:
which represents a
hyperbola. So, if there exists any integer lattice point on the hyperbola,
is not prime. Thus, determining the primality of
is equivalent to checking for lattice points on the hyperbola.
In modulo forms, we can rewrite it as:
For the computational test, the range of
x is:
□
2. Theorems and Lemmas
One interesting problem involves the primality test for Catalan-Mersenne numbers. The Catalan-Mersenne number is a recursively defined sequence [
4]:
Therefore, the Catalan-Mersenne numbers are a subset of the double Mersenne numbers, which are numbers of the form:
And we can choose a specific sequence where:
If
is prime, then by Lemma 1, there is no non-trivial
x, other than
,
, that satisfies:
Then in the case of
, let us try to find a non-trivial
x that satisfies:
This equation can be rewritten as:
However, for some
, we can rewrite
:
Thus, all
are integers, and Equation (
15) holds for the primality test of
.
Equation (
13) becomes as:
Theorem 1. When is the set of all Catalan-Mersenne numbers, if is a double Mersenne prime, then is also a prime number.
Proof. A double Mersenne prime, denoted as
X, is a prime number that satisfies
, where
is also prime. According to Equation (
11),
- (1)
-
When
, we can perform the hyperbolic primality test:
which yields:
There are no non-trivial solutions for x.
Thus, is a double Mersenne prime.
- (2)
-
When
n = 3, we can perform the hyperbolic primality test:
which yields:
There are no non-trivial solutions for x.
Thus, is a double Mersenne prime.
For arbitrary
x, we can express:
where
or 1.
Then let us use induction for the general case of
. Let us assume that
(defined in Equation (
10)) is a double Mersenne prime. According to Lemma 1 and Equation (
17), there is no non-trivial
x that satisfies:
This implies that because .
Next, let us show that
is prime.
We can use Equation (
16) for the primality test of
, with the result of Equation (
18) to check whether there is a non-trivial
x that satisfies:
To make Equation (
20) hold,
b should be 1. However, Equation (
18) shows that
, so the available value of
a is 0.
This implies that
x should be 0, but this is not allowed. Hence, there is no non-trivial
x that satisfies Equation (
20). Therefore,
is prime. Consequently, if
is a double Mersenne prime, then
is prime. □
Theorem 2. There are infinitely many Mersenne primes.
Proof. Theorem 1 shows that if there is one double Mersenne prime, it generates an infinite series of Mersenne primes. Since is a double Mersenne prime, there are infinitely many Mersenne primes. □
3. Application
In this section, we investigate the generation of Catalan-Mersenne-like sequences using different initial values and examine the applicability of the recursive hyperbolic primality test.
3.1. Case
For
Catalan-Mersenne number sequence, we can calculate
to
, such as
Until
it is showed that it is a prime by Lucas–Lehmer primality test. Based on Theorem. 1,
is also prime.
which has
digits.
3.2. Case
For the
Catalan-Mersene number sequence,
And is also not prime. So there is no infinite numbers of primes in this sequence.
3.3. Case
For the
Catalan-Mersene number sequence,
And is a prime, but is not a prime. So there is no infinite numbers of primes in this sequence.
4. Conclusions and Outlook
In this research, we introduced a hyperbolic primality test specified for Mersenne numbers and demonstrated that is prime. Another intriguing observation is that there is an infinite number of primes that can be generated from the Catalan-Mersenne sequence. However, it’s noteworthy that other infinite prime sequences with different initial values are not readily apparent.
For the next step, we can investigate the general relations between lattice points on the hyperbola and the initial values of Catalan-Mersenne numbers.
References
- John H. Jaroma, “Note on the Lucas–Lehmer Test", Irish Mathematical Society (2004), https://www.irishmathsoc.org/bull54/M5402.pdf.
- OEIS, “Proth primes", https://oeis.org/A080076.
- OEIS, “Mersenne primes", https://oeis.org/A000668.
- OEIS, “Catalan-Mersenne numbers", https://oeis.org/A007013.
|
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 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 (http://creativecommons.org/licenses/by/4.0/).