Factorial, but with Addition
At a glance
- 1. List the terms
Replace the product 1 × 2 × … × n with the sum 1 + 2 + … + n.
- 2. Use the formula
For a positive integer n, the sum is n(n + 1)/2, called the nth triangular number.
- 3. Check the result
For example, adding 1 through 8 gives 8 × 9 / 2 = 36.
A factorial multiplies consecutive positive integers: for a positive integer , . If you replace multiplication with addition, the usual interpretation is to add those same integers instead:
That sum is the nth triangular number, with formula . There is no universally standard notation called “addition factorial,” so it helps to write out the terms you mean. The formula below applies when the terms are the integers from 1 through a positive integer .
Why the sum is
Let
Write the same sum in reverse order and add the two lines term by term:
Each pair of terms in a column adds to , and there are columns. So , which gives
The result is always an integer: one of two consecutive integers, or , must be even.
Worked example: adding from 1 to 8
The sum is
Using the formula with gives
You can check by pairing the ends: , , , and . There are four pairs, each totaling 9, so the sum is .
For comparison, is a product, not this sum:
If you meant a different sum
Two expressions that sound similar are often confused:
- Adding the integers through : .
- Adding the factorials through : .
The second expression is a sum of factorial values, not a factorial with addition replacing multiplication. For example, when , it is . The triangular-number formula does not apply to that sum.
You might also want to start at a number other than 1. For integers and with , the consecutive integers from through , inclusive, number . Their sum is
For instance, has five terms, so its sum is .
Common mistakes
- Using the factorial symbol for the sum: By convention, means multiplication. Write the additions explicitly or call the result a triangular number.
- Leaving out an endpoint: The formula includes both 1 and . If the sum starts at 0, that extra term is zero, so the value is unchanged; if it starts at 2, subtract 1 from the formula.
- Using the wrong consecutive-integer formula: The sum from 1 to is , not . The latter is the sum from 1 to .
- Applying it to factorial values: adds products, so it is a different calculation.
If your intended expression is “ plus every integer below it down to 1,” the triangular-number formula gives the answer directly.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.