I've this problem:
Given a a list of frequencies $f_1 \geq f_2 \geq ... \geq f_n $ of $ n $ elements, such that $ \sum_{i=1}^n f_i = m $ where $ m $ is a multiple of $ n $. Prove that $ \sum_{i=1}^n i f_i \leq \frac{m(n+1)}{2}$.
Now I've proved that if all frequencies are equal this is true, in fact, if $ f_1 = f_2 = ... = f_n $ implies that $ f_i = m/n $ and so $ \sum_{i=1}^n i f_i = \frac{m}{n} \sum_{i=1}^n i = \frac{m}{n} \frac{n(n+1)}{2} = \frac{m(n+1)}{2}$
How to prove it when the frequencies are not all equals?