Mathematics (JEE)Very hardGATE CS
How many functions from a 6-element set to a 3-element set take exactly two distinct values?
- A. 62
- B. 192
- C. 186
- D. 189
Correct answer: C. 186
Choose the 2-element image in C(3,2) = 3 ways, then count surjections onto it: 2^6 - 2 = 62, so 3*62 = 186.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can 12 distinct books be placed on 3 distinct shelves so that no shelf holds more than 6 books?
- In how many ways can 10 identical candies be given to 4 distinct children so that every child gets at least 2 candies?
- In how many ways can 8 identical balls be placed into 5 distinct boxes so that no box contains exactly one ball? (Boxes may be empty.)
- What is C(3000, 1500) mod 1009, where 1009 is prime?
- What is the exponent of 5 in the prime factorisation of C(1000, 500)?
- How many entries of row 1000 of Pascal's triangle (C(1000, k) for k = 0 to 1000) are odd?