(+1)+(-2)+(+3)+(+3)+(-4)+.+(+2003)+(-2004)

问题描述:

(+1)+(-2)+(+3)+(+3)+(-4)+.+(+2003)+(-2004)

当n为偶数时,S(n)=1²-2²+3²-4²+…+(-1)^(n-1)×n²=(1-2)(1+2)+(3-4)(3+4)+…+[(n-1)-n][(n-1)+n]=-[3+7+11+…+(2n-5)+(2n-1)](令n=2k)=-[3+7+11+…+(4k-5)+(4k-1)]=-(3+4k-1)k/2=-k(2k+1...