MathLabs

Problem 1

Given any set A={a1,a2,a3,a4}A=\{a_1,a_2,a_3,a_4\} of four distinct positive integers, we denote the sum a1+a2+a3+a4a_1+a_2+a_3+a_4 by sAs_A. Let nAn_A denote the number of pairs (i,j)(i,j) with 1≤i<j≤41\le i<j\le4 for which ai+aja_i+a_j divides sAs_A. Find all sets AA of four distinct positive integers which achieve the largest possible value of nAn_A.
Step 1 of 5: Bound the two largest pair-sums
In plain words

The two sums built with the largest element are squeezed strictly between half of sA and sA, so neither can divide it.

sA2<a2+a4, a3+a4<sA\dfrac{s_A}{2} < a_2+a_4,\ a_3+a_4 < s_A
Detailed analysis

Order the entries so that a1<a2<a3<a4a_1<a_2<a_3<a_4. From a2>a1a_2>a_1 and a4>a3a_4>a_3 we get 2(a2+a4)>sA2(a_2+a_4)>s_A, and from a3>a1a_3>a_1 and a4>a2a_4>a_2 we get 2(a3+a4)>sA2(a_3+a_4)>s_A; both a2+a4a_2+a_4 and a3+a4a_3+a_4 are also clearly less than sAs_A. A number strictly between sA/2s_A/2 and sAs_A can never divide sAs_A, so neither of these two sums divides sAs_A, leaving only the four sums a1+a2, a1+a3, a1+a4, a2+a3a_1+a_2,\ a_1+a_3,\ a_1+a_4,\ a_2+a_3 as possible divisors of sAs_A; hence nA≤4n_A\le4.