triangsum
Triangsum is a mathematical concept that refers to the sum of consecutive integers starting from 1 up to a given positive integer, n. This sum can be represented by the formula: 1 + 2 + 3 + ... + n. The value of this sum has a well-known closed-form expression, which is n(n+1)/2. This formula allows for the efficient calculation of the triangsum without needing to add each individual number.
The name "triangsum" is derived from the fact that these sums correspond to the number of dots
Triangsums appear in various mathematical contexts, including number theory and combinatorics. They are related to the