Problem:
Let be a set of distinct positive integers, such that the sum of any 3 of them is a prime number. What is the maximum value of ?
Solution
Solution:
First we show that is possible with an example. The example satisfies the problem because:
is prime,
is prime,
is prime, and
is prime.
We still have to prove that is impossible.
Consider any set such that the sum of any 3 of them is a prime number. Also consider the three "pigeonholes" modulo 3; the residue classes 0, 1 and 2. If all three pigeonholes were non-empty, then it would be possible to choose three numbers – one from each pigeonhole. This would result in a sum which is (mod 3), and since the numbers are distinct positive integers, this sum would be . Thus the sum would not be prime which is a contradiction. Hence at least one of the pigeonholes must be empty. i.e.
The numbers are distributed amongst (at most) two different residue classes modulo 3.
Now assume for the sake of contradiction that . By the pigeonhole principle at least one residue class contains at least 3 of the numbers. The sum of any three numbers from the same residue class is always a multiple of 3 and so this is a contradiction.
Therefore as required.