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


Groups > sci.electronics.design > #403261

Re: simple proof to explain the "shocking" news about primes last digits not being random

From Jamie M <jmorken@shaw.ca>
Newsgroups sci.math, sci.electronics.design
Subject Re: simple proof to explain the "shocking" news about primes last digits not being random
Date 2016-03-17 13:21 -0700
Organization Aioe.org NNTP Server
Message-ID <ncf3kc$evd$1@gioia.aioe.org> (permalink)
References (13 earlier) <ncctng$t10$1@dont-email.me> <ncd11d$130f$1@gioia.aioe.org> <ncdjc1$hb7$1@dont-email.me> <nceq1c$1tlr$1@gioia.aioe.org> <ncerat$1vv7$1@gioia.aioe.org>

Cross-posted to 2 groups.

Show all headers | View raw


On 3/17/2016 10:59 AM, Jamie M wrote:


>> Hi,
>>
>> I think the whole statistics of the prime distribution should
>> be explainable by assuming the primes are totally randomly
>> filled into deterministic locations given by primorial
>> formulas.
>>
>> ie.
>>
>> y = 30x + 1
>> y = 30x + 7
>> y = 30x + 11
>> y = 30x + 13
>> y = 30x + 17
>> y = 30x + 19
>> y = 30x + 23
>> y = 30x + 29
>>
>
> Hi,
>
> For these eight equations:
>
> y = 30x + 1
> y = 30x + 7
> y = 30x + 11
> y = 30x + 13
> y = 30x + 17
> y = 30x + 19
> y = 30x + 23
> y = 30x + 29
>
> that produce all primes, here is the statistical distribution for how
> often the 8*8=64 permutations of the equations occur consecutively
> when producing primes:
>
> primeA, primeA+1, count
>
> 7    11    2945
> 11    13    2916
> 17    19    2914
> 29    1    2904
> 23    29    2893
> 13    17    2892
> 19    23    2887
> 1    7    2849
> 23    1    2209
> 11    17    2193
> 17    23    2181
> 13    19    2163
> 1    11    2159
> 19    29    2154
> 29    7    2153
> 7    13    2087
> 23    7    1824
> 7    17    1624
> 13    23    1590
> 1    13    1585
> 19    1    1561
> 11    19    1551
> 17    29    1551
> 29    11    1526
> 29    13    1345
> 17    1    1278
> 13    29    1160
> 7    19    1138
> 11    23    1133
> 1    17    1087
> 19    7    1020
> 23    11    993
> 19    11    957
> 1    19    811
> 7    23    795
> 11    29    783
> 29    17    774
> 13    1    737
> 17    7    724
> 23    13    720
> 1    23    665
> 7    29    633
> 13    7    560
> 11    1    547
> 23    17    543
> 29    19    519
> 19    13    517
> 17    11    516
> 13    11    448
> 19    17    431
> 23    19    431
> 11    7    421
> 1    29    410
> 17    13    380
> 29    23    363
> 7    1    330
> 13    13    274
> 11    11    266
> 17    17    265
> 19    19    261
> 7    7    260
> 1    1    241
> 23    23    226
> 29    29    221
>
>
> 7 to 11 transition is most common with 2945 occurrences, and
> the 29 29 consecutive primes are least common with 221
> occurrences.
>
> This makes sense since the primes that are spaced closer together
> occur more frequently, but maybe there are additional patterns in
> this distribution too.
>
> cheers,
> Jamie
>
>



Carrying on from the last post:

7 17 1624
17 7 724
17 17 265
7 7 260

Those are the 4 possible consecutive primes with digits ending in 7 and 
how often they occur. The sum of all the above counts is 78494, and the 
end digit 7’s have 2873 as their combined count, which is 3.6% of the 
overall count.

This closely matches the formula for probability of what would be expected,
generated by this python code that gives the probability of having K 
consecutive samles in a population of N in M draws
(python code by Ludvig Ericson)

