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 3 of 5: Parametrize the remaining two sums
In plain words

The two smaller divisors of sA must be strictly smaller than sA/2, and they are ordered the same way as the numbers they come from.

a1+a3=sAn,a1+a2=sAma_1+a_3=\dfrac{s_A}{n},\quad a_1+a_2=\dfrac{s_A}{m}
Detailed analysis

Since a3<a4a_3<a_4, a1+a3<a1+a4=sA/2a_1+a_3 < a_1+a_4 = s_A/2; writing a1+a3=sAna_1+a_3=\dfrac{s_A}{n} therefore forces n>2n>2, i.e. n≥3n\ge3. Likewise a2<a3a_2<a_3 gives a1+a2<a1+a3a_1+a_2<a_1+a_3, so writing a1+a2=sAma_1+a_2=\dfrac{s_A}{m} forces m>nm>n.