Let $A, G, H$ and $S$ respectively denote the arithmetic mean, geometric mean, harmonic mean and the sum of the numbers $a_1 , a_2 , a_3 ....., a_n$ . Then the value of at which the function $f(x) =\displaystyle \sum^n_{k =1} (x -a_k)^2$ has minimum is