in mathematics, a factorial of a number is and is defined for a positive integer as
for example,

the special case is defined as , consistent with the interpretation that there is a single permutation of zero elements, the empty set.

the triangular number can be regarded as the additive analog of the factorial

guide to factorials