The Student Room Group

Primes

Consider a set of kk primes where each successive prime is dd more than the previous prime

This set can be denoted {p,p+d,p+2d,...,p+(k1)d}\{ p, p+d,p+2d, ..., p+(k-1)d \}

How can I begin to show that there exist no other sets with d=2,k>2d=2, k>2 apart from {3,5,7}\{ 3,5,7 \} ??

Scroll to see replies

This isn't a rigorous mathematical proof, but more a logical narrowing-down. All primes are odd except for 2. No primes end in the number 5, except for 5, because anything else that ends in 5 is divisible by 5 and hence not prime. Any set of primes where each successive prime was 2 more than the last one would have to have last digits from among these, in order: 1, 3, 5, 7, 9. There is no way of doing that without including 5 as a last digit. Hence the only way to do it is {3, 5, 7}.


Nevermind, that doesn't work. You could still have a run of primes where the last digits went 7, 9, 1 or 9, 1, 3. I may still have generally been on the right track, though; perhaps there is some way of showing that if the last digits went 7, 9, 1 or 9, 1, 3 that one of those would have to be divisible by something?

Actually I think I have just worked it out. If you take any number, it is either a multiple of 3 or you can add either 2 or 4 to make it a multiple of 3. So it's impossible to have three numbers generated by adding 2 and 4 to a given number and not have at least one of them be divisible by 3. Again, I don't know how to write that up as a proper proof.

Why the heck am I studying biochemistry and not maths again? This stuff is so much fun!
(edited 7 years ago)
Reply 2
You need three consecutive odd numbers, all of which are prime.

As the first one is prime, it is not a multiple of 3. What are the implications of this for the other "primes" in your list? Think about the numbers before and after the first one in your list.
(edited 7 years ago)
Original post by Pangol
~
Bit of a full solution - want to edit it down to a hint?
Reply 4
Original post by DFranklin
Bit of a full solution - want to edit it down to a hint?


Fair enough - significantly trimmed!
Original post by anosmianAcrimony
This isn't a rigorous mathematical proof, but more a logical narrowing-down. All primes are odd except for 2. No primes end in the number 5, except for 5, because anything else that ends in 5 is divisible by 5 and hence not prime. Any set of primes where each successive prime was 2 more than the last one would have to have last digits from among these, in order: 1, 3, 5, 7, 9. There is no way of doing that without including 5 as a last digit. Hence the only way to do it is {3, 5, 7}.


Nevermind, that doesn't work. You could still have a run of primes where the last digits went 7, 9, 1 or 9, 1, 3. I may still have generally been on the right track, though; perhaps there is some way of showing that if the last digits went 7, 9, 1 or 9, 1, 3 that one of those would have to be divisible by something?

Actually I think I have just worked it out. If you take any number, it is either a multiple of 3 or you can add either 2 or 4 to make it a multiple of 3. So it's impossible to have three numbers generated by adding 2 and 4 to a given number and not have at least one of them be divisible by 3. Again, I don't know how to write that up as a proper proof.

Why the heck am I studying biochemistry and not maths again? This stuff is so much fun!


Original post by Pangol
You need three consecutive odd numbers, all of which are prime.

As the first one is prime, it is not a multiple of 3. What are the implications of this for the other "primes" in your list? Think about the numbers before and after the first one in your list.


Ah thank you, it's much more straightforward than I thought at first.

Is there a concrete way to show that if a prime ends in a 7 or a 9, then either p+2p+2 or p+4p+4 will not be prime?? I can't seem to show this
Reply 6
Original post by RDKGames
Is there a concrete way to show that if a prime ends in a 7 or a 9, then either p+2p+2 or p+4p+4 will not be prime?? I can't seem to show this


Doesn't the result we've been talking about tell you that if p is a prime then either p+2 or p+4 will not be prime, regarless of the last digit of p? Have I misunderstood you, or are you interested in a different kind of proof?
Original post by Pangol
Doesn't the result we've been talking about tell you that if p is a prime then either p+2 or p+4 will not be prime, regarless of the last digit of p? Have I misunderstood you, or are you interested in a different kind of proof?


It's okay I figured it out, ignore that part :smile:
Reply 8
Original post by anosmianAcrimony
Actually I think I have just worked it out. If you take any number, it is either a multiple of 3 or you can add either 2 or 4 to make it a multiple of 3. So it's impossible to have three numbers generated by adding 2 and 4 to a given number and not have at least one of them be divisible by 3. Again, I don't know how to write that up as a proper proof.


Now that the OP has his answer, your idea is correct. Formally, since p is prime and >3 then p = 1 mod 3 or p = 2 mod 3. So either p+2 = 0 mod 3 or p+4 = 0 mod 3.
I find myself coming back to this but with a different question.

I need to formulate and explain the necessary conditions on dd for the existence of such sets of kk primes, for general k>5k>5. I should give conditions on dd that allow the existence of (a) one such set, and (b) more than one such set, for any given kk. These conditions must be necessary but may not be sufficient.

Not quite sure where to start with this one.
Reply 10
Original post by RDKGames
I find myself coming back to this but with a different question.

