首页 > 留学知识库

问题: 求和问题

(1^2-2*1) + (2^2-2*2) + (3^2-2*3) + (4^2-2*4) + ... + (N^2-2*N) = ?

谢谢!

解答:

原式=(1^2+2^2+3^2+4^2+……+n^2)-(2*1+2*2+2*3+2*4+……+2n)
=n(n+1)(2n+1)/6-2n(n+1)/2
=n(n+1)(2n-5)/6