| Condition | Method | Count |
|---|---|---|
| A and B together | Bundle, then × 2! | (n − 1)! × 2! |
| A and B never together | Total − together | n! − (n − 1)! × 2! |
| No two of k objects together | Arrange the rest, fill gaps | m! × ᵐ⁺¹Pₖ |
| Alternate, equal numbers | Two patterns | 2 × m! × m! |
Together: bundle and multiply by the inside arrangements. Never together (two objects): total minus together. No two together (three or more): arrange the others first and drop the restricted objects into the gaps.
Key takeaways: decide first which condition you have. Bundle for together, subtract for a single pair that must be apart, and use gaps when no two of a group may touch. With equal numbers alternating, remember the factor 2 for the two starting patterns; with unequal numbers, only one pattern exists.