Problem

Source: 21-st Iberoamerican Mathematical Olympiad

Tags: inequalities, inequalities unsolved



For n real numbers $a_{1},\, a_{2},\, \ldots\, , a_{n},$ let $d$ denote the difference between the greatest and smallest of them and $S = \sum_{i<j}\left |a_i-a_j \right|.$ Prove that \[(n-1)d\le S\le\frac{n^{2}}{4}d\] and find when each equality holds.