Mathematics (JEE)HardGATE CS
How many permutations of {1, 2, 3, 4, 5} have exactly 2 inversions (pairs i < j with p(i) > p(j))?
- A. 10
- B. 8
- C. 15
- D. 9
Correct answer: D. 9
The Mahonian numbers for n = 5 are 1, 4, 9, 15, 20, 22, 20, 15, 9, 4, 1 by inversion count, so exactly 2 inversions occur for 9 permutations.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations of {1, 2, 3, 4, 5, 6} have exactly 4 inversions (pairs i < j with p(i) > p(j))?
- How many injective functions f from {1, 2, 3, 4} to {1, 2, 3, 4, 5, 6} satisfy f(i) != i for every i?
- How many functions f from {1, 2, 3, 4, 5, 6} onto {1, 2, 3} (every value attained) satisfy f(i) != i for i = 1, 2, 3?
- How many words of length 4 over {a, b, c, d} use each letter exactly once and contain neither the substring ab nor the substring cd?
- How many strings of length 6 over {0, 1, 2} contain no substring 01 and do not end with the symbol 2?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} satisfy A union B = {1, 2, 3, 4} and A intersect B = empty set?