How many functions are members of $F$?
I was asked a question like this. I've given the answer
$$\dfrac{m!}{(m - n)!}$$
But they said i was wrong and the answer is $mn$
Where am i wrong?
Please help. Thanks !
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityHow many functions are members of $F$?
I was asked a question like this. I've given the answer
$$\dfrac{m!}{(m - n)!}$$
But they said i was wrong and the answer is $mn$
Where am i wrong?
Please help. Thanks !
We have $m$ choices for what $1$ is sent to. For each of these, we have $m-1$ choices for what $2$ is sent to. For each way of doing these two things, there are $m-2$ choices for what $3$ is sent to, and so on for a total of $$m(m-1)(m-2)\cdots(m-n+1).$$ This can also be written as $\frac{m!}{(m-n)!}$.
Your calculation is correct. The answer $mn$ is not, unless the problem was incorrectly described.
Who is this "they"? You first pick the range of your function (can be done in $\binom{m}{n}$ ways, then any permutation thereof gives you a function (and a different one), giving your formula, and not "theirs".