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.)
- A. 2119
- B. 1854
- C. 1625
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Seven tiles — two red, two blue, two green and one yellow, identical apart from colour — are laid in a row. In how many distinguishable…
- Six desks numbered 1 to 6 stand in a circle, and student i normally sits at desk i. After a break the six students sit down again, one per…
- In how many ways can 20 identical chocolates be shared among 4 children so that every child gets at least 1 and at most 8 chocolates?
- 8 different balls are put into 3 different boxes A, B and C so that no box is empty and box A contains an even number of balls. In how…
- In how many ways can 3 identical rooks be placed on a 6 × 6 chessboard so that no two are in the same row or column and no rook stands on…
- A box has three coins: a fair coin, a double-headed coin, and a biased coin that shows heads with probability 1/4. A coin is picked at…