We realized that a simple arithmetic experiment we had performed in our youth is actually related to an unsolved problem in number theory. It goes thus: consider the sequence of natural numbers Then find the distance of
to nearest prime
that is 1) greater than or equal to
or 2) less than or equal to
. Thus,
. We then define the arithmetic function
. Since, 1 has no prime before it, we can either have
as undefined or assign 0 to it. The corresponding sequence goes thus:
The function as a nice shape with symmetric maxima that remind one of reptilian teeth (Figure 1).
Now, where do the successive local maxima of this function occur? If we leave out the undefined we see that these occur in a sequence which we call
:
One can right away intuitively conclude that this sequence captures the occurrences of primes in natural number space by defining some kind of central position between them. Hence, we can more explicitly ask, what is the relation of to the arithmetic and geometric means of successive primes behave? We find that the above sequence
and
for primes starting with 3 onward. One can see that the local maxima of
, i.e. the values of
(if we count leaving out the undefined first term in
), are all square numbers. These have a specific relationship to the prime difference function
starting from 3 (Figure 2). Given that from 3 onward every prime is odd, the corresponding
will be even. Then, we have the following relationship to the local maxima in
:
Thus, the local maxima of help define a certain parabolically rescaled version of the prime difference function, which, as we will see below, has utility in understanding aspects of the occurrence of successive primes.
We know that and
will never be a whole number. Thus, we can define the arithmetic function
. One experimentally notes the asymptotic behavior that as
. However, this secular decay is marked local fluctuations. There are two notable features of this (Figure 3): 1) The maximum value of
is 0.22503561260788 for
which corresponds to the
. Thus, we can conjecture that the difference between the arithmetic and geometric means of successive primes is always less than one fourth, i.e.
. 2) The fluctuations of
starting from
exactly mirror the fluctuations defined by the local maxima of
, i.e.
, with the magnitude of the
peak tracking the magnitude of the peak in
. The first time a peak of given magnitude appears in
it has the largest corresponding effect in
with all subsequent appearances of the peak of the same magnitude being increasingly muted.
Thus, we can empirically determine that (Figure 4):
Figure 4. The green filled curve is
while the dark red curve is
Whether there is some closed form for the constant 2.3 remains an open question to us. After we posted this note, an acquaintance from Twitter provided a proof for why the constant in the above equation should be should be 2 for large .
Prime gaps have been intensely studied since at least Legendre who had a conjecture regarding them; several tighter variants of that conjecture have been proposed repeatedly since then. Hence, looked up the literature to see if our conjecture regarding the difference of the arithmetic and geometric means of successive primes might be equivalent to any of those. We learnt recently that it is a version of a conjecture stated by Andrica, in 1986, just about a decade before when we began exploring the function . It goes thus:
The form in which we present the conjecture appears to be a nice statement of a strong version of the Andrica conjecture and provides a cleaner comparison for the fluctuations in
than the simple prime gap function. Remarkably, simple as these conjectures are, they have not been proven to date. Moreover, it seems that even if the Riemann hypothesis were to be true, that by itself will not imply these conjectures. Thus, yet again we have simple arithmetic statements that can be understood or arrived at even by a school kid but are extraordinarily difficult to prove formally. The philosophical implications of these are interesting to us.