How many surjective functions $f:\{0,1,2,3,4\} \rightarrow \{0,1,2,3\}$ are there?
So as I understand it I need to determine how many functions map from the set $\{0,\ldots,4\}$ to the set $\{0,\ldots,3\}$ such that for every element in $\{0,\ldots,3\}$ there is at least one element in $\{0,\ldots,4\}$.
My guess is that the total number of functions is $4^5$.