Mathematics (JEE)HardCAT · MBA placement
How many functions f from {1, 2, 3, 4, 5, 6} to {1, 2, 3, 4} are onto (every value 1..4 is attained) and satisfy f(1) = f(2)?
- A. 1560
- B. 480
- C. 1024
- D. 240
Correct answer: D. 240
Identifying 1 and 2 turns the condition into a surjection from a 5-element set onto a 4-element set: 4^5 - 4*3^5 + 6*2^5 - 4 = 1024 - 972 + 192 - 4 = 240.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many integers n with 1 <= n <= 10000 are divisible by exactly one of 3 and 7?
- How many 4-digit numbers have four distinct digits, none of them 0, and an even digit sum?
- How many nonempty subsets of {1, 2, ..., 10} have an element sum that is divisible by 5?
- How many 4-element subsets of {1, 2, ..., 12} have an element sum divisible by 3?
- How many binary strings of length 10 contain neither the substring 11 nor the substring 000?
- How many words of length 6 over the alphabet {a, b, c} contain neither the substring aa nor the substring bb?