Permutations
DEFINITION
A simple way to define permutations is the rearrangement of elements inside of a variable. For exemplo, if it’s necessary to do a permutation in this numbers “123” we would get this result:
123
132
213
231
312
321
6 possible permutations following the pattern of: number of elements factorial. In this case we have three elements “123” given us: 3! = 3 × 2 × 1 = 6!