# A Conjecture on the Collatz-Kakutani Path Length for the Mersenne Primes

Toru Ohira and Hiroshi Watanabe
###### Abstract

We present here a new conjecture for the nature of the Mersenne prime numbers by connecting it with the Collatz-Kakutani problem. By introducing a natural path length on the basis of the Collatz-Kakutani tree, we conjecture that this path length of a Mersenne prime from the root of the Collatz-Kakutani tree is approximately proportional to the index of the Mersenne prime. We also discuss difference of behaviors between Mersenne numbers and Mersenne primes.

# 1 Introduction

Prime numbers have attracted mathematically oriented minds. They are fountains of the interesting problems which are left unresolved to the present. As well as prime numbers, natural numbers themselves sometimes show unexpected behaviors in spite of their simple appeal. In this note, we would like to present a simple property arising from the combination of two unsolved problems in number theory; the Mersenne prime numbers and the Collatz-Kakutani conjecture. Namely, we show that there exists an approximate linear relation between an index of the Mersenne prime and its Collatz-Kakutani path length, both of which are defined in the next section.

# 2 Mersenne primes and Collatz-Kakutani Conjecuture

Let us start with a brief descriptions of the Mersenne primes and the Collatz-Kakutani conjecture[1]. A Mersenne number is a positive integer given by

 $M_{n}=2^{n}-1,$

where $n$ is a positive integer, called “index”. A Mersenne prime is a Mersenne number that is prime. It has been shown that if $M_{n}$ is a Mersenne prime, $n$ must be prime. However, the converse is not true. In fact, only forty-seven Mersenne primes have been found up to date with the largest one given when $n=43,112,609$. This is also the largest known prime number. There are many fundamental questions left unresolved such as whether there are infinitely many Mersenne primes. The behaviors of Mersenne primes are irregular and unpredictable as seen in other types of prime numbers. Therefore, the recent discoveries of the Mersenne primes were achieved with the help of massively distributed computers, and the effort for finding new Mersenne primes has been made continuously [2]. The Mersenne primes are known for their relationships with the perfect numbers, and they are also applied to create pseudorandom number generators [3].

The Collatz-Kakutani conjecture is also one of the unsolved problems in number theory. This conjecture is a halting problem that the following operations will stop for an arbitrary positive number. Consider a positive integer $X$.

If $X$ is odd, $3X+1$ is the next integer.

If $X$ is even, $X/2$ is the next integer.

If we repeat this process, it will eventually reach the halting state $X=1$ for all positive integers. For example, if we start from $X=7$, we have a sequence as

 $7,22,11,34,17,52,26,13,40,20,10,5,16,8,4,2,1.$

This process can be visualized as the Collatz-Kakutani tree as shown in Fig. 1A. The conjecture states that this tree covers all the positive integers. Even though this conjecture is unsolved, it is generally believed as true from arguments through probability theories and through computational verifications.

Let us introduce the “Collatz-Kakutani path length” $D(X)$ for a number of steps for $X$ to reach $X=1$ through the above operations, i.e., a number of operational steps needed to reach $1$ (“the root”) on the Collatz-Kakutani tree. For example, $D(7)=16$. The relationship between $X$ and $D(X)$ is highly irregular and no simple law for the path length is found11In fact, it may not be defined for some $X$ if the Collatz-Kakutani conjecture is false. As a result, the plot of $D(X)$ versus $X$ produces a irregular graph as shown in Fig. 1B. While the general relationship between $X$ and $D(X)$ is unknown, there are some trivial relations such as $D(2^{n})=n$. Note that, the number $2^{n}$ is just one larger than the Mersenne number $M_{n}=2^{n}-1$.

# 3 Main Results

Our main finding to report is the fact that a path length of a Mersenne prime is approximately proportional to its index for large n, namely,

 $D(M_{n})\approx 13.45n.$ (1)

This is shown in Fig. 2, which we were able to compute up to the 38th Mersenne prime, ${M_{p}}(38)=M_{6972593}$. The behavior of the path length $D$ is non monotonic for small indices, e.g., $D(M_{89})>D(M_{107})$. We expect, however, beyond $n=107$, the path length increases monotonically with $n$ for the Mersenne primes. Also, there seems no regular path to reach the root of the tree, $X=1$. For example, we have examined the path for two nearby Mersenne primes, ${M_{p}}(16)=M_{2203}$ and ${M_{p}}(17)=M_{2281}$. While they have the path length $D$ of approximately $30,000$, they share the last 16 steps, namely,

$22,11,34,17,52,26,13,40,20,10,5,16,8,4,2,$ and $1$.

The relations between indices of the Mersenne primes and their path lengths are summarized in Table 1.

This linear behavior can be understood by the following heuristic arguments. Suppose $N$ is a large random number. The standard heuristic arguments for the path length for $N$ gives

 $D(N)\approx(3/(\ln 4/3))\ln N.$ (2)

A Mersenne number $2^{n}-1$ becomes $3\times{2^{n-1}}-1$ after two steps in Collatz-Katutani tree. Therefore, A Mersenne Number $2^{n}-1$ becomes $3^{n}-1$ after $2n$ steps. If we consider the number $N=3^{n}-1\sim 3^{n}$ to be a large random number for large $n$, then the path length of the number is given by

 $D(3^{n}-1)\approx(3/(\ln 4/3))n\ln 3.$ (3)

Finally, we obtain the heuristic estimation of the path length of the Mersenne number to be

 $D(2^{n}-1)\approx 2n+(3/(\ln 4/3))n\ln 3\approx 13.45652n,$ (4)

