Mathematics (JEE)Hard
A function from {1, 2, 3, 4} to {1, 2, 3, 4} is chosen uniformly at random among all 4⁴ functions. What is the probability that it is onto (every value is attained)?
- A. 1/4
- B. 9/64
- C. 9/32
- D. 3/32
Correct answer: D. 3/32
Onto functions are bijections: 4! = 24 out of 256, so the probability is 24/256 = 3/32. The value 1/4 would be the chance that a particular value is hit, and 9/64 ignores the injectivity.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- Four balls are placed independently and uniformly into three boxes. What is the probability that no box is empty?
- A binary string of length 6 is chosen uniformly at random from all 64 strings. What is the probability that it contains no two consecutive…
- A 5-digit string is formed by choosing each digit independently and uniformly from {0, 1, 2, 3}. What is the probability that all four…
- A random 4-element subset A of {1, 2, …, 8} is chosen, and then a second 4-element subset B is chosen independently and uniformly. What is…
- Five cards are dealt from a well-shuffled 52-card pack. What is the probability that no two of them have the same rank?
- A fair coin is tossed four times. What is the probability that no two consecutive tosses show the same outcome?