1^2-2^2=(1-2)(1+2)=-(1+2)3^2-4^2=(3-4)(3+4)=-(3+4)......997^2-998^2=(997-998)(997+998)=-(997+998)999^2=999^2所以=-(1+2+3+4+....+998)+999^2=-(998+1)*998/2 + 999^2=-999*499 +999^2=999(999-499)=999*500=499500