Let be the sequence of prime numbers: 2, 3, 5, 7… Define the sequences
such that
. Then sequence
is defined such that
is the lowest prime divisor (LPD) of
and sequence
is defined so that
is the LPD of
.
5, 7, 11, 3, 23, 3, 5, 3, 47, 59…
3, 5, 3, 13, 3, 5, 3, 37, 3, 3…
Figure 1. A plot of the first 100 terms of
We observe that for the successive record values (i.e. successive maxima),
, are what are called safe primes and the corresponding
is a Sophie Germain prime. For
these
values are primes of the form
. In the case of
when
the successive
values are primes of the form
. From Figure 1 we observe that though the record values keep rising for these sequences for most part they assume low values. Obviously, the lowest value it can take is 3. We also observe that frequency of the occurrence of the
prime in these sequences from 3 upwards keeps decreasing. Below we tabulate the frequencies for the first 10 primes in
for
. The 3th column has the frequencies of the first 10 primes in the sequence of LPDs of odd numbers
up to some large
.
Figure 2. Frequencies of the first 100 primes in
(blue and red). The frequencies of the first 100 primes in the sequence of LPDs of odd numbers up to some large
(cyan). The curve
is shown in green for comparison.
From the above we see that the frequencies of the primes in the sequences
are very similar and likely to asymptotically converge to the same value. We can easily calculate the exact frequencies of the
prime in the sequence of LPDs of odd numbers in general: e.g. 3 will occur at
; 5 will occur at
; 7 will occur at
; 11 will occur at
and so on. Thus, we observe that the frequencies of the
prime in
notably differ from the frequencies of the same in the sequence of LPDs of odd numbers in general. We have not figured out if there is a means of exactly calculating the frequencies of the
prime in
. Strangely, the first few frequencies are close to reciprocals of the sequence 2, 8, 16, 32, 41, 78, 90, 128, which relates to a certain co-primality triangle. While this make no sense at all to us, it is unclear if it is all chance or some relationship exists (see postscript).
We then investigated how exactly the record values of grow with
. This is shown in Figure 3.
Figure 3.
plotted to 25997 terms
Visual examination of the plot showed that the record values grow very similarly in but
and
and they are bounded by a smooth curve that appears to be of the form
, where
is some constant. The original Gaussian form of the prime number counting function can be written as (using the asymptotic notation):
From this we can write the expression for the prime
thus:
The record values of the LPDs of will be primes of the form
. From this we can infer that that the record values of the two sequences
will be fitted by the curve:
In Figure 3 this is plotted as the cyan curve. While this reasonably captures the behavior of of the bounding curve of , it systematically falls short of it. As we have seen before, the above Gaussian form of the prime counting function is only a crude approximation, which Gauss and Dirichlet eventually replaced with the logarithmic integral
. In this regard Rosser had proved long ago that
; hence, what we see is a direct consequence of this. Inspired by the work of Chebyshev and Riemann, the obscure Russian village mathematician I.M. Pervushin (Pervouchine) investigated an exact formula for the
prime using a table of 25997 primes (for numbers
), which is coincidentally the same as the number we used in our investigation. Consequently he arrived at the remarkable formula:
This formula inspired Ernesto Cesàro to discover the more correct formula for the prime:
Here, the small-o notation can be interpreted to mean that the final error term is negligible compared to
Searching the literature, we found that recently Pierre Dusart had proved that
Thus, for large the first 4 terms are sufficient. Hence, based on Cesàro’s formula we arrived at the approximate function for the behavior of
:
This uses only the first 4 terms of Cesàro’s formula but gives us a good fit as seen by the red curve in Figure 3. In numerical terms for the largest prime in both for the first 25997 terms this approximation gives an error fraction of .002 suggesting that it is indeed a good one.
After we posted this note on Twitter we rather quickly heard back from an acquaintence on that forum about his solution for exact form of the frequencies of the prime in the above sequences. You can read his excellent post here.