This paper, a collaboration between Noga Alon, Yaakov Malinovsky, Lucy Martinez, and Doron Zeilberger, explores a deceptively simple probabilistic puzzle: if you keep rolling a fair six-sided die and tracking the cumulative sum, how many rolls does it take to "hit" exactly $k$ prime numbers?
TL;DR
The authors prove that the expected number of dice rolls required to hit $k$ primes grows as $k \ln k$ for large $k$, mirroring the density of primes described by the Prime Number Theorem. They also provide high-precision computational data for $k \leq 100$ and a refined heuristic formula that fits the data better than the asymptotic limit.
What Problem Does This Paper Address?
The study of "hitting times" is a staple of probability theory. A classic example is: "How many rolls until the sum is 10?" This paper adds a number-theoretic twist by asking how many rolls ($L_k$) are needed until the running total has landed on a prime number exactly $k$ times.
While previous research had established that the first prime is hit in about 2.43 rolls on average ($E[L_1] \approx 2.43$), the behavior for large $k$ remained unproven. Because primes become less frequent as numbers get larger (the "Prime Number Theorem"), the "wait time" between hitting successive primes increases. The authors sought to rigorously define this growth rate and provide concrete statistical data for the distribution of $L_k$.
Methods
The authors combine computational experimental mathematics with rigorous probabilistic proofs:
- Computational Analysis: Using a custom Maple package called
PRIMESk, the authors calculated the exact expected values, standard deviations, skewness, and kurtosis for $L_k$ where $k \leq 100$. - Linear Recurrences: They used the fact that the probability $p(i)$ of hitting a specific integer $i$ satisfies a linear recurrence based on the die's faces. They proved that as $i$ grows, $p(i)$ converges exponentially fast to $2/7$ (the reciprocal of the average die roll, 3.5).
- Asymptotic Proofs: To prove the main theorem, they employed the Prime Number Theorem (PNT) to estimate the density of targets and Chernoff bounds to show that the actual number of hits doesn't deviate too far from the expected value with high probability.
Datasets
The paper does not use external datasets. Instead, it generates its own data using the PRIMESk Maple package. The authors have made the package and numerous output files available on Doron Zeilberger's website.
Key Insights and Ideas
- The 2/7 Constant: A key "aha" moment is recognizing that in a long sequence of rolls, you will land on approximately 2 out of every 7 integers. This is because the expected value of a single roll is $(1+2+3+4+5+6)/6 = 3.5$, and $1/3.5 = 2/7$.
- PNT Connection: Because the probability of an integer $n$ being prime is roughly $1/\ln n$, and the probability of hitting that integer is $2/7$, the "probability" of hitting a prime at step $n$ is roughly $2/(7 \ln n)$. Summing these probabilities leads directly to the $k \ln k$ behavior.
- Distribution Shape: The authors provide scaled probability density functions (PDFs). Interestingly, as $k$ increases, the distribution of $L_k$ begins to look more "Normal" (bell-shaped), though it retains a slight right-skew even at $k=100$.
- Refined Heuristics: While the theoretical limit is $k \ln k$, the authors found that a more complex expression—$k(\ln k + \ln \ln k + c_1) + c_2$—provides a much tighter fit for the actual data they computed.
Key Results
- Theoretical Limit: The expected value $E[L_k] \approx k \ln_e k$ as $k \to \infty$.
- Specific Values:
- $E[L_1] \approx 2.428$
- $E[L_{10}] \approx 42.765$
- $E[L_{30}] \approx 163.303$
- $E[L_{100}] \approx 676.315$
- Heuristic Fit: They proposed a heuristic formula $f(k) = k(\ln k + \ln \ln k + 0.543) + 8.953$, which matches their calculated values with high accuracy (ratios very close to 1.0).
Limitations and Future Work
- The $o(1)$ Term: The main theorem proves the $k \ln k$ growth, but the "error term" (the $o(1)$) is not explicitly bounded in the proof. The heuristic suggests the next significant term is $k \ln \ln k$, but a formal proof of this higher-order asymptotic was not included.
- Generalization: The authors note that these results can be extended to biased dice or different sets of integers (like hitting $k$ perfect squares), provided the set has a known counting function. However, the specific constants and behaviors for these cases were left for future exploration.
- Independence: The proof assumes the "hits" on primes are somewhat independent, which is justified for large $k$ but becomes more complex when looking at very fine-grained local distributions of primes.
Summary updated