mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2005-11-10, 03:05   #1
Citrix
 
Citrix's Avatar
 
Jun 2003

2×7×113 Posts
Default primes?

Just a question. I am interested in looking for primes such that the following is true. Does any one know anything about their distribution.

Let such a prime be p.

Then take the first p prime P(1), P(2).... P(p).

Let set A= {P(1),....P(p)} (mod p)

Let set B= all numbers from 0 to p-1.

Then are there any primes for which the elements of set A and B are identical?

2 is the only such prime I know of .

Since P(1)=2
P(2)=3

Then A={0,1)
B={0,1}
Hence both the sets have the same elements.

Are there any more?

Some thoughts that I have:
The probability of finding k*p+n for fixed p is the same irrespective of n. Hence there should be more of these primes but I have not found any such examples upto 30 Million.

Citrix
Citrix is offline   Reply With Quote
Old 2005-11-10, 04:40   #2
PBMcL
 
PBMcL's Avatar
 
Jan 2005

2·31 Posts
Default

Just thinking statistically, this is hopeless. You want the first p primes to fall into unique residue classes mod p. The probability of this occurring is something like (1/p)^p, which gets very small very quickly as p increases.
PBMcL is offline   Reply With Quote
Old 2005-11-10, 05:30   #3
Citrix
 
Citrix's Avatar
 
Jun 2003

62E16 Posts
Default

Quote:
Originally Posted by PBMcL
Just thinking statistically, this is hopeless. You want the first p primes to fall into unique residue classes mod p. The probability of this occurring is something like (1/p)^p, which gets very small very quickly as p increases.
Why is the probability 1/p^p? Can you show how you get to it?

Some other ways to look at the problem.

Find p such that, where # is primorial

((P(p)#/p)+1)=0 (mod p)

Another way to look at the problem: Sum of first P(p) =0 (mod p)


Though the other 2 methods of looking at this problem will produce false positives, but only these numbers can be tested then.


Citrix
edit: I would say the probability to be 1 in p for the above 2 conditions.

Last fiddled with by Citrix on 2005-11-10 at 05:39
Citrix is offline   Reply With Quote
Old 2005-11-10, 06:01   #4
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

46438 Posts
Default

If p≥3, 4∈B but obviously ∉ A as it is not prime. But this is kinda trivial... maybe I didn't understand your question.

Alex
akruppa is offline   Reply With Quote
Old 2005-11-10, 06:11   #5
Citrix
 
Citrix's Avatar
 
Jun 2003

2·7·113 Posts
Default

Alex, what do the boxes mean?

The probability if primes were completely random would be p!/(p^p). This is also huge. But primes are not completely random and that should make a difference.

If primes were half the time random and 1/2 the times not then the probability would reduce down to the square root of p!/(p^p).

Citrix
Citrix is offline   Reply With Quote
Old 2005-11-10, 06:16   #6
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22·3·641 Posts
Default

Quote:
Originally Posted by Citrix
Let such a prime be p.

Then take the first p prime P(1), P(2).... P(p).

Let set A= {P(1),....P(p)} (mod p)

Let set B= all numbers from 0 to p-1.
Alex,

I think what Citrix means is that

for p = 3:
A = {2, 3, 5} (mod 3) = (2,0,2)
B = (0,1,2)

for p = 5:
A = {2, 3, 5, 7, 11} (mod 5) = (2,3,0,2,1)
B = (0,1,2,3,4)

for p = 7:
A = {2, 3, 5, 7, 11, 13, 17} (mod 7) = (2,3,5,0,4,6,3)
B = (0,1,2,3,4,5,6)

So for p = 7, 4 ∈ A
cheesehead is offline   Reply With Quote
Old 2005-11-10, 06:50   #7
PBMcL
 
PBMcL's Avatar
 
Jan 2005

2×31 Posts
Default

Quote:
Originally Posted by Citrix
Alex, what do the boxes mean?

The probability if primes were completely random would be p!/(p^p). This is also huge. But primes are not completely random and that should make a difference.

Citrix
You are right. I forgot the p! part. Using Stirling's formula p!/(p^p) is roughly
sqrt(2*pi*p)*exp(-p). But even considering only those primes exceeding p as "random", you end up approaching this formula as p gets large.
PBMcL is offline   Reply With Quote
Old 2005-11-10, 07:09   #8
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

Quote:
Originally Posted by Citrix
((P(p)#/p)+1)=0 (mod p)
Shouldn't it be ((P(p)#/p) - 1) \eq 0 (mod p) ?

Or alternately P(p)#/p \eq1 (mod p)?
axn is online now   Reply With Quote
Old 2005-11-10, 07:19   #9
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

Oops, I overlooked the (mod p) - sorry.

Alex
akruppa is offline   Reply With Quote
Old 2005-11-10, 11:54   #10
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

769210 Posts
Default

for p = 3:
A = {2, 3, 5} (mod 3) = {2,0,2} -- 2 is duplicated; 1 is missing
B = {0,1,2}

for p = 5:
A = {2, 3, 5, 7, 11} (mod 5) = {2,3,0,2,1} -- 2 is duplicated; 4 is missing
B = {0,1,2,3,4}

for p = 7:
A = {2, 3, 5, 7, 11, 13, 17} (mod 7) = {2,3,5,0,4,6,3} -- 3 is duplicated; 1 is missing
B = {0,1,2,3,4,5,6}

for p = 11:
A = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31} (mod 11) = {2,3,5,7,0,2,6,8,1,7,9} -- 2 and 7 are duplicated; 4 and 10 are missing
B = {0,1,2,3,4,5,6,7,8,9,10}

for p = 13:
A = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41} (mod 13) = {2,3,5,7,11,0,4,6,10,3,5,11,2} -- 2, 3, 5, 11 are duplicated; 1, 8, 9, 12 are missing
B = {0,1,2,3,4,5,6,7,8,9,10,11,12}

for p = 17:
A = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59} (mod 17) = {2,3,5,7,11,13,0,2,6,12,14,3,7,9,13,2,8} -- 2 is triplicated; 3, 7, 13 are duplicated; 1, 4, 10, 15, 16 are missing
B = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}

Is there anything profound in the pattern of congruence classes missing from or duplicated in A? (... other than that, so far, the only missing elements are 1 or composites, and the only duplicates are primes -- are those just law-of-small-number coincidences?)

Last fiddled with by cheesehead on 2005-11-10 at 12:02
cheesehead is offline   Reply With Quote
Old 2005-11-10, 14:54   #11
Citrix
 
Citrix's Avatar
 
Jun 2003

2×7×113 Posts
Default

Quote:
Originally Posted by axn1
Shouldn't it be ((P(p)#/p) - 1) \eq 0 (mod p) ?

Or alternately P(p)#/p \eq1 (mod p)?
See http://mathworld.wolfram.com/WilsonsTheorem.html
the formula comes from wilson's theorem
Citrix is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mersenne Primes p which are in a set of twin primes is finite? carpetpool Miscellaneous Math 3 2017-08-10 13:47
Distribution of Mersenne primes before and after couples of primes found emily Math 34 2017-07-16 18:44
Conjecture about Mersenne primes and non-primes v2 Mickey1 Miscellaneous Math 1 2013-05-30 12:32
A conjecture about Mersenne primes and non-primes Unregistered Information & Answers 0 2011-01-31 15:41
possible primes (real primes & poss.prime products) troels munkner Miscellaneous Math 4 2006-06-02 08:35

All times are UTC. The time now is 15:03.


Mon Aug 2 15:03:34 UTC 2021 up 10 days, 9:32, 0 users, load averages: 3.35, 3.18, 3.33

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.