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 5 of 5: Solve both cases and verify
In plain words

Each admissible (n,m) pins down all four numbers as fixed fractions of sA, and both resulting patterns really do achieve nA=4.

A={k,5k,7k,11k} or A={k,11k,19k,29k}A=\{k,5k,7k,11k\}\ \text{or}\ A=\{k,11k,19k,29k\}
Detailed analysis

For (n,m)=(3,4)(n,m)=(3,4), solving the linear system gives a1=sA24, a2=5sA24, a3=7sA24, a4=11sA24a_1=\dfrac{s_A}{24},\ a_2=\dfrac{5s_A}{24},\ a_3=\dfrac{7s_A}{24},\ a_4=\dfrac{11s_A}{24}, i.e. A={k,5k,7k,11k}A=\{k,5k,7k,11k\} for a positive integer kk (with sA=24ks_A=24k). For (n,m)=(3,5)(n,m)=(3,5) it gives a1=sA60, a2=11sA60, a3=19sA60, a4=29sA60a_1=\dfrac{s_A}{60},\ a_2=\dfrac{11s_A}{60},\ a_3=\dfrac{19s_A}{60},\ a_4=\dfrac{29s_A}{60}, i.e. A={k,11k,19k,29k}A=\{k,11k,19k,29k\} (with sA=60ks_A=60k). In both families one checks directly that a1+a4=a2+a3=sA/2a_1+a_4=a_2+a_3=s_A/2 and a1+a3,a1+a2a_1+a_3,a_1+a_2 divide sAs_A while a2+a4,a3+a4a_2+a_4,a_3+a_4 lie strictly between sA/2s_A/2 and sAs_A, so nA=4n_A=4; these are exactly the maximizing sets.