I want to write a function to make a list of permutations based on my rule, each index can have a number as value, and the index in the outcome should not be duplicated, so