Mathematics (JEE)Very hardGATE CS
How many functions from {1, 2, 3, 4} to {1, 2, 3} are onto and satisfy f(1) ≠ f(2)?
- A. 18
- B. 30
- C. 12
- D. 24
Correct answer: B. 30
Enumerating the 81 functions and keeping the onto ones with f(1) ≠ f(2) gives 30. Option 36 counts all onto functions, which is 36.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many compositions (ordered sums) of 5 into exactly 2 positive parts are there?
- A set of 5 distinct elements is split into 2 non-empty blocks, each block containing at least 2 elements. How many such splits are there?
- How many surjective functions are there from {1, 2, 3, 4, 5} onto {1, 2}?
- Two fair dice are rolled. Given that the first die shows an odd number, what is the probability that the sum is 7?
- A 4-digit PIN is chosen with each digit independently and uniformly from 0 to 9. What is the probability that every digit of the PIN is…
- Cards are dealt one at a time from a well-shuffled 52-card pack. What is the probability that the first ace is not the first card?