This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A331544 #62 Sep 15 2023 04:26:53 %S A331544 2,7,13,19,31,41,59,71,83,101,109,131,139,151,163,179,193,199,223,229, %T A331544 241,257,269,281,311,337,349,373,383,401,421,433,443,461,487,503,523, %U A331544 547,563,571,593,601,613,619,641,659,677,709,727,739,757,773,797,811,823 %N A331544 Primes that begin a run of consecutive primes whose first differences are strictly increasing. %C A331544 Arrange primes in rows where the value of the increase between consecutive primes must keep increasing. %C A331544 Conjecture: Average length of each run = e, converging from below. %C A331544 Comment from _Peter Woodward_, Apr 22 2023: (Start) %C A331544 Heuristic justification: Consider that e = 2 + 1/2! + 1/3! + 1/4! + ... We always have at least two values in a run. The probability that there is a third value is 1/2!. The probability that there is a fourth value is 1/3! (because there are exactly 3! ways to sort three differences, and only one of these ways is in increasing order). And so on. The process is distorted by the possibility of equal increases. This sequence disallows equal increases in the runs, causing the convergence to e to approach from below. However, as the scale increases, these equal increases occur less frequently and their effect approaches zero. The sister sequence, "Primes that begin a run of consecutive primes whose first differences are nondecreasing", includes equal increases in its rows, thus it approaches e from above. Averaging the runs of the two sequences should negate the aberration, giving immediate convergence to e. However, while using a set of random numbers arranged in this fashion does immediately converge to e, with primes the convergence is slowed for unknown reasons, and the average run length remains slightly below e with extensive calculation (after 10^7 runs it reaches 2.712 vs. 2.718...). %C A331544 The probability that a randomly chosen integer n is prime is approximately 1/log(n) (by the prime number theorem). Thus, the expected gap between consecutive primes of size k is approximately (1/log(n)) * (1 - 1/log(n))^k - 1. %C A331544 Using the above formula, we can calculate the expected length of the k-th set as follows: %C A331544 E(length of k-th set) = Sum_{n>=m+1} ((1/log(n)) * (1 - 1/log(n))^k - 1) where m is the largest prime less than or equal to the starting prime of the k-th set. %C A331544 (End) %H A331544 Reddit blog, <a href="https://www.reddit.com/r/math/comments/cbd0a7/found_e_in_the_primes_maybe/">Found "e" in the primes (maybe)</a>, 2019. %e A331544 The first run is 2, 3, 5, thus the first value is 2; %e A331544 the second run is 7, 11, thus the second value is 7; %e A331544 the third run is 13, 17, thus the third value is 13; %e A331544 the fourth run is 19, 23, 29, thus the fourth value is 19. %o A331544 (PARI) lista(nn) = {my(m=2, d=0); forprime(p=2, nn, if(p-m>d, d=p-m, d=0; print1(p, ", ")); m=p); } \\ _Jinyuan Wang_, Jan 21 2020 %Y A331544 Cf. A309663. %K A331544 nonn %O A331544 1,1 %A A331544 _Peter Woodward_, Jan 19 2020 %E A331544 More terms from _Jinyuan Wang_, Jan 21 2020