Placement AptitudeVery hardProduct company OA · CAT level

In how many arrangements of the numbers 1, 2, 3, 4, 5, 6, 7 in a row does no number k appear immediately before k + 1? (For example, '3 4' side by side in that order is not allowed, but '4 3' is.)

  1. A. 2119
  2. B. 1854
  3. C. 1625
  4. D. 2520

Correct answer: A. 2119

Inclusion–exclusion on the 6 forbidden adjacencies 12, 23, …, 67. Forcing any k of them glues numbers into blocks, leaving 7 − k objects, so the count is Σ (−1)ᵏ C(6, k)(7 − k)! = 5040 − 4320 + 1800 − 480 + 90 − 12 + 1 = 2119. 1854 is the number of derangements of 7 (nobody in their own place), a different restriction.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic