Finds a specified lexographic permutation of a specified set of numbers.