Given the value of n. Compute the following sum: 12+22+32+...+n2.
One positive integer n (1≤n≤106).
Print the value of the specified sum.