This is LaTeX code:
[latex]
m := 1^2+2^2+\dots+n^2 = \frac{n(n + 1)(2n + 1)}6 = \frac{2n^3+3n^2+n}6
[/latex]