Let $A$ and $B$ two sets with $|A|=n$ and $|B|=m$. Then
- find total number of injective mappings from $A$ to $B$ if $n\leq m$.
- find total number of surjective mappings from $A$ to $B$ if $n\geq m$.
In the first case the total number of injective mappings is $^mP_n.$
Because among the $n$ elements of $A$, the first element can goes to any one among the $m$ elements of $B$. The second element can goes to any one among the $m-1$ elements of $B$. Proceeding in this way the $n$th element can goes to any one among the $m-n+1$ elements of $B$. The total number of possible mappings(since $f$ is injective) is $m(m-1)\cdots(m-n+1)= ^mP_n$.
How can I find the total number of surjective mappings. Thank you.