Question 1142839
<br>
Pick a small number for an example that you can see easily:<br>
1+2+3+4+5+6+7+8+9+10 = ??<br>
Group the numbers in pairs, like this:<br>
(1+10)+(2+9)+(3+8)+(4+7)+(5+6)<br>
The sum is now the sum of 5 pairs, with the sum of each pair being 11.  So the sum of all the numbers is 5*11 = 55.<br>
It works when the last number is odd also.  For example,<br>
1+2+3+4+5+6+7 = (1+7)+(2+6)+(3+5)+4<br>
which gives you 3 1/2 pairs, each with a sum of 8; the sum is 8 times 3 1/2 = 4 times 7 = 28.<br>
In general, if the last number is n, the sum of the first and last numbers is 1+n, and the number of pairs is n/2.  That gives you the following general formula for the sum of the integers from 1 to n:<br>
{{{(n/2)(n+1)}}}<br>
So for your two particular ending numbers,<br>
1+2+3+...+200 = (200/2)(200+1) = 100*201 = 20100
1+2+3+...+300 = (300/2)(300+1) = 150*301 = 45150<br>
Or, for a random odd last number,<br>
1+2+3+...+79 = (79/2)(79+1) = (79/2)(80) = 79*40 = 3160