Mathematics (JEE)ModerateGATE CS
How many functions f from {1, 2, 3, 4, 5} to itself satisfy f(f(x)) = f(x) for every x?
- A. 196
- B. 26
- C. 52
- D. 3125
Correct answer: A. 196
An idempotent map is fixed on its image set S of size k, which can be chosen in C(5,k) ways, and each of the other 5 - k points maps into S in k ways: sum over k of C(5,k) * k^(5-k) = 5 + 80 + 90 + 20 + 1 = 196.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many functions f from {1, 2, 3, 4} to {1, 2, 3, 4, 5} are non-decreasing, meaning f(1) <= f(2) <= f(3) <= f(4)?
- How many functions f from {0, 1, 2, 3, 4, 5} to itself satisfy f(f(x)) = x for every x?
- How many ways are there to partition the set {1, 2, 3, 4, 5, 6, 7} into exactly 3 blocks, where every block has at least 2 elements? The…
- In how many ways can the set {1, 2, 3, 4, 5, 6} be split into 3 non-empty blocks, where blocks are unlabelled (only the grouping matters)?
- Four married couples sit around a round table with 8 seats. Seatings that differ by a rotation are the same, but mirror images are…
- How many permutations p of {1, 2, ..., 7} satisfy p(1) < p(2) > p(3) < p(4) > p(5) < p(6) > p(7)?