We all know the definition of the factorial ! as but there are even more definitions of factorials that mathematicians have invented.

### Double Factorial

The double factorial looks like this . It can be used to easily denote the product of the odd or even numbers less than or equal to n

### Subfactorial

The subfactorial has a really intuitive practical application. Imagine you have n tokens in defined positions in an array. You take all the tokens out and want to place every token back into the array so that none of the tokens end up in the position they were just in. This is called derangement.

For instance, ,

You can arrange this set in the following ways: .

Only two of these sets satisfies the above criteria, and

Therefore we say

### Primorial

The Primorial is denoted and is the product of primes less than and equal to n.

Primorials are used in the search for large prime numbers. Each primorial has more distinct prime factors than any number smaller than it.

### Superfactorial (Sloane)

The more common definition of the Superfactorial. It is defined as such:

For example:

You can look at it another way by expanding the factorials:

And so:

### Superfactorial (Pickover)

Another definition of the Superfactorial uses tetration.

It grows insanely fast.

### Exponential Factorial

Annoyingly also denoted

the exponential factorial is like a normal factorial but exponentiated instead of multiplied:

### Hyperfactorial

Finally the hyperfactorial is defined like this:

Or:

And hence is very similar to the Sloane definition of the superfactorial: