![]() |
|
|
#144 | |
|
Aug 2002
Buenos Aires, Argentina
2×683 Posts |
Quote:
With my previous setting we have a=2 (mod 30), so I had to select a=32 to avoid a prime. But if we know that N>=3, we can use a=0 (mod 2), a=0 (mod 3), a=4 (mod 5) and so on and in that case we get a=24. For N=7, using the same idea: a=0 (mod 2), a=0 (mod 3), a=4 (mod 5), a=2 (mod 7). Thus we get M = 2*3*5*7 = 210, a=114. So the seven consecutive numbers would be 114 (multiple of 2), 115 (multiple of 5), 116 (multiple of 2), 117 (multiple of 3), 118 (multiple of 2), 119 (multiple of 7), 120 (multiple of 2). |
|
|
|
|
|
|
#145 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#146 |
|
May 2004
New York City
102128 Posts |
ok, no problem.
By the way, the series 32,33,34,35 contains four composites, but 36 is also composite. What is the smallest sequence of N composites P+1,P+2,...,P+N with P and P+N+1 prime? |
|
|
|
|
|
#147 | |
|
Romulan Interpreter
Jun 2011
Thailand
961110 Posts |
Quote:
![]() Of course, except 2, all primes are odd, therefore there is number of odd numbers between two odd numbers. In his example N=4, therefore at least 5 composites must be there, if there are 4. The smallest example for 4 (5) is 23-29. See prime gaps... 31-37 in the example is the second. ![]() ![]() [edit: link and link, and many other links] [edit 2: remark that for example gap 14 (i.e. 13 composites) appears before gap 10 (9) and gap 12 (11 composites), so again, it depends how you count] Last fiddled with by LaurV on 2015-11-25 at 16:05 |
|
|
|
|
|
|
#148 | |
|
Jun 2003
5,051 Posts |
Quote:
a = 0 (mod 2) ==> a+2, a+4, ... can be "sieved out" a+1 (the first one not yet sieved out = 0 (mod 3) ==> a+7, a+13, a+19, ... can be sieved out a+3 = 0 (mod 5) ==> a+13, a+23, ... can be sieved out and so on. Then only solve for the set of first congruence for each prime. EDIT:- This effectively boils down to having an array of N elements with the ith element equal to the smallest factor of i. This obviously requires all primes <= N, and thus the number will be about N# But then, we can do much better by running the index from -(N/2) to (N/2). So now we need only primes <= N/2 and so the size will be roughly halved to (N/2)# Last fiddled with by axn on 2015-11-25 at 16:40 |
|
|
|
|
|
|
#149 |
|
Aug 2002
Buenos Aires, Argentina
2×683 Posts |
But in this case it would not be possible to find an explicit formula for the first number of the sequence.
|
|
|
|
|
|
#150 | |
|
Jun 2003
5,051 Posts |
Quote:
EDIT:- If search is allowed, just look for m*(N/2)#, with m running from 1,2,... Except for m*(N/2)+/-1, everything in the range m*(N/2)+/-N is trivially composite. You'll probably get lucky with m=1 itself such that (N/2)#+/-1 is also composite. Last fiddled with by axn on 2015-11-25 at 17:00 |
|
|
|
|
|
|
#151 |
|
Sep 2009
2·1,039 Posts |
|
|
|
|
|
|
#152 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
I think you meant Code:
(13:36) gp > forprime(x=30030-26,30030+26,print(x)) 30011 30013 30029 30047 I also think you meant (N/2)# most of the time. |
|
|
|
|
|
|
#153 |
|
Jun 2003
116738 Posts |
|
|
|
|
|
|
#154 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
technically we can still use pn# for a though it's not always needed to be that high ( I'd think), I was mostly just suggesting that only the lowest prime divisor of the number need be used potentially. we could in theory have ways to cover more that way though with limitations it's sounding doubtful.
Last fiddled with by science_man_88 on 2015-11-26 at 02:46 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stockfish game: "Move 9 poll", not "move 2^74,207,281-1 discussion" | MooMoo2 | Other Chess Games | 1 | 2016-10-25 18:03 |
| Stockfish game: "Move 8 poll", not "move 3.14159 discussion" | MooMoo2 | Other Chess Games | 5 | 2016-10-22 01:55 |
| Scottish game: "Move 6 poll", not "move -1 discussion" | MooMoo2 | Other Chess Games | 0 | 2016-10-11 16:30 |
| Stockfish game: "Move 5 poll", not "move 0 discussion" | MooMoo2 | Other Chess Games | 0 | 2016-10-05 15:50 |
| Problem E7 of Richard Guy's "Unsolved problems in number theory" | Batalov | Computer Science & Computational Number Theory | 40 | 2013-03-16 09:19 |