%matplotlib inline
from functools import reduce
import operator
prod = lambda L: reduce(operator.mul, L, 1.0)
def p(N, K, M):
return sum(K/prod(N – k – i for k in range(K))*prod((N-K-j)/(N-j) for j 
in range(i)) for i in range(M-K+1))
p(8,2,2) #two consecutive out of 8, with first 2 picked

output: 0.03571428571428571
(close to 3.6%)

For the example of primes ending in 3’s:

13 23 1590
23 13 720
13 13 274
23 23 226

The sum of counts is 2810, and 2810/78494 = 3.579%

For primes ending in 9’s:

19 29 2154
29 19 519
19 19 261
29 29 221

The sum of counts is 3155, and 3155/78494 = 4.019%

For primes ending in 1’s:

1 11 2159
11 1 547
11 11 266
1 1 241

The sum of counts is 3213, and 3213/78494 = 4.09%

These 16 combined:

1 11 2159
11 1 547
11 11 266
1 1 241
7 17 1624
17 7 724
17 17 265
7 7 260
13 23 1590
23 13 720
13 13 274
23 23 226
19 29 2154
29 19 519
19 19 261
29 29 221

Have a total of 12051 counts and 12051/78494=15.35%

So one quarter of the possible groups of consecutive primes (16 of the 
64) occur only about 15.35% of the time,
(as opposed to the expected 25%) whereas the other 48 consecutive primes 
with non-matching least digits occur more often that would be expected.

So can probability and/or combinatorics explain this?

cheers,
Jamie




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


Thread

simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 03:45 -0700
  Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 04:41 -0700
    Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 06:06 -0700
      Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 06:28 -0700
        Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 06:53 -0700
          Re: simple proof to explain the "shocking" news about primes last digits not being random Gottfried Helms <helms@uni-kassel.de> - 2016-03-16 15:07 +0100
            Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 07:35 -0700
              Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 08:14 -0700
              Re: simple proof to explain the "shocking" news about primes last digits not being random Gottfried Helms <helms@uni-kassel.de> - 2016-03-17 22:36 +0100
            Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 09:51 -0700
              Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 09:55 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 10:04 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 10:10 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 10:42 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 11:24 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 16:42 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random David Bernier <david250@videotron.ca> - 2016-03-16 20:31 -0400
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 18:25 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random David Bernier <david250@videotron.ca> - 2016-03-17 02:41 -0400
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-17 10:37 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-17 10:59 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-17 13:21 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-03-18 14:28 +0000
                Re: simple proof to explain the "shocking" news about primes last digits not being random Gottfried Helms <helms@uni-kassel.de> - 2016-03-19 13:22 +0100
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie Morken <jmorken@shaw.ca> - 2016-03-21 13:46 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie Morken <jmorken@shaw.ca> - 2016-03-19 14:47 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random David Bernier <david250@videotron.ca> - 2016-03-16 21:29 -0400
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 18:32 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 19:05 -0700
                Re: simple proof to explain the "shocking" news about primes last digits not being random Joe <joe@somewhere.org> - 2016-03-19 02:27 +0000
                Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 18:29 -0700
              Re: simple proof to explain the "shocking" news about primes last digits not being random Gottfried Helms <helms@uni-kassel.de> - 2016-03-17 22:37 +0100
  Re: simple proof to explain the "shocking" news about primes last digits not being random Sylvia Else <sylvia@not.at.this.address> - 2016-03-16 22:47 +1100
    Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 06:08 -0700
      Re: simple proof to explain the "shocking" news about primes last digits not being random Sylvia Else <sylvia@not.at.this.address> - 2016-03-17 12:29 +1100
        Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 18:42 -0700
  Re: simple proof to explain the "shocking" news about primes last digits not being random Virgil <VIRGIL@VIRGIL.com> - 2016-03-16 11:14 -0700
    Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 11:14 -0700
  Re: simple proof to explain the "shocking" news about primes last digits not being random DaveC <not@home.cow> - 2016-03-16 11:11 -0700
    Re: simple proof to explain the "shocking" news about primes last digits not being random Jamie M <jmorken@shaw.ca> - 2016-03-16 11:17 -0700

csiph-web