Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #330828

formula to determine prime gaps for given range of numbers

From Jamie M <jmorken@shaw.ca>
Newsgroups sci.math
Subject formula to determine prime gaps for given range of numbers
Date 2016-03-29 17:02 -0700
Organization Aioe.org NNTP Server
Message-ID <ndf535$13i0$1@gioia.aioe.org> (permalink)

Show all headers | View raw


Hi,

I think there is a generalized formula to determine the ordering of
prime gaps by occurrence for any range of numbers.  For simplicity
the range of numbers can start at zero and for this example go to
1million.

So for numbers up to 1million there are these sets of formulas
that have the possibility of producing at least two possible primes for
non negative integers x

y=mx+b

y=6x+b (2 values of b in range 1 to m-1 that produce primes)
y=30x+b (8 values of b in range 1 to m-1 that produce primes)
y=210x+b (48 values of b in range 1 to m-1 that produce primes)
y=2310x+b (480 values of b in range 1 to m-1 that produce primes)
y=30030x+b (5760 values of b in range 1 to m-1 that produce primes)
y=510510x+b (92160 values of b in range 1 to m-1 that produce primes)
y=9699690x+b (1658880 values of b in range 1 to m-1 that produce primes)

At first glance (without removing x multiples that don't produce
primes) the number of possible x's that can produce primes up to
1million is this:

y=6x+b 1000000/6 = 166666
y=30x+b 1000000/30 = 33333
y=210x+b 1000000/210 = 4761
y=2310x+b 1000000/2310 = 432
y=30030x+b 1000000/30030 = 33
y=510510x+b 1000000/510510 = 1.95
y=9699690x+b 1000000/9699690 = 0.103

These numbers (rounded for simplicity) give how many values of x
can produce primes up to 1million for each equation set above.

When these numbers are multiplied by the count of b values for each
equation set above, it gives how many total primes can be produced
by each equation set above:

y=6x+b 166666*2 = 333333
y=30x+b 33333*8 = 266666
y=210x+b 4761*48 = 228571
y=2310x+b 432*480 = 207792
y=30030x+b 33*5760 = 191808
y=510510x+b 1.95*92160 = 180525
y=9699690x+b 0.103*1658880 = 171024

(above numbers recalculated from before rounding to maintain accuracy)

One possible complication is that the above sets of equations will have
overlap in the primes that they produce, since each equation set
ie:

y=6x+b (2 values of b in range 1 to m-1 that produce primes)

will produce ALL primes except for 2,3 and all the other equation
sets produce ALL primes (except for the small ones 2,3,5,7 etc), so
there is some overlap that probably effects the statistical answer
of prime gap for a given number range.


So the simplified maximum number of non-unique primes that each set of
equations could produce is:

y=6x+b 333333
y=30x+b 266666
y=210x+b 228571
y=2310x+b 207792
y=30030x+b 191808
y=510510x+b 180525
y=9699690x+b 171024

These are far beyond what the equations will produce but gives
a relative ratio between the equations for how many primes they
can each produce in the range 0 to 1million.  Normalizing the ratios
to 1 gives:

y=6x+b 333333 / 171024 = 1.949
y=30x+b 266666 / 171024 = 1.559
y=210x+b 228571 / 171024 = 1.336
y=2310x+b 207792 / 171024 = 1.215
y=30030x+b 191808 / 171024 = 1.122
y=510510x+b 180525 / 171024 = 1.056
y=9699690x+b 171024 / 171024 = 1


To determine the "jumping champion" prime gap for a given range ie 0 to
1million, the next step is to find the average gap for each of the
above equations based on their b values.  This makes the assumption
that the b values of the above equations will produce primes equally
which I believe is true.

I skip this above step for now, but it would look something like
this:

y=6x+b has b values 1 and 5, which gives the two fundamental gaps of 2
and 4, ((6-5)+1 for gap=2 and 5-1 for gap=4) and when there are missing
primes for x, the gaps can sum up, ie 2,4,6,8 in multiples of 2.
The sum of these fundamental gaps is 2+4=6 the same as the m value in
y=30x+b

y=30x+b has b values 1,7,11,13,17,19,23,29, which gives the fundamental
gaps 1-7 11-7, 13-11, 17-13, 19-17, 23-19, 29-23, 29-1 which are prime
gaps: 6, 4, 2, 4, 2, 4, 6, 2
The sum of these fundamental gaps is 6+4+2+4+2+4+6+2=30 the same as the
m value in y=30x+b

I'm not sure why the sum of the gaps is equal to the primorial but it
is interesting I think, any ideas?

I will continue with the averaging later maybe....



The non averaging counting of gaps stage:

This idea uses the ratio's of prime number occurrence for each equation 
set that CAN possibly produce primes in the range 0 to 1million ie:

y=6x+b 333333 / 171024 = 1.949
y=30x+b 266666 / 171024 = 1.559
y=210x+b 228571 / 171024 = 1.336
y=2310x+b 207792 / 171024 = 1.215
y=30030x+b 191808 / 171024 = 1.122
y=510510x+b 180525 / 171024 = 1.056
y=9699690x+b 171024 / 171024 = 1

Multiplied by the lists of the fundamental gaps for each set of
equations ie:

y=6x+b fundamental gaps 2,4
y=30x+b fundamental gaps 6,4,2,4,2,4,6,2
y=210x+b fundamental gaps
y=2310x+b fundamental gaps
y=30030x+b fundamental gaps
y=510510x+b fundamental gaps
y=9699690x+b fundamental gaps

There are too many fundamental gaps to show above, but the COUNT
of each fundamental gap is sufficient.

