When an ordered arrangement carries a restriction, how do you choose between grouping items into a block, counting the complement, and splitting into cases with an overlap correction?
Apply three reusable counting principles to ordered arrangements with restrictions: keep tied items together by grouping them into a block and ordering inside it, count an unwanted condition and subtract it from the total (the complement), and split an 'or' count into non-overlapping cases, subtracting the overlap by inclusion-exclusion when the cases meet
The three restriction moves the HSC Extension 1 counting dot point keeps testing. Group tied items into a block and order inside it, count the unwanted and subtract it (the complement), and split an 'or' count into cases, subtracting the overlap by inclusion-exclusion. Includes a symmetry shortcut, slot diagrams and a Venn picture.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
The multiplication principle and ordered selections page gave you the engine for counting in stages, the powers and permutations , and the first two restriction moves: deal with the hardest box first, and fix a forced position. This page is about the three principles that handle the harder restrictions, the ones that decide most of the marks on a counting question. Each is a way of reshaping a question you cannot box directly into one you can.
The three moves are grouping, the complement, and cases. Grouping handles "must be together": glue the tied items into a single block, order the blocks, then order inside each block. The complement handles "at least one", "not all" and "must be separated": count the unwanted arrangements and subtract them from the total. Cases handle a genuine "or" that no single box diagram captures: split into separate cases and add, and if the cases overlap, subtract the overlap so nothing is counted twice. That last subtraction is the inclusion-exclusion principle, the same you met in set theory. The whole skill is reading the wording, picking the move, and laying the working out so a marker can follow it.
The answer
Principle 1: grouping (the block method)
When certain items must stay together, you cannot order them as if they were free, because the arrangement has to keep them adjacent. The fix is to glue the tied items into a single block and treat that block as one item. The arrangement now has fewer items, the block plus everything else, and you order those in the usual way. Then, because the items inside a block can still be shuffled among themselves while staying adjacent, you separately order the inside of each block and multiply. In short: order the groups, then order within each group.
A group can even be a single item, which orders in way and so contributes nothing, but it is worth listing the groups explicitly so you do not miscount how many there are. The classic question stacks two groups at once. Four boys and four girls form a queue; one couple (one boy and one girl) want to stand together, and three particular girls also want to stand together, while the remaining three boys do not mind where they go. Count the groups: the couple is one group, the three girls are one group, and each of the three free boys is a group of one, giving groups in all. Order the groups in ways, order the couple internally in ways, and order the three girls internally in ways:
The slot diagram shows the idea exactly. The eight people collapse into five group-slots, two of them glued blocks drawn with a heavier outline, and you order those five in . The two tails on the right, and , are the internal orders of the couple and the girls. The single boys add no tail because .
Principle 2: the complement (count the unwanted and subtract)
Some conditions are awkward to count head-on but easy to count in reverse. "At least one" is the signature example, because counting it directly forces you to add the cases exactly one, exactly two, and so on. The escape is the complement: count the arrangements that fail the condition, the ones with none of the wanted feature, and subtract from the total.
The complement is also the fastest way to count "must be separated", which is the exact mirror of grouping. To separate two items, count every arrangement, then subtract the arrangements where they are together (which you get from the block method). Take seven-letter words formed from the letters , with the two vowels and required to be separated by at least one consonant. The total number of arrangements of seven distinct letters is . The unwanted arrangements are those with and together; glue them into a block, leaving items in ways with internal orders, so the together count is . Therefore
words have the vowels apart. The "" is just ; it is the whole unwanted block count, not a stray factor.
Principle 3: cases (split, add, and subtract any overlap)
Sometimes the conditions are so awkward that no single box diagram can capture them, and the honest thing is to split the problem into cases, count each separately, and add. The one rule that makes this safe is about overlap. If the cases are genuinely disjoint, that is, no arrangement belongs to two of them at once, you simply add the case counts. If the cases overlap, an arrangement in the overlap gets counted once in each case, so you must subtract the overlap once to correct the double count. For two overlapping cases this is the inclusion-exclusion principle:
the same identity you met for sets. It says: add the sizes of the two cases, then take back the shared part you counted twice.
Here is the contrast in one breath. First a disjoint count. How many whole numbers below are odd and greater than , or are a multiple of and less than ? There are odd numbers from to , and there are multiples of below (counting ). No number can be both greater than and less than , so the cases cannot overlap and you add: .
Now an overlapping count, which is where inclusion-exclusion earns its keep. How many three-digit numbers (from to ) are odd and greater than , or a multiple of and less than ? Let be the odd numbers above and the multiples of below . There are numbers in (the odd numbers to ) and numbers in (the multiples of from to ). This time the cases overlap: an odd multiple of between and lies in both. Those are the numbers , of which there are . So
The Venn picture makes the bookkeeping obvious. The left circle holds , the right holds , but the lens where they meet holds counted in both. Adding counts that lens twice, so subtracting once leaves each region counted exactly once: the three regions hold , and , totalling .
A fourth trick: counting by symmetry
A few questions reward a one-line symmetry argument instead of any of the three principles. The standard one is " is somewhere to the left of " in a row of distinct items, where and need not be adjacent. In any arrangement, exactly one of two things is true: is left of , or is left of . Reversing the row, or just swapping the two labels, pairs each " left of " arrangement with exactly one " left of " arrangement, so the two outcomes are equally likely. Neither is special, so exactly half of all arrangements have to the left of .
For example, in arrangements of the six distinct letters of , the number with somewhere to the left of is half of the total:
The same halving works for any single "left of" condition on two distinguishable items, because the swap is a perfect pairing. It does not extend naively to three or more items in a fixed order, where the fraction is , nor to items that might be identical, where the swap is not a genuine pairing.
How exam questions ask about this dot point
The wording points straight at the move. Match the phrase to the principle:
- "...must sit together / be next to each other / as a group", "kept together", "the vowels are together". Grouping: glue the tied items into a block, order the groups, then multiply by for the inside of each block.
- "...two groups must each be together", "the boys together and the girls together". Grouping with several blocks: order the groups, then multiply by the internal of every block.
- "...at least one...", "at most...", "not all...". Complement: count the total, subtract the "none" count.
- "...must be separated / not next to each other / no two together". Complement of grouping: total minus the "together" block count.
- "... or ..." where no single slot diagram fits. Cases: split, count each, add. Check overlap first.
- "... or ..." where an item can satisfy both. Inclusion-exclusion: , subtracting the overlap once.
- "... somewhere to the left of / before ", two distinguishable items. Symmetry: halve the total, .
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksThree different mathematics books and four different science books are arranged in a row on a shelf, with all the books on each subject kept together. In how many ways can this be done?Show worked solution →
- Treat each subject as one block
- Glue the three maths books into one block and the four science books into another. There are then blocks to arrange in the row.
- Order the blocks
- The blocks can be placed in orders (maths block then science block, or the reverse).
- Order inside each block
- The maths books rearrange among themselves in ways and the science books in ways. By the multiplication principle,
Answer. There are arrangements.
foundation3 marksFive people stand in a row. Two of them, and , refuse to stand next to each other. In how many ways can the row be formed?Show worked solution →
Choose the complement. Counting "not next to each other" directly is fiddly, so count the arrangements where and ARE together and subtract from the total.
Count all arrangements. Five distinct people in a row give
Count the unwanted (together) by the block method. Glue and into one block, leaving items to arrange in ways, with internal orders:
Subtract. The arrangements with and apart are
Answer. There are acceptable arrangements.
core3 marksHow many three-digit whole numbers (from to ) are even or divisible by ?Show worked solution →
Spot the overlap and reach for inclusion-exclusion. "Even" and "divisible by " can both hold at once (a number divisible by ), so the two cases overlap. Use .
Count the even three-digit numbers. From to inclusive, stepping by , there are
Count those divisible by . From to inclusive, stepping by ,
Count the overlap (divisible by ). From to inclusive, stepping by ,
Apply inclusion-exclusion.
Answer. There are such numbers.
core2 marksSeven different people stand in a row. In how many of the arrangements is a particular person, , standing somewhere to the left of another particular person, ? (They need not be adjacent.)Show worked solution →
Use the symmetry argument. In any arrangement either is left of or is left of , and reversing the roles pairs the two situations one-to-one. Neither is special, so exactly half of all arrangements have to the left of .
Count all arrangements. Seven distinct people in a row give
Halve.
Answer. In arrangements is somewhere to the left of .
exam4 marksEight different books, including a trilogy of three volumes, are arranged in a row. (i) In how many arrangements do the three trilogy volumes stand together (in any order)? (ii) In how many arrangements do they stand together and in the correct series order (volume 1, then 2, then 3)?Show worked solution →
Part (i): glue the trilogy into a block. Treat the three volumes as one block, leaving items (the block plus the other books) to arrange.
Order the items, then inside the block. The items go in ways and the block has internal orders:
Part (ii): fix the internal order. "Together and in series order" means the block is still item, but now its three volumes have only acceptable internal order instead of :
Sanity check. Of the internal orders, exactly is the correct series order, so part (ii) should be of part (i): , which agrees.
Answer. (i) ; (ii) .
exam4 marksA five-digit string is formed from the digits to with repetition allowed (a leading is permitted, so any of to may occur). How many such strings contain at least one or at least one (or both)?Show worked solution →
Read it as a union of two 'at least one' conditions. Let be the strings with at least one and those with at least one ; the question asks for . The cleanest route is the complement of the union.
Count the total. Five positions, each any of digits:
Count the strings in neither set (no and no ). Each position avoids both and , leaving digits:
Subtract: at least one or one is everything except neither.
Confirm with inclusion-exclusion. and . The overlap, at least one AND at least one , is . Then , the same value.
Answer. strings.
Related dot points
- Use the multiplication principle to count ordered selections across stages, count ordered selections with repetition as n^r and without repetition as nPr = n!/(n-r)!, and apply restriction techniques: deal with the difficulty first, fix a position, keep items together as a block, and count 'at least one' by the complement
A first-contact answer to the HSC Maths Extension 1 dot point on counting ordered selections. The multiplication principle across stages, ordered selections with repetition (n^r) versus without (nPr), and the restriction moves: deal with the difficulty first, fix a position, keep items together as a block, and count at-least-one by the complement, using the filled-box slot method.
- Define and evaluate factorials, use the recursive relation n! = n(n-1)!, and simplify factorial expressions and fractions by unrolling and cancelling
A first-contact answer to the HSC Maths Extension 1 dot point on factorial notation. What n! means, why 0! = 1, the recursive rule n! = n(n-1)!, and how unrolling cancels factorial fractions, combines them over a common factorial, and counts trailing zeroes, with the arranging-in-a-row motivation and worked examples.
- Count the distinct arrangements of n objects when some are identical: divide n! by the factorial of each repeat count to get n! over r1! r2! ... rk!, and handle the two-type special case where every object is one of two kinds (2^n arrangements in all, or choose the positions of one kind with a combination)
Why arranging objects with repeats needs n! over r1! r2! ... rk!: plain n! overcounts because swapping identical objects changes nothing, so you divide by the factorial of each repeat count. Covers word arrangements like PRESSES, the binary two-type case (2^n or choose positions with a combination), cases, and separating identical items.
- Count arrangements of n distinct objects around a circle as (n-1)! by treating rotations as identical, extend this to groups and blocks around a circle, alternating patterns and 'not together' restrictions handled by the complement, and recognise that for a necklace or bracelet, where a reflection also coincides, the count is (n-1)!/2
Arranging objects around a circle. Why n distinct objects give (n-1)! when rotations count as the same seating, the block method for groups and couples (2^k x (k-1)!), alternating boys and girls, 'not together' by the complement, and necklaces/bracelets where reflections also coincide so you divide by 2.
- Use the multiplication principle and the permutation formula to count ordered arrangements, including restrictions and repeated elements
A focused answer to the HSC Maths Extension 1 dot point on permutations. The multiplication principle, the formula for arrangements of from , permutations of objects with repeats, circular permutations, and counting with restrictions, with stepped diagrams and worked examples.
- Use the combination formula to count unordered selections, including with restrictions and complementary counting
A focused answer to the HSC Maths Extension 1 dot point on combinations. The combination formula, why you divide by , key identities, applications including complementary counting, splitting into groups, and at-least/at-most counts, with a stepped diagram and worked examples.