Factorials

1!=1

2!=1*2=2

3!=1*2*3=6

4!=1*2*3*4=24

We can use a factorial to calculate the number of permutations for a set with n unique elements.

Our example of permutations for {1,2,3} showed 6 permutations.

3! = 6