The answer is: 31975 But how do I get the answer with a method?
1 Answer
$\begingroup$
$\endgroup$
The answer depends on the enumeration of the permutations; the most common being
- lexicographic order, whence the factorial number system allows one to efficiently calculate permutations from their position in the enumeration or the
- induced by the Steinhaus-Johnson-Trotter permutation enumeration whose algorithmic inversion can be found here: https://mathoverflow.net/a/223656/31310