Placement AptitudeHardCAT · Goldman Sachs OA
How many functions f from {1, 2, 3, 4, 5} to itself satisfy f(f(x)) = x for every x?
- A. 26
- B. 11
- C. 25
- D. 31
Correct answer: A. 26
Such an f is a permutation made of fixed points and swaps: no swap (1), one swap (C(5, 2) = 10), or two swaps (C(5, 2) × C(3, 2)/2 = 15). Total 26. Stopping at one swap gives 11.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- How many functions f from {1, 2, 3, 4} to {1, 2, …, 6} satisfy f(1) ≤ f(2) ≤ f(3) ≤ f(4)?
- How many subsets of {1, 2, …, 10}, including the empty set, contain no two consecutive numbers?
- In how many ways can a 2 × 8 strip be completely covered with eight 1 × 2 tiles (each tile placed horizontally or vertically)?
- In an election, Asha gets 7 votes and Bimal gets 4. The 11 ballots are counted one by one in a random order. What is the probability that…
- Two different squares are chosen at random on an 8 × 8 chessboard. What is the probability that they share a side?
- Two queens are placed on two different squares of an 8 × 8 chessboard at random. What is the probability that they attack each other (same…