If you have $n$ numbers and you multiply them in every combination
$$A\cdot A,\ A\cdot B,\ B\cdot A,\ B\cdot B$$
and so on, how many times do you get the same answer? Or, how many times do you get a unique answer? That is just for a product of two numbers, what if you did product of $3, 4,... n$ numbers. Is there a formula that could calculate this?
An example would be, let's say you have numbers $2,3,5,7$. You can do
$$2\cdot 2,\; 2\cdot 3,\; 3\cdot 2, \;3\cdot 3, \;2\cdot 5, \;5\cdot 2, \;3\cdot 5, \; 5\cdot 3,\; 5\cdot 5,\; 2\cdot 7,\; 7\cdot 2, \;3\cdot 7, \;7\cdot 3, \;5\cdot 7,\; 7\cdot 5, \;7\cdot 7$$
With that you get 16 combinations and only 10 unique answers.