Choosing pairs of numbers with distinct bounded sum

110 Views Asked by At

Stumbled across this problem in the list of examples for high school math exam, paraphrasing a little:

What is the maximum number of pairs with integers from 1 to 22 you can choose,
with each pair having a distinct sum that would not exceed 27?

After playing with numbers for a bit, my intuition tells me that it's definitely not 11, but what is the correct answer (seems like 9, because I can't make 10), and more importantly, how to prove it, I have no idea. Does anyone have some idea of the approach to this problem?

1

There are 1 best solutions below

4
On BEST ANSWER

The 10 pairs: (17,10),(14,12),(21,4),(13,11),(20,3),(16,6),(19,2),(18,1),(9,8),(7,5) are disjoint and have distinct sums in the range 12-22.

If 11 pairs were possible, then their total sum would be 1+2+...+22=253. But the greatest possible sum for 11 pairs with distinct sums is 17+18+...+27=242. So 11 pairs are not possible.