Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Joe <joe@somewhere.org> |
|---|---|
| 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-19 02:27 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ncidf5$2td$2@dont-email.me> (permalink) |
| References | (10 earlier) <ncc5ui$1kag$1@gioia.aioe.org> <ncc8dd$1pe2$2@gioia.aioe.org> <nccr0l$rue$1@gioia.aioe.org> <ncctng$t10$1@dont-email.me> <ncd13h$5st$1@dont-email.me> |
Cross-posted to 2 groups.
On Wed, 16 Mar 2016 21:29:16 -0400, David Bernier wrote:
> On 03/16/2016 08:31 PM, David Bernier wrote:
>> I can reproduce the 17.757% for "7 7" (mod 10) like this,
>> using PARI/gp:
>> ? c77 = 0; c7 = 0; lastp=7; forprime(q = 8, 2038074750, rc=q%10;
>> rl=lastp%10; if(abs(rl-7)<1, c7=c7+1; if(abs(rc-7)<1, c77= c77+1));
>> lastp = q); print(c7," ",c77); print(100.0*c77/c7)
>> 25000402 4439355
>> 17.757134465277798333002805314890537
>> primepi(2038074750) = 100000000 = 10^8 .
>> If we look instead at the block of primes from 10^20 to 10^20 + 10^9,
>> the probability of "7 7" (mod 10) given a "7" (mod 10) should
>> be closer to 25% . But by how much?
>
> I found 10^20 a bit big. For pairs of consecutive primes
> p_k , p_{k+1} in the range 10^18, 10^18 + 10^9, I find
>
> 6030113 cases of (7, x) (mod 10), where x is one of
> 1, 3, 7, 9 and 1269493 cases of (7, 7) (mod 10),
> for a conditional probability of
> 21.06 % chance of (7, 7) given a (7, x) pair, modulo 10:
[snip code]
It probably would take pari/gp close to the same time to compute
all last-digit-to-last-digit transition counts, as for one or
two particular pairs. Below are some transition counts based on
the 40 million primes following 10^15. (Note, the rightmost
column is a row total, but the first row is one short, there being
one less transition than the total number of primes considered).
: 1 3 7 9
1: 2063808 2802379 2786971 2348004 10001163
3: 2474340 2038677 2698526 2787378 9998921
7: 2530456 2626431 2042241 2801603 10000731
9: 2932559 2531434 2472992 2062202 9999187
The number of 1-1, 3-3, 7-7, and 9-9 transitions were about
20.6%, 20.4%, 20.4%, and 20.6%, respectively, of the transitions
from 1, 3, 7, and 9.
The number of 1-3, 3-7, 7-9, and 9-1 transitions were about
28%, 27%, 28%, and 29%, respectively, of the transitions from
1, 3, 7, and 9.
Both of those results are in line with the idea that the last digit
of a prime's successor prime are more likely to be a nearby value,
instead of a more-distant value. For a prime p with last digit p%10,
3 of every 4 {1,3,7,9}-spots are closer to p than are {p%10}-spots.
Here's a table of percentages of transitions (from units digit as shown
in left column, to units digit as in the heading line) for numbers from
n# to 2*(n#) with n=29 (so nLo=6469693230, nHi=12939386460).
: 1 3 7 9
1: 19.04 29.25 29.39 22.32 70397392
3: 24.27 18.50 27.85 29.38 70399939
7: 25.43 26.82 18.49 29.26 70401458
9: 31.25 25.43 24.28 19.04 70398938
--
jiw
Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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
digit-endings (see Max M. munK abu.kuanysh05@gmail.com - 2016-03-16 18:22 -0700
Re: digit-endings (see Max M. munK Virgil <VIRGIL@VIRGIL.com> - 2016-03-16 19:47 -0700
Re: digit-endings (see Max M. munK R Kym Horsell <kym@kymhorsell.com> - 2016-03-17 03:02 +0000
Re: digit-endings (see Max M. munK abu.kuanysh05@gmail.com - 2016-03-19 18:37 -0700
Re: digit-endings (see Max M. munK abu.kuanysh05@gmail.com - 2016-03-17 12:47 -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 David Petry <davidlpetry@gmail.com> - 2016-03-16 08:51 -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