Mathematics (JEE)Very hardJEE Main pattern

Six people including A and B stand in a row. The number of arrangements in which A is not first and B is not last is:

  1. A. 504
  2. B. 600
  3. C. 480
  4. D. 528

Correct answer: A. 504

Inclusion–exclusion: 6! − (A first) − (B last) + (A first and B last) = 720 − 120 − 120 + 24 = 504. 480 forgets to add back the 24 double-counted arrangements.

More Permutations, Combinations and Probability questions

Exams that ask this topic