Consider an increasing sequence of real numbers a1<a2<…<a2023 such that all pairwise sums of the elements in the sequence are different. For such a sequence, denote by M the number of pairs (ai,aj) such that ai<aj and ai+aj<a2+a2022. Find the minimal and the maximal possible value of M. SequenceJBMOJBMO Shortlistcombinatorics