Placement AptitudeVery hardGoldman Sachs OA · CAT
In how many permutations of 1, 2, 3, 4, 5 are there exactly 2 inversions? (An inversion is a pair of positions i < j with the larger number first.)
- A. 10
- B. 4
- C. 6
- D. 9
Correct answer: D. 9
Exactly 2 inversions come from either two separate adjacent swaps (2 non-overlapping pairs among the 4 adjacent positions: 3 ways, e.g. 21435) or one number jumping two places inside three consecutive positions (3 windows × 2 directions = 6, e.g. 31245 or 23145). Total 9.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A permutation of 1, 2, …, 8 is chosen at random. What is the probability that 1 and 2 lie in the same cycle of the permutation?
- From 5 pairs of shoes, 4 shoes are picked at random. What is the probability that at least one complete pair is among them?
- Three different numbers are chosen at random from 1, 2, …, 10. What is the probability that their sum is divisible by 3?
- A die is loaded so that the probability of showing k is proportional to k (k = 1, …, 6). Two such dice are thrown. What is the probability…
- Four fair dice are thrown. In how many of the 1296 outcomes is the total exactly 20?
- Consider the statements: (i) A convex 15-sided polygon has 90 diagonals. (ii) 15 points lie in a plane, 5 of them on one line and no other…