I need to formulate and explain the necessary conditions on dd for the existence of such sets of kk primes, for general k>5k>5. I should give conditions on dd that allow the existence of (a) one such set, and (b) more than one such set, for any given kk. These conditions must be necessary but may not be sufficient.

Not quite sure where to start with this one.


Thinking out loud a little - haven't solved the problem - but consider the case when k = 6 so that we have the numbers

p, p+d, p+2d, p+3d, p+4d, p+5d.

For many numbers - such as d = 23 - at least one of the above numbers will be a multiple of 5 and so not prime (unless it's 5 itself).

So firstly why is this the case? Secondly what (if anything) was special about 23? Then how can you generalize this?
Original post by RichE
Thinking out loud a little - haven't solved the problem - but consider the case when k = 6 so that we have the numbers

p, p+d, p+2d, p+3d, p+4d, p+5d.

For many numbers - such as d = 23 - at least one of the above numbers will be a multiple of 5 and so not prime (unless it's 5 itself).

So firstly why is this the case? Secondly what (if anything) was special about 23? Then how can you generalize this?


The reason for the case that one of the number is a mult of 5 is due to the fact that if p5p\neq 5 then p≢0mod5p \not\equiv 0 \mod 5

So pp can be expressed prmod5p \equiv r \mod 5 where rr is an integer between 1 and 4

Now for your case of d=23d=23 (which is also a prime itself, but I'm not sure how this fact helps, if at all)
prmod5p \equiv r \mod 5
p+d(r+3)mod5p+d \equiv (r+3) \mod 5
p+2d(r+1)mod5p+2d \equiv (r+1) \mod 5
p+3d(r+4)mod5p+3d \equiv (r+4) \mod 5
p+4d(r+2)mod5p+4d \equiv (r+2) \mod 5
p+5drmod5p+5d \equiv r \mod 5

Now obviously one of r+1,r+2,r+3,r+4r+1,r+2,r+3,r+4 must be equal to 0 thus a member is a mult of 5.

I'm having trouble with the actual generalisation of this but I do understand it :smile:
Reply 12
Original post by RDKGames

I'm having trouble with the actual generalisation of this but I do understand it :smile:

I suppose one way to start would be to try to discount what d won't work for k=6 (or maybe a specific larger k). Note I didn't have to focus on mod 5, it just served my purposes.

PS note your argument above works as well for d=28 and d=33 as for d=23. And the argument wouldn't have been much different for d=22.
(edited 6 years ago)
Original post by RichE
I suppose one way to start would be to try to discount what d won't work for k=6 (or maybe a specific larger k). Note I didn't have to focus on mod 5, it just served my purposes.

PS note your argument above works as well for d=28 and d=33 as for d=23. And the argument wouldn't have been much different for d=22.


It doesn't work if d=5d=5?? Or even if dd is a mult. of 5?
Reply 14
Original post by RDKGames
It doesn't work if d=5d=5?? Or even if dd is a mult. of 5?


Exactly. But remember I might have chosen to look at things mod 3 to address d=5.
Original post by RichE
Exactly. But remember I might have chosen to look at things mod 3 to address d=5.


So then dd couldn't be a multiple of 3.

And in general, for there to exist one such set for any given k>5k>5, d≢0mod(k1)d \not\equiv 0 \mod (k-1) is a necessary condition??
Reply 16
Original post by RDKGames
So then dd couldn't be a multiple of 3.

And in general, for there to exist one such set for any given k>5k>5, d≢0mod(k1)d \not\equiv 0 \mod (k-1) is a necessary condition??


Can't we do better than that? Going back to the previous k=6 example can't we exclude d being coprime with 6,5,4,3,2? (At least for there being more than one such set.) This then is equivalent to not having 2 or 3 or 5 as a factor.
(edited 6 years ago)
Original post by RichE
Can't we do better than that? Going back to the previous k=6 example can't we exclude d being coprime with 6,5,4,3,2? (At least for there being more than one such set.) This then is equivalent to not having 2 or 3 or 5 as a factor.


I don't quite understand this. So dd cannot have primes up to kk as factors in order for there to exist more than one such set? Why?
Reply 18
Original post by RDKGames
I don't quite understand this. So dd cannot have primes up to kk as factors in order for there to exist more than one such set? Why?


Go back to the k=6 case. If you consider each of p, p+d,...,p+5d mod 5 then you get a full set of residues mod 5 when d is not a multiple of 5. So the list can all be primes only by p being 5 - certainly you can't then have two such lists.
Original post by RichE
Go back to the k=6 case. If you consider each of p, p+d,...,p+5d mod 5 then you get a full set of residues mod 5 when d is not a multiple of 5. So the list can all be primes only by p being 5 - certainly you can't then have two such lists.


I understand that, so generally for more than one such set we have the condition on d such that d≢0modn,n{2,3,5,...,k}d \not\equiv 0 \mod n, \forall n\in \{2,3,5,...,k \} for k>5k>5 (ie. n is a prime up to k)?

Quick Reply

Latest