In an earlier post I mentioned coming across the reasoning followed by Gauss to prove that the sum of the first n numbers is equal to n(n+1)/2. I started wondering if there is no generalization available for this formula: what is the sum of the whole number m to n, m and n included. Following the same reasoning as Gauss you can show that in this case the sum turns out to be (n+m)(n-m+1)/2. If you plug in m-1 you get the same formula as before.
Leave a comment