Mathematics (JEE)Very hardGATE CS
How many functions f from {1, 2, 3, 4, 5, 6} onto {1, 2, 3} (every value attained) satisfy f(i) != i for i = 1, 2, 3?
- A. 540
- B. 360
- C. 168
- D. 729
Correct answer: C. 168
Enumerating the 3^6 = 729 functions and keeping those that are onto and avoid f(i) = i for i = 1, 2, 3 leaves 168.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many words of length 4 over {a, b, c, d} use each letter exactly once and contain neither the substring ab nor the substring cd?
- How many strings of length 6 over {0, 1, 2} contain no substring 01 and do not end with the symbol 2?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} satisfy A union B = {1, 2, 3, 4} and A intersect B = empty set?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy A is a subset of B and |B| = 3?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} have |A| = |B|?
- How many binary strings of length 7 contain neither the substring 000 nor the substring 111?