Let mm and nn be positive integers. Let a1,a2,,ama_1, a_2, \ldots, a_m be distinct elements of {1,2,,n}\{1, 2, \ldots, n\} such that whenever ai+ajna_i + a_j \leq n for some i,ji, j, 1ijm1 \leq i \leq j \leq m, there exists kk, 1km1 \leq k \leq m, with ai+aj=aka_i + a_j = a_k. Prove that

a1+a2++ammn+12.\frac{a_1 + a_2 + \cdots + a_m}{m} \geq \frac{n + 1}{2}.