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


Groups > sci.math > #330828 > unrolled thread

formula to determine prime gaps for given range of numbers

Started byJamie M <jmorken@shaw.ca>
First post2016-03-29 17:02 -0700
Last post2016-03-30 23:03 -0700
Articles 3 — 1 participant

Back to article view | Back to sci.math


Contents

  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

#330828 — formula to determine prime gaps for given range of numbers

FromJamie M <jmorken@shaw.ca>
Date2016-03-29 17:02 -0700
Subjectformula to determine prime gaps for given range of numbers
Message-ID<ndf535$13i0$1@gioia.aioe.org>
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

[toc] | [next] | [standalone]


#330849

FromJamie M <jmorken@shaw.ca>
Date2016-03-30 01:05 -0700
Message-ID<ndg1ch$cnp$1@gioia.aioe.org>
In reply to#330828
On 3/29/2016 5:02 PM, Jamie M wrote:
>
>
> 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


The above shows an interesting verification that the
primes are distributed randomly among the y=mx+b formulas,
ie for gap 6 in primorial 30 above:

y=30x+b gap6: 0.25*1.559=0.38975

And then the totally independent calculation for gap 210:

y=210x+b gap 6: 14/48 * 1.336=0.3897

This shows the exact same value (to four decimal places)
0.3897 as the relative occurence for gap 6 primes using
the two different equation sets:

y=30x+b
y=210x+b

So in y=30x+b there are 2/8 (0.25) gap 6 possibilities,
and in y=210x+b there are 14/48 gap 6 possibilities, and
what makes the numbers equal are the two ratios:

y=30x+b 266666 / 171024 = 1.559
y=210x+b 228571 / 171024 = 1.336

Which as shown from the previous post come from:

y=30x+b 33333*8 = 266666
y=210x+b 4761*48 = 228571

The simplified maximum number of non-unique primes that each set of
equations could produce.

cheers,
Jamie


[toc] | [prev] | [next] | [standalone]


#330978

FromJamie M <jmorken@shaw.ca>
Date2016-03-30 23:03 -0700
Message-ID<ndiejv$1d4$1@gioia.aioe.org>
In reply to#330828

Here are some more results:

primorial 6 coprime equation list gap counts: (2 total)

gap count
{[2, 1]}
{[4, 1]}


primorial 30 coprime equation list gap counts: (8 total)

gap count
{[2, 3]}
{[4, 3]}
{[6, 2]}


primorial 210 coprime equation list gap counts: (48 total)

gap count
{[2, 15]}
{[4, 15]}
{[6, 14]}
{[8, 2]}
{[10, 2]}


primorial 2310 coprime equation list gap counts: (480 total)

gap count
{[2, 135]}
{[4, 135]}
{[6, 142]}
{[8, 28]}
{[10, 30]}
{[12, 8]}
{[14, 2]}


primorial 30030 coprime equation list gap counts: (5760 total)

gap count
{[2, 1485]}
{[4, 1485]}
{[6, 1690]}
{[8, 394]}
{[10, 438]}
{[12, 188]}
{[14, 58]}
{[16, 12]}
{[18, 8]}
{[22, 2]}


primorial 510510 coprime equation list gap counts: (92160 total)

gap count
{[2, 22275]}
{[4, 22275]}
{[6, 26630]}
{[8, 6812]}
{[10, 7734]}
{[12, 4096]}
{[14, 1406]}
{[16, 432]}
{[18, 376]}
{[20, 24]}
{[22, 78]}
{[24, 20]}
{[26, 2]}


primorial 9699690 coprime equation list gap counts: (1658880 total)

gap count
{[2, 378675]}
{[4, 378675]}
{[6, 470630]}
{[8, 128810]}
{[10, 148530]}
{[12, 90124]}
{[14, 33206]}
{[16, 12372]}
{[18, 12424]}
{[20, 1440]}
{[22, 2622]}
{[24, 1136]}
{[26, 142]}
{[28, 72]}
{[30, 20]}
{[34, 2]}


primorial 223092870 coprime equation list gap counts: (36495360 total)

gap count
{[2, 7952175]}
{[4, 7952175]}
{[6, 10169950]}
{[8, 2918020]}
{[10, 3401790]}
{[12, 2255792]}
{[14, 871318]}
{[16, 362376]}
{[18, 396872]}
{[20, 61560]}
{[22, 88614]}
{[24, 48868]}
{[26, 7682]}
{[28, 5664]}
{[30, 2164]}
{[32, 72]}
{[34, 198]}
{[36, 56]}
{[38, 2]}
{[40, 12]}


cheers,
Jamie




[toc] | [prev] | [standalone]


Back to top | Article view | sci.math


csiph-web