1

如何计算这个系列Sn=1*1+2*2+3*3+...+n*n where (n>1)
请给我提示

4

2 回答 2

6

According to Wikipedia

S = n * (n + 1) * (2*n + 1) / 6

It is easy to prove this using induction.

于 2012-08-01T10:33:49.767 回答
6

From this page, the following formula can be used

Formula

Please post math questions on http://math.stackexchange.com. SO is for programming-related questions.

于 2012-08-01T10:35:26.107 回答