In my homework assignment, there's a task:
- Find set of all numbers which can divide 24.
Translation mine, I hope it's correct.
Through integer factorization I know that 24 is 2*2*2*3. Now I could just manually do all combinations of these four numbers and write them in a set:
$$\{2, 2*2, 2*2*2, 2*3, 2*3*2, \dots\}$$
That's a lot of work (or would be for bigger numbers), but maybe not the kind of work the homework expects me to do. Is there a way to denote a set of combinations of numbers? Basically:
Let A be a set of numbers such that it contains all combinations of 2, 2, 2 and 3 without repetition.
How to write that as math?
If you mean without repetition, you would just say all subsets of $\{2,3\}$. Maybe you want to exclude the empty set. That will not get you the list you are showing, because you show many cases with more than one $2$. You could note that the factors of $24$ have zero to three factors of $2$ and zero or one factor of $3$. Do you include $1$, which has no factors of either, and $24$, which is not a proper factor? If so, you set can be written as $$\{2^a3^b\mid 0 \le a \le 3, 0 \le b \le 1\}$$