Restricted Permutations Enumerated by Inversions | Synapse