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))?

  1. A. 49
  2. B. 71
  3. C. 29
  4. 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.

More Permutations, Combinations and Probability questions

Exams that ask this topic