In mathematics, a permutation is an arrangement of elements of a set, in which the order of the elements matters. For example, there are 6 permutations of the set {1, 2, 3}:
- 123
- 132
- 213
- 231
- 312
- 321
The number of permutations of a set with n elements is n!. So, the number of permutations of a set with 8 elements is 8! = 8 7 6 5 4 3 2 * 1 = 40,320.