How do you count the number of ordered ways to make a sequence of choices, and how does allowing or forbidding repetition change the count?
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.
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
This is the dot point where counting really begins. The factorial notation page gave you the arithmetic engine, and the unrolling rule; here you learn the principle that turns a real counting question into a product of factors. NESA wants three connected skills. First, the multiplication principle: when a selection is made in independent stages, you multiply the number of choices at each stage. Second, you must tell apart the two kinds of ordered selection, with repetition, which gives a power , and without repetition, which gives a permutation . Third, and where most of the marks and most of the mistakes live, you must handle restrictions: deal with the hardest restriction first, fix a forced position, keep items together by treating them as a block, and count an "at least one" condition through its complement.
The single tool that makes all of this visible is the filled-box slot diagram: draw one box for each stage, write the number of choices inside it, and multiply across. Almost every counting question on this dot point can be set out as boxes, and a marker can follow your reasoning at a glance.
The answer
The multiplication principle: multiply the choices across stages
Suppose a task is carried out in a sequence of stages, and the choice made at each stage does not change how many choices are available at the others. Then the number of ways to complete the whole task is the product of the numbers of choices at the separate stages. This is the multiplication principle, and it is the backbone of the entire topic.
Here is the intuition, not just the rule. Imagine choosing an outfit: a shirt from , then trousers from , then shoes from , then a cap from . For each of the shirts there are choices of trousers, giving shirt-and-trousers combinations. Each of those can be paired with any of the pairs of shoes, giving , and each of those with any of the caps, giving . Adding would be wrong, because the stages are not alternatives; they happen together, one after the other, and "and" between independent stages means multiply.
Ordered selections WITH repetition: the power n^r
Now narrow to the most common kind of staged choice: you build an ordered arrangement of positions, and at every position you may pick any of the same objects, repeats allowed. Because choosing an object never removes it from the pool, every one of the boxes keeps all choices, and the multiplication principle gives
The clearest example is digits. How many three-digit numbers can be made from the digits if a digit may be used more than once? Each of the three positions is free to be any of the digits, so the count is .
The same shape covers a four-digit PIN ( possibilities, since each of the four positions is any of the ten digits), and a string of binary digits (). Two warnings. The base is the number of objects you choose from; the exponent is the number of positions you fill. It is easy to write by reflex; always ask "how many choices per box () and how many boxes ()?" and the answer is choices-to-the-power-of-boxes, .
Ordered selections WITHOUT repetition: the permutation nPr
Change one word: now repeats are not allowed. As soon as an object is used it leaves the pool, so each box has one fewer choice than the box before it. Filling positions from distinct objects gives
That descending product of exactly factors, starting at , is the permutation . Using the unrolling rule from the factorial page, multiply and divide by to write it compactly:
A permutation is an ordered selection without repetition, which is why "arrangement", "in order", "first, second, third" and "no repeats" are its signal words. For instance, the number of three-letter words with no repeated letter taken from the letters is
Two special cases tie this back to factorials. Arranging all objects means , and
which is exactly the "arrange distinct objects in a row" count, and the reason the convention is forced. At the other end, and (one way to choose nothing). On a slot diagram, has the same number in every box; has a number that steps down by one each box. That visual difference is the fastest way to keep the two apart.
Restriction technique 1: deal with the difficulty first
Real questions add conditions: a digit cannot be zero, a particular person must sit at one end, two people must be together. The master rule is to deal with the most restricted box first, while it still has its restriction, and fill the free boxes afterwards. If you fill the easy boxes first you can use up an object that the restricted box needed, and miscount.
The classic case is the leading digit. How many three-digit numbers (no repeated digits) can be made from ? The hundreds digit cannot be , or the "number" is really two digits, so deal with it first: choices ( to ). The tens digit may now be but not the hundreds digit already used, so choices, and the units digit has left. The count is , with the restricted box handled before the others.
Restriction technique 2: fix a forced position
When an object is forced into a specific position, place it first in the way it is allowed, then count the remaining free positions normally. Fixing a position simply removes one box (it contributes a factor of ) and shrinks the pool for the rest.
For example, people queue and Maya must stand at the front. Put Maya in front ( way), then arrange the other people in the remaining places: . As a sanity check, Maya is equally likely to be in any of the places, so exactly of the unrestricted queues have her at the front, and .
Restriction technique 3: keep items together as a block
When certain objects must be together, glue them into a single block and arrange the block among the other items. Then, separately, arrange the objects inside the block, because they can still be ordered among themselves. The two counts multiply.
Take people in a row where two friends, and , insist on standing next to each other. Treat and as one block, leaving items (the block plus the other people) to arrange in ways. Inside the block, and can be in orders ( or ). By the multiplication principle the answer is .
If a block of items must stay together, the internal factor is . The same idea, run the other way, also handles "must be separated": that is usually fastest by the complement, next.
Restriction technique 4: "at least one" via the complement
"At least one" almost never wants a direct count, because it splits into awkward cases (exactly one, exactly two, ...). Instead count the complement, the arrangements that have none of the wanted feature, and subtract from the total:
How many four-digit numbers from the digits to (repetition allowed) contain at least one ? The total is . The numbers with no use only the other digits, so there are of them. Therefore the numbers with at least one number
The complement also cracks "must be separated": count all arrangements, subtract the ones where the forbidden items are together (found by the block method). The trigger words are at least one, at most, not all, and must be apart.
How exam questions ask about this dot point
The phrasing tells you which tool to reach for. Match the wording to the move:
- "How many outfits / meals / outcomes...", several independent choices. Multiplication principle: one box per stage, multiply across.
- "...digits/letters may be repeated", "with replacement", "a PIN", "a binary string". Ordered with repetition: each box keeps all choices, count . Read off = choices per box, = number of boxes.
- "...no digit repeated", "arrange of the in order", "first, second, third", "without replacement". Permutation ; each box drops by one.
- "In how many ways can people/books be arranged in a row?" All-objects permutation .
- "...the first digit cannot be ", "must not start with...". Deal with the difficulty first: fill the restricted box before the free ones.
- "... must sit at the end / be first". Fix that position ( way), then arrange the rest.
- "...must sit together / be next to each other / as a group". Block method: arrange the block among the others (), then arrange inside the block ().
- "...at least one...", "at most...", "not all...", "must be separated". Count the complement and subtract from 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 marksA pizza shop lets you build one pizza by choosing one of bases, then one of sauces, then one of toppings. How many different pizzas can be ordered? Set out the choice at each stage.Show worked solution →
Identify the stages and the choices at each. The pizza is built in three independent stages: the base ( choices), then the sauce ( choices), then the topping ( choices). No choice limits any other, so the multiplication principle applies.
Multiply the choices across the stages. Filling one box per stage,
Answer. There are different pizzas.
foundation2 marks(i) How many three-digit numbers can be formed from the digits if a digit may be repeated? (ii) How many can be formed if no digit may be repeated?Show worked solution →
Part (i): repetition allowed, so every box keeps all five choices. Each of the three positions can be any of the digits, independently of the others:
Part (ii): no repetition, so each box loses one option. The hundreds digit has choices; once it is used the tens digit has left, and the units digit has left:
This is the permutation .
Answer. (i) ; (ii) .
core3 marksIn how many ways can students stand in a queue if (i) there are no restrictions, and (ii) a particular student, Maya, must stand at the front?Show worked solution →
Part (i): arrange all distinct students. Filling the queue one place at a time gives , that is
Part (ii): deal with the restriction first by fixing the front. Place Maya at the front in way, then arrange the other students in the remaining places:
Check the fraction this should be. Maya is equally likely to occupy any of the places, so a fraction of all queues have her at the front: , which agrees.
Answer. (i) ; (ii) .
core3 marksSeven different books are arranged in a row on a shelf. In how many of these arrangements are two particular books (a dictionary and a thesaurus) next to each other?Show worked solution →
Glue the two particular books into one block. Treat the dictionary and thesaurus as a single item. There are then items to arrange in a row: the block, plus the other books.
Order the items. These can be arranged in
Order the two books inside the block. Within the block the dictionary and thesaurus can be in either order, ways. By the multiplication principle,
Answer. There are arrangements with the two books together.
exam3 marksA code is formed by writing different letters chosen from to , followed by different digits chosen from to . (Letters cannot repeat each other; digits cannot repeat each other.) How many such codes are possible?Show worked solution →
Count the letter block as an ordered selection without repetition. Three different letters in order from is
Count the digit block the same way. Two different digits in order from is
Multiply the two independent blocks. The letters and digits are chosen independently, so
Answer. There are possible codes.
exam4 marksFive-digit numbers are formed from the digits to with repetition allowed, but the first digit cannot be (so the number really has five digits). How many of these numbers contain at least one ?Show worked solution →
Count the total number of valid five-digit numbers. The first digit avoids , so it has choices; each of the other four digits has all choices:
Switch to the complement: count those with no at all. Now the first digit must avoid both and , leaving choices; each remaining digit avoids only , leaving choices:
Subtract the complement from the total. The numbers with at least one are everything except the numbers with no :
Why the complement is the right move. Counting "at least one " directly forces messy cases (exactly one , exactly two, and so on); the complement "no " is a single clean slot count, so subtracting is far safer.
Answer. of the numbers contain at least one .
Related dot points
- 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.
- 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.
- 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.
- 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.
- 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.