View worked solution
Answer: 0.95
Let the size of the sets be and .
Step 1: Total number of functions ()
Any function maps each of the elements of to any of the elements of .
Step 2: Number of one-to-one (injective) functions
For a function to be one-to-one, distinct elements in must map to distinct elements in .
- The first element of can be mapped to any of the elements in .
- The second element of can then be mapped to any of the remaining elements in .
Step 3: Probability calculation
Since is chosen uniformly at random from , the probability that is one-to-one is:
Free practice · Your answers on this page are not saved.
