Standing next to each other
Two particular people must, or must not, stand next to each other.
Practise this type
Target 50 s per question · Word problems
What this type asks
Two particular people must, or must not, stand next to each other. The single idea of treating them as one block solves most of these.
At a glance
| Area | Word problems |
|---|---|
| Target time (practice yardstick) | 50 s per question |
| Options | 5 options; wrong ones come from common mistakes |
| Levels | Easy, medium, hard (bigger numbers and more steps) |
Formula
adjacent = (n−1)! × 2not adjacent = n! − (n−1)! × 2
How to solve it
Glue the two into a block, line up the n−1 items, and multiply by 2 for swapping inside the block. For "not adjacent", subtract from all arrangements.
Worked example
6 people including A and B stand in a line. In how many ways are A and B next to each other?
Answer: 240 ways
- Treat A and B as one block: 5! = 120 lines of 5 items, times 2 orders inside the block.
- Next to each other: 120 × 2 = 240
The usual mistake
Forgetting the factor 2 inside the block is the most common slip; an option equal to (n−1)! is the trap.
Saving time
Another route for "not adjacent": line up the others first and drop the two into the gaps. Getting the same number both ways settles it.
Four practice questions (easy, medium, medium, hard)
1. 6 people including A and B stand in a line. In how many ways are A and B next to each other?
- 480 ways
- 48 ways
- 120 ways
- 240 ways
- 300 ways
Show answer and solution
Answer: ④ 240 ways
- Treat A and B as one block: 5! = 120 lines of 5 items, times 2 orders inside the block.
- Next to each other: 120 × 2 = 240
2. 5 people including A and B stand in a line. In how many ways are A and B next to each other?
- 12 ways
- 53 ways
- 24 ways
- 48 ways
- 72 ways
Show answer and solution
Answer: ④ 48 ways
- Treat A and B as one block: 4! = 24 lines of 4 items, times 2 orders inside the block.
- Next to each other: 24 × 2 = 48
3. 6 people including A and B stand in a line. In how many ways are A and B next to each other?
- 48 ways
- 120 ways
- 480 ways
- 240 ways
- 288 ways
Show answer and solution
Answer: ④ 240 ways
- Treat A and B as one block: 5! = 120 lines of 5 items, times 2 orders inside the block.
- Next to each other: 120 × 2 = 240
4. 5 people including A and B stand in a line. In how many ways are A and B not next to each other?
- 120 ways
- 96 ways
- 72 ways
- 65 ways
- 48 ways
Show answer and solution
Answer: ③ 72 ways
- Treat A and B as one block: 4! = 24 lines of 4 items, times 2 orders inside the block.
- Next to each other: 24 × 2 = 48
- Not next to each other: all 5! − 48 = 120 − 48 = 72
The practice button makes new questions of this type every time.
Related types
Questions and answers are generated by code and checked twice. This is type practice, not a copy of any organisation's exam.