1 + 2 + 3 + 4 + 5 + 6 + ... + 99
= (1 + 99) + (2 + 98) + ... + (49 + 51) + 50
= 100 × 49 + 50
= 4900 + 50
= 4950
一般采用的方法是首尾相加
1 + 2 + 3 + 4 + 5 + 6 + ... + 99
= (1 + 99) + (2 + 98) + ... + (49 + 51) + 50
= 100 × 49 + 50
= 4900 + 50
= 4950
一般采用的方法是首尾相加