I am using the Permutations package to compute the inverse permutations of a long list of inputs. The following code yields almost what I want:
using