Arrangements with restrictions drills

Count arrangements under a condition: two people together or not next to each other, a fixed position, one item before another, or digits each used once with an even or divisibility condition.

Free, timed SHSAT practice sets on arrangements with restrictionsβ€” every question includes a full worked explanation, and there's no account required.

Loading questions…

How to solve arrangement problems with restrictions

Handle the restriction first, then arrange everything else.

Common traps: forgetting the \(\times 2\) inside a block, and putting 0 first in a number.

Worked examples

Example 1.
5 friends, including Ben and Eli, stand in a line. In how many arrangements are Ben and Eli NOT next to each other?
Show answer and explanation
Answer:
D

Count the opposite and subtract. All arrangements: \(5! = 120\). Together: glue Ben and Eli into one block, so arrange 4 items in \(4! = 24\) ways, times 2 for the order inside the block: \(48\). Not together: \(120 - 48 = 72\). (Counting the arrangements where they ARE next to each other gives 48. Forgetting that Ben and Eli can switch places in the block (\(120 - 24\)) gives 96. Ignoring the condition (\(5!\)) gives 120.)

Example 2.
Cards numbered 1 through 7 are arranged in a row. In how many arrangements is it true that cards 1, 2, and 3 appear in that order from left to right (not necessarily next to each other)?
Show answer and explanation
Answer:
C

There are \(7! = 5040\) arrangements. Cards 1, 2, and 3 can be in \(3! = 6\) equally likely relative orders, and only one of them is 1, 2, 3: \(5040 \div 6 = 840\). (Ignoring the condition (\(7! = 5040\)) gives 5040. Counting only the arrangements with 1, 2, 3 side by side gives 120. Dividing by 3 instead of \(3! = 6\) (\(5040 \div 3\)) gives 1680.)

Example 3.
5 students, including Ben, line up at a door. If Ben must be at one of the two ends, how many arrangements are possible?
Show answer and explanation
Answer:
D

Ben has 2 choices of end. The other 4 students fill the remaining spots in \(4! = 24\) ways. Total: \(2 \times 24 = 48\). (Counting only one end (\(4!\)) gives 24. Counting the arrangements with Ben NOT on an end (\(5! - 48\)) gives 72. Adding the 2 end choices instead of multiplying (\(2 + 4!\)) gives 26.)