Mathematics (JEE)HardGATE CS
How many permutations of {1, 2, 3, 4, 5, 6} have exactly 4 inversions (pairs i < j with p(i) > p(j))?
- A. 49
- B. 71
- C. 29
- D. 101
Correct answer: A. 49
Enumerating all 720 permutations and counting those with exactly 4 inversions gives 49, the Mahonian number for n = 6, k = 4.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- 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?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy A is a subset of B and |B| = 3?