sum k=1 to n of k^2