So let's say that you have the number $n=12$. The factors of $12$ are $1$, $2$, $3$, $4$, $6$, and $12$. I'm wondering if there's some definition that when you plug in a natural number $n$, it will give you the set of all of it's factors. So, if I plugged in $12$ for $n$, I would get the set ${1,2,3,4,6,12}$, in no particular order of course. Is there such a thing? If so, what is it?
Edit: Since $1$ and $n$ are always factors of $n$, I can get as far as ${1,n} \subseteq F $ where $F$ is the set of factors of $n$.