Preprint
Article

Hyperbolic Primality Test and Catalan–Mersenne Number Conjecture

Altmetrics

Downloads

89

Views

81

Comments

0

This version is not peer-reviewed

Submitted:

10 May 2024

Posted:

14 May 2024

You are already at the latest version

Alerts
Abstract
We develop a primality test for Mersenne numbers and investigate the primality of the sequence of Catalan-Mersenne numbers. We use induction as a proof to show that the 5th Catalan-Mersenne number is a prime number, thus demonstrating the infinitude of Mersenne primes.
Keywords: 
Subject: Computer Science and Mathematics  -   Algebra and Number Theory

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, M p , which has the form 2 p 1 .
 Lemma 1
(Hyperbolic Primality Test). If there exists a non-trivial x satisfying:
2 p 1 + x 0 mod ( 2 x + 1 )
Then 2 p 1 is prime. Here, the trivial solutions are x = 0 and 2 p 1 1 .
 Proof. 
When p is prime, for an arbitrary Mersenne number M p :
M p = 2 p 1 = i = 1 k a i 2 i + 1 i = 1 q b i 2 i + 1
And when M p is prime, we call it a Mersenne prime. [3] When all a i (or b i ) are zero, then M p is prime.
2 p 1 = 2 ( 2 p 1 1 ) + 1 = ( 2 x + 1 ) ( 2 y + 1 ) = 2 ( 2 x y + x + y ) + 1
Therefore we can summarize the result as:
2 p 1 1 = 2 x y + x + y
This can be rewritten as:
2 p 1 = x y + ( x + 1 ) ( y + 1 )
which represents a hyperbola. So, if there exists any integer lattice point on the hyperbola, M p is not prime. Thus, determining the primality of M p is equivalent to checking for lattice points on the hyperbola.
In modulo forms, we can rewrite it as:
2 p 1 + x 0 mod ( 2 x + 1 )
For the computational test, the range of x is:
1 x < 2 p 1 + 1 2 = 2 p 2 1

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]:
c 0 = 2 , c n + 1 = 2 c n 1 = M c n
Therefore, the Catalan-Mersenne numbers are a subset of the double Mersenne numbers, which are numbers of the form:
M M n = 2 2 n 1 1
And we can choose a specific sequence where:
a 1 = 2 2 1 , a n + 1 = 2 a n 1
If a n = M a n 1 is prime, then by Lemma 1, there is no non-trivial x, other than x = 0 , A n 1 1 , that satisfies:
2 a n 1 1 + x = A n 1 + x 0 mod ( 2 x + 1 )
Then in the case of a n + 1 = M a n , let us try to find a non-trivial x that satisfies:
2 2 a n 1 2 + x 0 mod ( 2 x + 1 )
This equation can be rewritten as:
4 2 a n 1 1 1 + x = 4 A n 1 1 + x 0 mod ( 2 x + 1 )
However, for some k n , we can rewrite 4 A n 1 1 = A n 1 k n :
k n = A n 1 1 log 4 A n 1 , i = 2 n k i = A n 1 1
Thus, all k n are integers, and Equation (15) holds for the primality test of a n .
k n = A n 1 1 A n 2 1 = i = 0 k n 1 1 4 ( A n 2 ) i
Equation (13) becomes as:
A n 1 k n + x 0 mod ( 2 x + 1 )
 Theorem 1.
When CM is the set of all Catalan-Mersenne numbers, if a n CM is a double Mersenne prime, then M a n is also a prime number.
 Proof. 
A double Mersenne prime, denoted as X, is a prime number that satisfies X = M M p , where M p is also prime. According to Equation (11), A n = 2 a n 1
(1)
When n = 2 , we can perform the hyperbolic primality test:
A 1 + x 0 mod ( 2 x + 1 )
which yields:
4 + x 0 mod ( 2 x + 1 )
There are no non-trivial solutions for x.
Thus, a 2 is a double Mersenne prime.
(2)
When n = 3, we can perform the hyperbolic primality test:
A 2 + x 0 mod ( 2 x + 1 )
which yields:
64 + x 0 mod ( 2 x + 1 )
There are no non-trivial solutions for x.
Thus, a 3 is a double Mersenne prime.
For arbitrary x, we can express:
A n 1 = O ( 2 x + 1 ) + a x + b
where a = 0 or 1.
Then let us use induction for the general case of n 3 . Let us assume that a n (defined in Equation (10)) is a double Mersenne prime. According to Lemma 1 and Equation (17), there is no non-trivial x that satisfies:
A n 1 a x + b x + 1 mod ( 2 x + 1 )
This implies that ( a , b ) ( 1 , 1 ) because x 0 .
Next, let us show that a n + 1 is prime.
A n 1 k = O ( 2 x + 1 ) + ( a x + b ) k
We can use Equation (16) for the primality test of a n + 1 , with the result of Equation (18) to check whether there is a non-trivial x that satisfies:
A n 1 k ( a x + b ) k x + 1 mod ( 2 x + 1 )
To make Equation (20) hold, b should be 1. However, Equation (18) shows that ( a , b ) ( 1 , 1 ) , so the available value of a is 0.
A n 1 k 1 x + 1 mod ( 2 x + 1 )
So, we have:
0 x mod ( 2 x + 1 )
This implies that x should be 0, but this is not allowed. Hence, there is no non-trivial x that satisfies Equation (20). Therefore, a n + 1 is prime. Consequently, if a n 1 is a double Mersenne prime, then a n 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 M 7 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. a 1 = 3 Case

For a 1 = 3 Catalan-Mersenne number sequence, we can calculate k 2 to k 5 , such as
k 2 = 4 2 1 1 2 1 = 3 , k 3 = 4 4 1 1 4 1 = 21
k 4 = 4 63 1 4 3 1 = 1350326852860866918505454791395905601
k 5 = A 4 1 log 4 A 4 = 4 4 63 1 1 4 63 1 = i = 0 k 4 1 4 63 i
Until a 4 it is showed that it is a prime by Lucas–Lehmer primality test. Based on Theorem. 1, a 5 is also prime.
a 5 = 2 2 127 1 1 = M 2 127 1
which has 5.12 × 10 37 digits.

3.2. a 1 = 2 11 1 Case

For the a 1 = 2 11 1 Catalan-Mersene number sequence,
k 2 = 2 2 11 2 1 2 10 1 = ( n o n i n t e g e r )
And a 1 is also not prime. So there is no infinite numbers of primes in this sequence.

3.3. a 1 = 2 13 1 Case

For the a 1 = 2 13 1 Catalan-Mersene number sequence,
k 2 = 2 2 13 2 1 2 12 1 = ( n o n i n t e g e r )
And a 1 is a prime, but a 2 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 a 5 is prime. Another intriguing observation is that there is an infinite number of primes that can be generated from the a 1 = 3 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

  1. John H. Jaroma, “Note on the Lucas–Lehmer Test", Irish Mathematical Society (2004), https://www.irishmathsoc.org/bull54/M5402.pdf.
  2. OEIS, “Proth primes", https://oeis.org/A080076.
  3. OEIS, “Mersenne primes", https://oeis.org/A000668.
  4. 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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated