MathLabs

Problem 1

Let a1,…,ama_1,\ldots,a_m be distinct elements of {1,…,n}\{1,\ldots,n\} such that whenever ai+aj≤na_i+a_j\le n (with i≤ji\le j), the sum is also one of the aka_k. Prove a1+⋯+amm≥n+12\frac{a_1+\cdots+a_m}{m}\ge\frac{n+1}{2}.
Step 3 of 3: Sum the pairs
In plain words

Sum the pairs

2∑i=1mai≥m(n+1)2\sum_{i=1}^m a_i\ge m(n+1)
Detailed analysis

Sum ak+am−k+1≥n+1a_k+a_{m-k+1}\ge n+1 over k=1,…,⌊(m+1)/2⌋k=1,\ldots,\lfloor(m+1)/2\rfloor, counting the central inequality once when mm is odd. Equivalently, summing all paired inequalities gives 2∑i=1mai≥m(n+1)2\sum_{i=1}^m a_i\ge m(n+1). Divide by 2m2m to obtain a1+⋯+amm≥n+12\frac{a_1+\cdots+a_m}{m}\ge\frac{n+1}{2}.