Mathematics (JEE)ModerateCodeforces Div2 D
How many functions f from {0, 1, 2, 3, 4, 5} to itself satisfy f(f(x)) = x for every x?
- A. 720
- B. 203
- C. 76
- D. 52
Correct answer: C. 76
Such a function is a set of fixed points and 2-cycles, counted by I(n) = I(n-1) + (n-1) I(n-2) with I(0)=I(1)=1: I(2)=2, I(3)=4, I(4)=10, I(5)=26, I(6)=76.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- 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)?
- How many permutations of {1, 2, ..., 7} have exactly one descent, that is, exactly one position i with p(i) > p(i+1)?
- How many permutations p of {1, 2, ..., 6} satisfy |p(i) - i| != 1 and p(i) != i for every i from 1 to 6?