In this video it is said that $nM$ for a given magic square is equal to $\sum_{i=1}^{n^2}i$, and then the result is also used for magic hexagons.
Why does this have to be the case, both for squares and hexagons? I haven't found any answers or clues on the Internet.