The answer as formulated by Srikant Vadali is developed elegantly in the first link, but recapping with respect to the math, the answer is pretty easy when you know how ;-)
If X is an array of numbers and
written another way:
then expanding the original form of the sum of squares:
But m is a constant so it can move in front of the summation. The second term is then
And the third term is
They add to give
but now we can go back to
sum(X)
:and the whole thing is
which was "precisely what was required to be proved." (here)
I think the existence of the family of sites including Stack Exchange and Stack Overflow is just fantastic.
More interesting than my transcription of Srikant's derivation is that his markup looks so much prettier. The source for the first line is
$\sum_i(X_i-m)^2 = \sum_i(X_i^2 + m^2 - 2 X_i m)$
which is obviously not rendering correctly on this page but looks a bit like LaTeX. Anybody know how this is done or how one could do it in Blogger? Time for another question, I guess.