Prove that the sum of all positive integers between m and n inclusive (n>m) is 1/2(m+n)(n-m+1).
where and are the first and last terms, and is the number of terms.
Now we want the sum of all the integers between and inclusive. So that is
And this is an AP where and the number of terms is
So plug these values into the formula above, and the sum is