y=6x+b fundamental gaps 2(count=1),4(count=1)
y=30x+b fundamental gaps 6(count=2),4(count=3),2(count=3)
y=210x+b fundamental gaps
y=2310x+b fundamental gaps
y=30030x+b fundamental gaps
y=510510x+b fundamental gaps
y=9699690x+b fundamental gaps

So knowing the ratios for each of the above formulas for how
many total primes they statistically can produce in the range
0 to 1million, as well as for how often the b's produce primes of a
given gap, the "jumping champion" as well as the complete occurrence
order can be found for all the gaps in the range from 0 to 1million:

ie partial calculation using results from y=6x+b and y=30x+b only:

y=6x+b prime production ratio for range 0 to 1million = 1.949
y=30x+b prime production ratio for range 0 to 1million = 1.559

total for gap=2 is the sum of gaps that occur for y=6x+b and y=30x+b

The fundamental gap of 2 occurs 1/2 of the time in y=6x+b as
gap of 2 has a count of 1 and gap of 4 has a count of 1.  The
fundamental gap of 4 also occurs 1/2 of the time in y=6x+b.

gap 2: 1/2
gap 4: 1/2

y=6x+b gap2: 0.5*1.949=0.9745
y=6x+b gap4: 0.5*1.949=0.9745

For y=30x+b fundamental gap of 2 occurs 3 times out of the total
8 fundamental gaps, here is the full occurrence for all the gaps
in y=30x+b:

gap 2: 3/8
gap 4: 3/8
gap 6: 2/8

y=30x+b gap2: 0.375*1.559=0.584625
y=30x+b gap4: 0.375*1.559=0.584625
y=30x+b gap6: 0.25*1.559=0.38975

For y=210x+b here is the full occurrence for all the gaps:

for b values:

1,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,
121,127,131,137,139,143,149,151,157,163,167,169,173,179,181,187,191,193,197,199,209,

The list of gaps for the above is: (includes gap from 209 to 1)

10,2,4,2,4,6,2,6,4,2,4,6,6,2,6,4,2,6,4,6,8,4,2,4,2,4,8,6,4,6,2,4,6,2,6,6,4,2,4,6,2,6,4,2,4,2,10,2

The total number of gaps is EulerPhi(210) = 48, and the gap sequence is
a palindrome

gap count
2 15
4 15
6 14
8 2
10 2

gap 2: 15/48
gap 4: 15/48
gap 6: 14/48
gap 8: 2/48
gap 10: 2/48

y=210x+b gap 2: 15/48 * 1.336=0.4175
y=210x+b gap 4: 15/48 * 1.336=0.4175
y=210x+b gap 6: 14/48 * 1.336=0.3897
y=210x+b gap 8: 2/48 * 1.336=0.0557
y=210x+b gap 10: 2/48 * 1.336=0.0557


This calculation should be continued for all the equation sets,
2310, 30030, etc that can produce primes in the range 0 to 1million.

Assuming that is done, then this next calculation can find the "jumping
champion" and the gap ordering (just using results from y=6x+b and
y=30x+b and y=210x+b for now)

The next calculation is to add up all the gap 2,4,6,8,10 etc to get the
total occurrence ratios from these results:

y=6x+b gap2: 0.5*1.949=0.9745
y=6x+b gap4: 0.5*1.949=0.9745

y=30x+b gap2: 0.375*1.559=0.584625
y=30x+b gap4: 0.375*1.559=0.584625
y=30x+b gap6: 0.25*1.559=0.38975

y=210x+b gap 2: 15/48 * 1.336=0.4175
y=210x+b gap 4: 15/48 * 1.336=0.4175
y=210x+b gap 6: 14/48 * 1.336=0.3897
y=210x+b gap 8: 2/48 * 1.336=0.0557
y=210x+b gap 10: 2/48 * 1.336=0.0557

gap of 2 sum = 0.9745+0.584625+0.4175=1.976625
gap of 4 sum = 0.9745+0.584625+0.4175=1.976625
gap of 6 sum = 0.38975+0.3897=0.77945
gap of 8 sum = 0.0557+..
gap of 10 sum = 0.0557+..

All of these gap sums should then again be normalized,
to show the relative gap occurrences.

*IMPORTANT NOTE: the above are partial results based on just three
(6,30,210) of the 7 equation sets, ie need to add sums for 2310, 30030
etc.. ie so there should be 7 terms summed for gap of 2 above not just
3.  But based on the above partial results, it shows that gap of 2
and gap of 4 primes should have equal occurrence.

Also as I mentioned before, the fact that there are some known
multiples of x's that produce zero primes will effect this
statistical result of gap occurrences, since likely the ratios of
x's that produce no primes will vary for each primorial 6,30,210 etc.
However knowing the ratios of x's that produce primes to not producing
primes for each primorial can be used to apply a correction factor
maybe.

Also another possible complication that could skew the gap occurrence
results, is that the different equation sets have overlap in the primes
they produce, this may be irrelevant however not sure.

If all the prime gaps occurrence ratios can be determined then this
technique can be modified for a prime counting function too maybe, ie
see this info:

http://arxiv.org/abs/1211.4571
http://mathematical.com/mathprimorialproof.html
http://oeis.org/A000849

cheers,
Jamie

Back to sci.math | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

formula to determine prime gaps for given range of numbers Jamie M <jmorken@shaw.ca> - 2016-03-29 17:02 -0700
  Re: formula to determine prime gaps for given range of numbers Jamie M <jmorken@shaw.ca> - 2016-03-30 01:05 -0700
  Re: formula to determine prime gaps for given range of numbers Jamie M <jmorken@shaw.ca> - 2016-03-30 23:03 -0700

csiph-web