Factorial
The factorial of a non-negative integer is the product of all positive integers up to it. It counts the number of ways to arrange distinct objects in a row.
LaTeX
n!=n\cdot(n-1)\cdots2\cdot1,\qquad 0!=1Variables
- non-negative integer
Example
Compute .
- .
Answer: .