I have a homework problem that asks me to find a function from the set $\{1, 2, \ldots, 30\}$ to $\{1, 2, \ldots, 10\}$ that is a $3$-to-$1$ correspondence, I am confused on how to even derive a function from the sets that also are $3$-to-$1$ correspondence. In class we have had $k$-to-$1$ rule examples but never done $3$-to-$1$ or any $x$-to-$1$ problems so I am confused on how to apply it to my homework.
I will rewrite the problem for context:
Find a function from the set $\{1, 2, \ldots, 30\}$ to $\{1, 2, \ldots, 10\}$ that is a $3$-to-$1$ correspondence. (You may find that the division, ceiling or floor operations are useful).