Serious math: find a formula for the number of surjective function from a set with n elemente to a set with m?

Update: To the first answerer:
you cannot assign one element of the domain to two different elements of the codomain,
therefore your choises are not always n.
Update 2: The second choice depends on the first one.
Update 3: The solution is quite difficult.
3 answers 3