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 2 of 5: Force the two middle sums to split sA evenly
In plain words

If a1+a4 divides sA at all, the only way the complementary sum a2+a3 can also divide sA is if the two split sA exactly in half.

a1+a4=a2+a3=sA2a_1+a_4=a_2+a_3=\dfrac{s_A}{2}
Detailed analysis

Achieving nA=4n_A=4 requires a1+a2,a1+a3,a1+a4,a2+a3a_1+a_2,a_1+a_3,a_1+a_4,a_2+a_3 to all divide sAs_A. Put d=a1+a4d=a_1+a_4; since d∣sAd\mid s_A, write sA=dts_A=dt with t≥2t\ge2. Then a2+a3=sA−d=d(t−1)a_2+a_3=s_A-d=d(t-1), and for this to also divide sAs_A we need d(t−1)∣dtd(t-1)\mid dt, i.e. (t−1)∣t(t-1)\mid t, i.e. (t−1)∣1(t-1)\mid1, which forces t=2t=2. Hence a1+a4=a2+a3=sA2a_1+a_4=a_2+a_3=\dfrac{s_A}{2}.