Mathematics (JEE)Hard
How many onto functions are there from a set of 4 elements to a set of 3 elements?
- A. 81
- B. 36
- C. 24
- D. 12
Correct answer: B. 36
By inclusion–exclusion, 3⁴ − 3·2⁴ + 3·1⁴ = 81 − 48 + 3 = 36. Enumeration gives 36. The value 24 = 4! ignores the structure of the function.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- A subset of {1, 2, 3, 4, 5, 6} is chosen uniformly at random among all 64 subsets. What is the probability that the subset has an even…
- A fair die is rolled six times. Given that at least one 1 appears, what is the expected number of 1s?
- How many 3-element subsets of {1, 2, 3, 4, 5, 6, 7} have their elements summing to 10?
- A fair coin is tossed four times. Let D be the number of heads minus the number of tails. What is E(D)?
- A coin shows heads with probability 2/3. Tosses are made until the first tail appears. What is the expected number of heads obtained…
- Three fair dice are thrown. Given that all three numbers are different, what is the probability that their sum is 9?