Given all permutations of a set with n elements and the mth permutation, find m

16 Views Asked by At

For example, if I have a set of all permutations of the set {1, 2, 3, 4} and the permutation 1, 4, 3, 2 how do i calculate which element of the set it is without calculating all the permutations?