• Practice
  • About 15 min
  • 5 practice questions

Together and never together: the bundle and gap methods

Count row arrangements where chosen people must sit together, must never sit together, or must alternate, using the bundle method, the complement and the gap method.

If something looks wrong, please tell us.

The foundation course showed how to keep two objects together by tying them into a bundle. Exam questions push this further: two people who must never sit together, a group in which no two girls may be neighbours, or boys and girls who must alternate. Each of these has a quick, reliable method, and choosing the wrong one is the most common source of wrong answers. This lesson sets out the three methods side by side and shows exactly when each applies.

Method 1: the bundle for objects that stay together

Tie the objects that must be together into one bundle and count the bundle as a single object. Arrange the bundle with the remaining objects, then multiply by the number of ways to arrange the objects inside the bundle. If 3 particular books must stay together among 8 different books on a shelf, there are 6 objects to arrange (the bundle and 5 other books), giving 6! = 720, and the 3 books inside the bundle can be ordered in 3! = 6 ways. Total 720 × 6 = 4320.

Method 2: the complement for two objects never together

When only two particular objects must not be adjacent, count everything and subtract the arrangements in which they are together. This works because, for two objects, "not together" is exactly the opposite of "together".

Worked example 1: two people never together

Seven people stand in a row. In how many arrangements are A and B never next to each other? All arrangements: 7! = 5040. A and B together: bundle them, giving 6 objects, so 6! = 720 arrangements, times 2! = 2 for the order inside the bundle, which is 1440. Never together: 5040 − 1440 = 3600.

Method 3: the gap method for no two together

When three or more objects must have no two of them adjacent, the complement becomes messy. Instead, first arrange the objects that have no restriction. If there are m of them in a row, they create m + 1 gaps: one before the first, one between each neighbouring pair and one after the last. Place the restricted objects into different gaps, at most one per gap, so no two of them can touch. If k different objects go into the m + 1 gaps, the number of ways is ᵐ⁺¹Pₖ.

Worked example 2: no two girls together

Five boys and four girls stand in a row so that no two girls are next to each other. Arrange the boys: 5! = 120. The 5 boys create 6 gaps. Place the 4 different girls in 4 of the 6 gaps, one girl per gap: ⁶P₄ = 6 × 5 × 4 × 3 = 360. Total 120 × 360 = 43,200.

Worked example 3: alternate arrangements

Four boys and four girls stand in a row so that boys and girls alternate. The pattern is either B G B G B G B G or G B G B G B G B, so there are 2 patterns. In each, the boys fill their four places in 4! = 24 ways and the girls fill theirs in 4! = 24 ways. Total 2 × 24 × 24 = 1152. If there are 4 boys and only 3 girls, the only possible pattern is B G B G B G B (boys at both ends), so the count is 4! × 3! = 24 × 6 = 144, with no factor 2.

The trap: "not all together" is not "no two together"

Take 3 girls and 2 boys in a row. All arrangements: 5! = 120. All three girls together: bundle them, 3! × 3! = 36. So "the girls are not all together" gives 120 − 36 = 84. But "no two girls together" is far stricter: arrange the 2 boys in 2! = 2 ways, which makes 3 gaps, and the 3 girls fill them in ³P₃ = 6 ways, giving only 12. Read the condition twice: the first allows two girls side by side, the second does not.

Choosing the method (n objects in all, m unrestricted)
ConditionMethodCount
A and B togetherBundle, then × 2!(n − 1)! × 2!
A and B never togetherTotal − togethern! − (n − 1)! × 2!
No two of k objects togetherArrange the rest, fill gapsm! × ᵐ⁺¹Pₖ
Alternate, equal numbersTwo patterns2 × 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.

Check your understanding

  1. 1. Six people stand in a row. In how many arrangements are two particular people never next to each other?

    1. 240
    2. 600
    3. 480
    4. 360
    Show answer

    Answer: C. Total 6! = 720. Together: 5! × 2! = 240. Never together: 720 − 240 = 480.

  2. 2. Four boys and three girls stand in a row so that no two girls are adjacent. How many arrangements are possible?

    1. 1440
    2. 144
    3. 720
    4. 5040
    Show answer

    Answer: A. Arrange the boys: 4! = 24. They make 5 gaps; place 3 girls: ⁵P₃ = 60. Total 24 × 60 = 1440.

  3. 3. Three girls and two boys stand in a row. In how many arrangements are the three girls NOT all together?

    1. 12
    2. 36
    3. 108
    4. 84
    Show answer

    Answer: D. Total 5! = 120. All three girls together: 3! × 3! = 36. Not all together: 120 − 36 = 84. (12 counts 'no two girls together', a different condition.)

  4. 4. Five men and five women stand in a row so that men and women alternate. How many arrangements are possible?

    1. 14,400
    2. 28,800
    3. 3,628,800
    4. 240
    Show answer

    Answer: B. Two patterns (man first or woman first), each with 5! × 5! = 14,400. Total 2 × 14,400 = 28,800.

  5. 5. Eight different books are placed on a shelf so that three particular books are always together. How many arrangements are possible?

    1. 720
    2. 4320
    3. 40,320
    4. 2160
    Show answer

    Answer: B. Bundle the 3 books: 6 objects, 6! = 720. Inside the bundle: 3! = 6. Total 720 × 6 = 4320.

Sign in to keep track of the lessons you finish.

Next lesson → Forming numbers from digits

Privacy · Terms · Refunds · Delivery