解:借助平方差公式,得:
原式
=1²-2²+3²-4²+5²-6²......2003²-2004²+2005²
=2005²-2004²+2003²-2002²+...+5²-4²+3²-2²+1²
=(2005+2004)(2005-2004)+(2003+2002)(2003-2002)+...(5+4)(5-4)+(3+2)(3-2)+1
=2005+2004+2003+2002+...+5+4+3+2+1
=2005×(2005+1)/2
=2005×1003
=2011015
n(n+1)(2n+1)/6
n为2005