Sum of the First n Positive Integers
The sum equals the -th triangular number . It is used to count handshakes, pairs and steps in algorithms, and is a special case of the arithmetic series formula.
LaTeX
\sum_{k=1}^{n}k=\frac{n(n+1)}{2}Variables
- number of terms
Example
Sum the integers from 1 to 50.
- .
Answer: .