which is consistent with our numerical results [4, 5, 6]. This arguments implies that our finding is true not only for the Mersenne primes, but also for the Mersenne numbers. Our main conjecture, however, is that this linear relationship for the Mersenne primes are better than that for the general Mersenne numbers, or other general sequence of integers.

In order to show the difference between the Mersenne numbers in general and the Mersenne primes, the ratio of the path length to the index, $D(M_{n})/n$, is plotted against $n$ in Fig. 2B. If the distance increases linearly to the index, then $D(M_{n})/n$ becomes a constant. Figure 2B shows that the Mersenne primes show better linearity than the general Mersenne numbers.

To be more quantitative, we have performed the following statistical analyses. We have chosen thirteen Mersenne primes from the $26^{\text{th}}$ (${M_{p}}(26)=M_{23,209}$) to the $38^{\text{th}}$ (${M_{p}}(38)=M_{6,972,593}$), and computed the mean and the variance of $D(M_{n})/n$. Let us call the prime indices of the Mersenne primes as the Mersenne prime indices. We compare the result with that from the following set of thirteen points approximately in the same interval.

A) Thirteen prime indices which is the next smallest to thirteen Mersenne prime indices. We note the Mersenne numbers associated with this set is not prime numbers themselves.

B) Thirteen indices which are near the mid-point of two successive Mersenne prime indices.

C) Thirteen indices which are twice the Mersenne prime indices. These are all even numbers. We have selected some which are close to the Mersenne prime indices.

D) Thirteen indices which is on the least squre best-fit line based on the heuristics that, given the $k$-th Mersenne prime ${M_{p}}(k)$, the plot of $\log_{2}(\log_{2}({M_{p}}(k))$ versus $k$ lies approximately on the straight line (Figure 3). We have selected some which are close to the Mersenne prime indices [7].

The results of these comparison are shown in Table 2.

The data summarized in Table. 2 show that the path lengths of the Mersenne primes have the smaller variance than other sets. However, this difference is not enough to single out a Mersenne prime index.

In spite of the above, we look more detail into this property. We have examined the plot of $D(X=2^{n}-1)$ versus $n$ more closely and noted that they are composed of a collection of “flat” regions with jumps like a staircase. Correspondingly, the plot of ${D(X)/n}$ versus $n$ becomes collection of stripes, which interestingly appears near parallel. They are plotted in Figure 4. These plots are made for the sampled prime indices near three Mersenne prime indices, $23209,110503,216091$ which give $26^{\text{th}}$, $29^{\text{th}}$, and $31^{\text{th}}$ Mersenne primes respectively. It is also interesting that there are occasional “overlaps” of “stair steps”.

The nature and mechanism of these properties appeared in Figure 4 need to be studied further. We, nevertheless, conjecture that these qualitative behavior will continue to larger Mersenne numbers, and the Mersenne prime appears with its ${D(X)/n}\approx 13.45$. Unfortunately, again, this is clearly not sufficient to select out the Mersenne primes. If this conjecture is true, however, we can heuristically rule out points that are further away from the horizontal line of ${D(X)/n}\approx 13.45$ from candidates of the Mersenne primes.

# 4 Discussion

We have used the Collatz-Kakutani tree as a provider of “length” for natural numbers, and obtained a conjecture for the Mersenne primes. This may be yet another example where prime numbers can give rise to an emergence of unexpected order, such as Ulam Spiral [8, 9].

Though the reason behind such simple behavior is left unclear, this approach of using the Collatz-Kakutani tree can be extended to other types of set of numbers known for irregularities, possibly leading to interesting insights.

# Acknowledgments

Authors would like to thank Dr. Masaru Suzuki, Dr. Atsushi Kamimura, and Shigenori Matsumoto for useful discussions. T.O. is also affiliated with Sony Computer Science Laboratories in Tokyo, and would like to thank Emeritus Prof. Yuji Ito of Keio University, for his account on his advisor, late Prof. Shizuo Kakutani of Yale University.

# References

• 1 The Math Forum Internet Mathematics Library, available at http://mathforum.org/library/.
• 2 Great Internet Mersenne Prime Search:GIMPS, available at http://www.mersenne.org/default.php/.
• 3 M. Matsumoto, T. Nishimura, Mersenne twister: A 623-dimensionally equidistributed uniform pseudorandom number generator, ACM Trans. on Modeling and Computer Simulations 8 (1998) 3.
• 4 This heuristic arguments of this paragraph is provided by one of the anonymous reviewers.
• 5 J. C. Lagarias, The $3x+1$ Problem and Its Generalizations, Amer. Math. Monthly 92 (1985) 3
• 6 A. V. Kontorovich, J. C. Lagarias, Stochastic Models for the $3x+1$ and $5x+1$ Problems, arXive:09101944 [math.NT] (2009)
• 7 M. R. Schroeder, Where Is the Next Mersenne Prime Hiding? Mathematical Intelligencer 5 (1983) 31
• 8 M. L. Stein, S. M. Ulam, M. B. Wells, A Visual Display of Some Properties of the Distribution of Primes, Amer. Math. Monthly 71 (1964) 516
• 9 M. L. Stein, S. M. Ulam, An Observation on the Distribution of Primes, Amer. Math. Monthly 74 (1967) 43.

Shirokanedai Institute, Tokyo, Japan.
ohriatoru@gmail.com

The Institute of Solid State Physics, The University of Tokyo, Kashiwa, Japan.