Suppose we have a set $S$ of $N$ real numbers. Show that $$\sum_{s_i\in S}|s_i-x|^0 $$ is minimal if $x$ is equal to the mode of S.
I'm a bit confused about that, because assuming $0^0 = 1$ the whole sum should always be equal to $N$. So it looks like this sum cannot be minimised in any way.
UPDATE: So it turns out the statement of the question as written above was not correct. It was taken from a book, but in the book the statement was slightly different. It asked
Show that for $$\lim_{q->0} \sum_{s_i\in S}|s_i-x|^q $$ is minimal if $x$ is equal to the mode of S.
I believe taking the limit $q \rightarrow 0$ instead of setting $q=0$ is what makes the difference.