Arithmetic & Number Theory
Factorial
Product of all positive integers up to n.
Formula
Formula
n! = 1 · 2 · 3 ⋯ n
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| n | non-negative integer | integer (ℤ) | — | input |
| n! | factorial | integer (ℤ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenn = 6
Result720
Example 2
Givenn = 10
Result3628800