Non-Adjacent Permutations
The Gap Method
Scan to Follow
đ¸ Warm-Up: The Photo Line-Up Puzzle
đ¯ The Class Photo Dilemma
7 friends in Year 5 (Emma, Chloe, Zoe and Leo, Sam, Max, Ben) line up in a single row for a class photo.
â ī¸ Strict Condition:
Emma, Chloe, and Zoe cannot stand next to each other because they will whisper and giggle!
STUDENT ROSTER:
Quiet Crew (4 Boys)
Leo
Sam
Max
Ben
Chatterboxes (3 Girls)
Emma
Chloe
Zoe
đ¨ The Intuitive Trap: Can We Just Subtract?
Could we just find all arrangements and subtract when the 3 girls stand together?
â DOES NOT WORK!
đĄ The Gap Method
Instead of fixing messy mistakes, construct the line-up directly:
đ Golden Law of Non-Adjacent Problems:
"Line up the boys first to create protective dividers, then let the girls choose their gaps!"
đ§Š The 3-Phase Strategy: Step-by-Step Breakdown
Line-Up Stage Visualiser
Key Insight: Each gap can hold at most 1 chatterbox. Since boys stand between the gaps, the girls are physically separated!
STEP 1: Line Up the 4 Boys
STAGE 1
Assign the 4 boys to the 4 photo spots choice-by-choice:
1st spot: 4 choices âĸ 2nd: 3 âĸ 3rd: 2 âĸ 4th: 1
4
à 3
à 2
à 1
= 24 ways
STEP 2: Count the Available Gaps
STAGE 2
The 4 boys create 2 outside ends + 3 spaces between them:
4 boys in a line âš 4 + 1 = 5 available gaps
STEP 3: Girls Choose Gaps One by One
STAGE 3
âĸ Emma chooses first: 5 gap choices
âĸ Chloe chooses second: 4 choices left
âĸ Zoe chooses last: 3 choices left
âĸ Chloe chooses second: 4 choices left
âĸ Zoe chooses last: 3 choices left
5
à 4
à 3
= 60 ways
đ Final Assembly & Multiplication Principle
âī¸ The Multiplication Principle
Because the line-up is completed through two sequential, independent stages, we multiply the possibilities:
Stage 1: Arrange the 4 Boys (4 Ã 3 Ã 2 Ã 1)
24 ways
Stage 2: Girls Choose Gaps (5 Ã 4 Ã 3)
60 ways
TOTAL VALID PHOTO LINE-UPS
24 Ã 60 =
?
1,440 ways
Mental math tip: 24 Ã 6 = 144 â 144 Ã 10 = 1,440
đ Master Recipe: Non-Adjacent Problems
1
Classify: Identify who can stand anywhere (Boys) vs who cannot touch (Girls).
2
Seat the Boys First: Count choices for boys (4 Ã 3 Ã 2 Ã 1 = 24).
3
Count Gaps: 4 boys create 4 + 1 = 5 available gaps.
4
Girls Choose Gaps: Pick from remaining gaps (5 Ã 4 Ã 3 = 60) and multiply!
Master Rule:
Total = (Ways for Boys) Ã (Ways for Girls in Gaps)
đ
Mission Accomplished!
You have mastered Non-Adjacent Permutations & The Gap Method!
đ After-Class Mastery: Test Your Superpowers!
â 4 Practice Challenges for Home â Apply the Gap Method on Your Own!
Challenge 1: Photo Line-Up
6 students line up for a photo. Two students, Sam and Leo, must not stand next to each other.
Valid ways:
Challenge 2: Car Parking
5 distinct cars (3 silver, 2 red) park in a row of 5 spaces. The 2 red cars cannot be parked in adjacent spaces.
Valid ways:
Challenge 3: Bookshelf Order
6 distinct books on a shelf: 4 maths textbooks and 2 science textbooks. The 2 science books must never sit side-by-side.
Valid ways:
Challenge 4: Running Lanes (Bonus)
7 sprinters compete in 7 lanes. Runner X and Runner Y must not be assigned to adjacent lanes.
Valid ways: