Skip to main content
OlympiadHQ

Browse · MathNet

Print

National Olympiad of Argentina

Argentina number theory

Problem

a) Several distinct positive integers have the property that the sum of every three of them is a prime number. At most how many of them are there?

b) Several distinct integers (not necessarily positive) have the property that the sum of every three of them is positive and also a prime number. At most how many of them are there?
Solution
Among 5 arbitrary integers either there are three with the same remainder modulo 3 or three with different remainders modulo 3. In both cases the sum of these three is divisible by 3.

If in addition the integers are positive and distinct like in a) then the sum in question is at least , hence it is not a prime. So there can be at most 4 numbers that satisfy condition a), and 4 such numbers exist. There are many examples: ; ; ; etc.

Now let be 6 integers satisfying b). Among their sums by triples consider , and the sum of an arbitrary triple that does not contain . Note that . Since and are (positive) prime numbers, they are at least 2 and 3 respectively; hence . However by the introductory remark there are three among the 5 numbers with sum divisible by 3. Combined with this yields a contradiction with being a prime. It remains to show that there exist 5 numbers satisfying b). There is a variety of examples here too, with one or two negative numbers: ; ; ; etc.
Final answer
a) 4; b) 5

Techniques

Modular ArithmeticDivisibility / FactorizationPigeonhole principle