Mathematics (JEE)HardGATE CS
How many functions from {1, 2, 3, 4, 5} to {1, 2, 3, 4, 5} have a range (set of values taken) of size exactly 3?
- A. 150
- B. 750
- C. 1500
- D. 3125
Correct answer: C. 1500
Choose the 3 values in the range in C(5,3) = 10 ways, then count surjections from 5 points onto those 3 values: 3^5 - 3*2^5 + 3 = 150, so 10 * 150 = 1500.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many strings of length 6 over the alphabet {A, B, C} contain each of the three letters at least twice?
- How many binary strings s0 s1 ... s7 of length 8 contain exactly three 1s and no two 1s in cyclically adjacent positions (s7 and s0 count…
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy |A intersect B| = 2?
- How many permutations of {1, 2, 3, 4, 5, 6} contain no three consecutive positions i, i+1, i+2 whose values are strictly decreasing?
- How many 3-element subsets of {1, 2, ..., 20} have an element sum divisible by 4?
- How many ordered triples (a, b, c) of distinct elements from {1, 2, ..., 7} have a + b + c divisible by 3?