1

Let ${x_1, x_2, x_3, . . . , x_n}$ be a set of $n$ distinct positive integers, such that the sum of any $3$ of them is a prime number. What is the maximum value of $n$?

This question is from the NZMO for year $2021$.

I began this problem by knowing that obviously $n=3$ is possible.

Then we show that $n = 4$ is possible with an example. The example ${x_1, x_2, x_3, x_4} = {1, 3, 7, 9}$ satisfies the problem because:

$1 + 3 + 7 = 11$ is prime,

$1 + 3 + 9 = 13$ is prime,

$1 + 7 + 9 = 17$ is prime, and

$3 + 7 + 9 = 19$ is prime.

We now have to prove that $n ≥ 5$ is impossible. I am stuck here and I do not know how to continue calculating the question to get an answer.

However, I am thinking that any set ${x_1, x_2, x_3, . . . , x_n}$ such that the sum of any $3$ of them is a prime number to consider the three “pigeonholes” modulo $3$; the residue $0, 1$ and $2$.

If anyone can help solve this problem and explain it to me, I would appreciate it a lot. Thank you very much.

Tnol
  • 825

1 Answers1

4

You're very much on the right track with the modulo 3 pigeon holes.

If there are numbers in each hole, then one number from each hole will sum to be divisible by 3 (and strictly larger than 3).

If there are three numbers in any hole, the sum of three of them will likewise be divisible by 3.

So we can use at most 2 of the holes, and the holes can have at most 2 numbers each. That gives us a maximum of 4.

Arthur
  • 204,511