Given six distinct positive integers a , b , c , d , e , and f , what is the maximum number of distinct primes that can be formed from the pairwise sums?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I solved it with the same reasoning as you did, except that I didn't find an example set. How could you find it?
Log in to reply
I did a little guess and check on that one. I used 2 and 4 then looked for 3 odd numbers that when I add it to them, it will form prime numbers. Then, for the third even number, the conjecture I got was that it must be congruent to 2 mod 1 0 or 4 mod 1 0
Lakas ni Ralph
Log in to reply
Hindi pooo...
I do not understand this even a little bit
Log in to reply
Which part do you not understand? Do you understand the first line? What about the second line?
If you specify the part that you started getting lost, and what was confusing about that, then someone could help guide you.
Log in to reply
Is there a proof that says "x number of odd numbers provides y number of distinct primes when added"?
Log in to reply
@Todd Dean – Hm, not that I'm aware of. Extending this argument, an upper bound on y would be ⌊ 2 x ⌋ × ⌈ 2 x ⌉ . However, it's not immediately obvious to me that this can necessarily be achieved.
If the answer is yes, then I suspect that there is some deeper Number Theory fact that is happening.
A sequence of six distinct integers would not necessarily contain ANY even numbers.
Did you mean a contiguous range of integers?
Log in to reply
You are right to say that "A sequence of six distinct integers would not necessarily contain ANY even numbers.". If so, this is covered under the case of "If there is 0 or 6 odd numbers in S, then the sum is an even integer greater than 2 hence not prime".
Log in to reply
Has the wording of the question or any of the answers changed since bob's remark? I can't see any references to sequences.
Log in to reply
@Katherine Barker – No, nothing has changed.
I'm not too sure what he is referring to. I was trying to point out that the solution considered the cases of 0/1/2/3/4/5/6 odd numbers, and so includes the case that he mentioned.
I got there by somewhat less rigorous means than you have shown above - the only way a pair of integers can sum up to a prime is if one is even and the other odd. The maximum number of possible pairings is achieved by having three even and three odd integers - each even integer combining with each odd integer to form a prime, which gives us overall three sets of three primes, for a total of nine primes. I did not get as far as generating a set of numbers for which this actually works because I was confident that such a set would exist and I take short cuts whenever possible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
The solution set I found was {1, 2, 3, 10, 16, 21}, after I reached the same conclusion regarding the maximum number of odd pairs in the same way as you.
My thinking was as follows: I started with the smallest numbers I could (since primes tend to be spaced further apart the higher you get, making solutions harder to find, and it seemed more elegant to find a set of smallish numbers).
{1, 2, 3} worked fine. But then, if you add 4, you get 5 as a duplicated prime.
You could add 5 as the 4th member, but the resulting set of 3 prime you have {3, 5, 7} are consecutive odd numbers. That's a problem, because one of the set will always be a multiple of 3, and 2 is the only even number that doesn't yield a non-prime when added.
Choosing 6, 7 or 8 as the 4th member will result in a 9, which isn't prime.
Choosing 9 as the 4th member will work. The solution is {1, 2, 3, 9, 28, 58}. I found this by looking along the list of primes for further sets of 3 primes, {n, n+2, n+8}.
However I wondered if a solution with smaller numbers existed. Choosing 10 as the 4th member does the trick. Then if you work your way up through the possibilities for the 5th and 6th members, till you find values that work, you'll get the solution above.
I did the same way :) . And that verification set I got was 1 , 2 , 3 , 4 , 9 , 1 0 .
Log in to reply
I think you only got 6 primes which are 3 , 5 , 7 , 1 1 , 1 3 , 1 9 but it's nice if you got the correct answer lol
Log in to reply
Oh.. Yes :P I counted the repeated prime sums.
Log in to reply
@Manish Mayank – Thanks. I added in the condition that we want distinct primes :)
If we consider the set {1,2,3,4,5,6 } Then we are getting maximum 11 primes from pairwise sums
Log in to reply
Can you state what are the distinct primes ?
Note that you only have there are only 9 numbers from 3 = 1 + 2 to 1 1 = 6 + 5 inclusive.
Log in to reply
I can only make 3, 5, 7 and 11, which fits with calvin's comment
If the set contains 6 odd numbers or 6 even numbers there is no chance of getting a prime number by adding any two numbers from the set. Therefore set must contain both odd and even to get prime number (odd+odd results in even number which is not a prime similarly with even+even). If we want maximum distinct primes we should have 3 even,3 odd numbers then for every even number we can have 3 combinations(3 odd numbers) Therefore 3*3=9
You still need to show that there is at least one such a set. It's enough to give an example. Without that, you only proved that you can form maximum 9 odd numbers, not primes.
Starting with 2N integers, one can always get N^2 distinct odd numbers as pairwise sums. Are there always N^2 distinct prime numbers as well?
Log in to reply
Yes. From Green-Tao theorem, the are N^2 primes forming an arithmetic progression. From there it's easy to construct an example for this problem
Problem Loading...
Note Loading...
Set Loading...
Let S = { a , b , c , d , e , f } . Consider the number of odd numbers and the number of even numbers in S .
If there is 0 or there are 6 odd numbers in S , obviously, there is no way of forming a prime number from the pairwise sums as it will always lead to an even integer greater than 2 .
If there is 1 or there are 5 odd numbers in S , there exists an S such that the maximum number of primes that can be formed from the pairwise sums is 5 .
If there are 2 or there are 4 odd numbers in S , there exists an S such that the maximum number of primes that can be formed from the pairwise sums is 8 .
Finally, if there are 3 odd numbers in S , there exists an S such that the maximum number of primes that can be formed from the pairwise sums is 9 .
To show that such a set S exists, consider S = { 2 , 4 , 9 , 1 5 , 2 7 , 3 2 } .
2 + 9 = 1 1
2 + 1 5 = 1 7
2 + 2 7 = 2 9
4 + 9 = 1 3
4 + 1 5 = 1 9
4 + 2 7 = 3 1
3 2 + 9 = 4 1
3 2 + 1 5 = 4 7
3 2 + 2 7 = 5 9
So, there are 9 primes formed from the pairwise sums in the given S . I didn't include the other sums as it would only result to an even number. Hence, the maximum is 9 .