TL;DR
How many times must you roll a die before the running sum lands on a prime number exactly $k$ times? This paper proves that for a large number of primes $k$, the expected number of rolls is approximately $k \ln k$. By combining rigorous probabilistic proofs with heavy-duty symbolic computation, the authors bridge the gap between the chaotic nature of prime numbers and the predictable behavior of long-term averages.
What Problem Does This Paper Address?
The "Hitting Primes" problem is a classic puzzle in probabilistic number theory. Imagine you are walking along the number line, but your step sizes are determined by rolling a fair six-sided die. You keep track of your cumulative sum. Because you skip some numbers (e.g., if you roll a 4, you skip three integers), you won't land on every prime.
Previous research established that the expected number of rolls to hit the first prime ($L_1$) is approximately 2.43. However, the behavior for hitting $k$ primes was unknown. This paper seeks to determine the asymptotic behavior of $L_k$ (the number of rolls to hit $k$ primes) as $k$ grows toward infinity, while also providing precise data for smaller values of $k$.
Methods
The authors employ a two-pronged approach:
- Symbolic Computation: Using a custom Maple package called
PRIMESk, the authors calculated exact probability distributions for $k \leq 30$ and sampled values up to $k=100$. They modeled the process using probability generating functions represented as infinite series, which they truncated at a very high number of rolls ($R$) to ensure high precision (exceeding 20 decimal places). - Asymptotic Analysis: To prove the behavior for large $k$, they used:
- The Prime Number Theorem: To estimate the density and location of the $k$-th prime.
- Renewal Theory/Recurrence Relations: To show that the probability of hitting any specific large integer $x$ converges to $2/7$ (the reciprocal of the average die roll, 3.5).
- Chernoff Bounds: To prove that the number of primes "hit" by the dice rolls is tightly concentrated around the expected value, allowing them to ignore rare, extreme deviations.
Datasets
The paper does not use external datasets. Instead, it generates its own data through the PRIMESk Maple package. The authors have made the following available online:
- The Maple package itself.
- Output files containing exact probabilities, expectations, standard deviations, skewness, and kurtosis for $L_k$ where $k \leq 100$.
Key Insights and Ideas
- The "Cancellation" of the Die: An intuitive "aha" moment lies in the constants. The average die roll is $3.5$. This means you reach the vicinity of the $k$-th prime (which is roughly at value $k \ln k$) in $(k \ln k) / 3.5$ rolls. However, you only "hit" about $2/7$ of the integers you pass. Since $2/7 = 1/3.5$, these factors cancel out perfectly in the limit, leaving the expected number of rolls as simply $k \ln k$.
- Exponential Convergence: The probability of hitting an integer $x$ doesn't just approach $2/7$; it does so at an exponential rate. This allows the authors to treat the events of hitting distant primes as nearly independent.
- Distribution Shaping: As $k$ increases, the distribution of $L_k$ becomes more "normal." The skewness and kurtosis values (measures of asymmetry and "tailedness") trend toward 0 and 3, respectively, which are the signatures of a Gaussian distribution.
Key Results
- Main Theorem: The expected value $E(L_k) = (1 + o(1))k \ln k$. This means as $k$ gets very large, the ratio of the expected rolls to $k \ln k$ approaches 1.
-
Precise Heuristics: For practical use at smaller $k$, the authors found that a more complex formula fits the data better: $$f(k) = k(\ln k + \ln \ln k + 0.543) + 8.953$$ For $k=100$, this heuristic is accurate to within 0.03%.
-
Computational Benchmarks:
- $E(L_1) \approx 2.428$
- $E(L_{10}) \approx 42.76$
- $E(L_{100}) \approx 676.32$
Limitations and Future Work
- Specific to Fair Dice: While the authors provide a roadmap for how to adapt the proof for biased dice or $r$-sided dice, the specific constants and computational tables provided are strictly for a fair 6-sided die.
- The $o(1)$ Term: The main theorem provides the "leading order" behavior. While the heuristic formula suggests the next terms are $k \ln \ln k$, a rigorous proof for these lower-order terms is left for future work.
- Arbitrary Subsets: The authors note that the primes could be replaced with any set of integers (like square numbers), and the logic would hold as long as you know the "counting function" for that set. However, they did not perform the detailed computational analysis for these other sets in this paper.
Summary updated