Mathematics (JEE)Very hardGATE CS
How many functions f from {1, 2, 3, 4} onto {1, 2, 3} (every value 1, 2, 3 is attained) satisfy f(1) != f(2)?
- A. 36
- B. 30
- C. 81
- D. 27
Correct answer: B. 30
Enumerating the 81 functions from {1,2,3,4} to {1,2,3}, keeping those that attain all three values and have f(1) != f(2), leaves 30.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations p of {1, 2, ..., 6} satisfy p(i) != i and p(i) != 7 - i for every i from 1 to 6?
- How many permutations p of {0, 1, 2, 3, 4, 5} satisfy p(i) != i and p(i) != i+1 (addition mod 6) for every i?
- How many 5-element subsets of {1, 2, ..., 10} contain no three consecutive integers (no k, k+1, k+2 all in the subset)?
- How many partitions of the set {1, 2, 3, 4, 5, 6} have every block of odd size? Blocks are unlabelled.
- How many 4-element subsets of {1, 2, ..., 12} contain no two elements whose sum is 13?
- Five people 1, 2, 3, 4, 5 sit around a round table. Seatings that differ by a rotation are the same, but mirror images are different…