Mathematics (JEE)HardGATE CS
How many surjective functions are there from a 6-element set onto a 4-element set?
- A. 1560
- B. 4096
- C. 1080
- D. 2400
Correct answer: A. 1560
By inclusion–exclusion: 4⁶ − 4·3⁶ + 6·2⁶ − 4·1⁶ = 4096 − 2916 + 384 − 4 = 1560. Option 4096 counts all functions.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many injective functions f from {1, 2, 3, 4} to {1, 2, …, 6} satisfy f(1) < f(2)?
- In how many ways can the 4 distinct elements 1, 2, 3, 4 be split into ordered (ranked) groups, where each group is non-empty and the order…
- In how many ways can 6 distinct people be divided into 3 unordered pairs?
- In how many ways can 8 distinct people be divided into 4 unordered pairs?
- How many words of length 5 over {a, b, c} contain exactly one a and no two b's adjacent?
- How many words of length 6 over {0, 1} have exactly three 1s and do not begin with 1?