The real question is, what's a simple formula for getting a sum of consecutive integers, starting at whole number 1, without having to actually count it all out
While others have answered the question, I could not resist to reflect some history associated with the question.
The question you asked relates back to a famous mathematician Gauss the story sometimes referred to as "Gauss Punishment", goes like:
In elementary school in the late 1700’s, Gauss was asked to find the
sum of the numbers from 1 to 100. The question was assigned as “busy
work” by the teacher, but Gauss found the answer rather quickly by
discovering a pattern. His observation was as follows:
1 + 2 + 3 + 4 + … + 98 + 99 + 100
Gauss noticed that if he was to split the numbers into two groups (1
to 50 and 51 to 100), he could add them together vertically to get a
sum of 101.
1 + 2 + 3 + 4 + 5 + … + 48 + 49 + 50
100 + 99 + 98 + 97 + 96 + … + 53 + 52 + 51
1 + 100 = 101 2 + 99 = 101 3 + 98 = 101 . . . 48 + 53 = 101 49 + 52 =
101 50 + 51 = 101
Gauss realized then that his final total would be 50(101) = 5050.
The source of the above is mostly from The sum of the first 100 whole numbers
Another version goes like, he wrote the numbers as follows:
001 + 002 + 003 +...+ 098 + 099 + 100 = S
100 + 099 + 098 +...+ 003 + 002 + 001 = S
(100+1)+(100+1)+(100+1)+...+ (100+1)+(100+1)+(100+1)= 2S
The value $(100+1)$ is repeated $100$ times.
so we get:
$$100 * (100+1) = 2S$$
but we only want the value of $S$
$$s=\frac{100*(100+1)}{2}$$
Needless to say, the number 100 can be any positive integer and the method would work the same. It is amazing what goes in the mind of a kid who is very young!