Problem

Source: 2015 Korean Mathematical Olympiad P8

Tags: inequalities, number theory, relatively prime, prime numbers, Coprime integers



For a positive integer $n$, $a_1, a_2, \cdots a_k$ are all positive integers without repetition that are not greater than $n$ and relatively prime to $n$. If $k>8$, prove the following. $$\sum_{i=1}^k |a_i-\frac{n}{2}|<\frac{n(k-4)}{2}$$