I have a list of numbers, and I want to return a 2D list, preferably ordered from the largest to the smallest (although I can do this later) of all possible combinations of multiplication (to get the product of the original list) using all the elements of the list without duplicates. That is, if I have a list [1, 2, 3], I want it to return
[[3, 2, 1], [3, 2], [6, 1], [6]]
without duplicates or equivalent lists as shown above ([2,3] not displayed).
The reason for this is to find all the ways to multiply the total factorization of a number. That is, from the main coefficients 24 (2, 2, 2, 3) I want it to return
[[3, 2, 2, 2], [4, 3, 2], [6, 4], [6, 2, 2], [8, 3], [12, 2], [24]]
I hope I was convinced, I was not sure how to correctly formulate this question.