1+2+3+4+5.+999999
=(1+999999)+(2+999998)+(3+999997)+……+(499999+500001)+500000
=1000000+1000000+1000000+……+1000000+500000 【共有499999个1000000相加】
=499999000000+500000
=499999500000
1+2+3+4+5.+999999
=(1+999999)+(2+999998)+(3+999997)+……+(499999+500001)+500000
=1000000+1000000+1000000+……+1000000+500000 【共有499999个1000000相加】
=499999000000+500000
=499999500000