A factorial is a mathematical function that multiplies a given number by every single number below it. It is often utilized to calculate the number of ways variable "n" can be arranged.
Example 5! = 5 * 4 * 3 * 2 * 1 5! = 120 |
The factorial n! showcases the number of permutations for an object. For example:
2 factorial is 2! = 2 x 1 = 2
3 factorial is 3! = 3 x 2 x 1 = 6