Counting Arrangements with Restrictions: Digits, Codes and n! | AQA GCSE Further Maths notes

Free preview: Counting Arrangements with Restrictions: Digits, Codes and n!

The Product Rule: Dice, Coins and Codes

AQA Level 2 Further Maths · OCR Additional Maths

How many different 4-digit PIN codes are there? You could try to list them, but you would be writing for days. Counting questions are about finding the total without listing. One rule does almost all the work.

The product rule

💡 The product rule

If one choice can be made in a ways, and then a second choice can be made in b ways, the two choices together can be made in a×b ways. With more choices, keep multiplying.

  • You met this before. Recap: see the note 'Counting Choices with the Product Rule', and for listing outcomes carefully, 'Listing Outcomes Systematically Without Missing Any'.
  • Example: a café offers 3 starters and 5 mains. A meal of one starter and one main can be chosen in 3×5=15 ways.
  • Why multiply, not add? Each of the 3 starters can go with each of the 5 mains. That is 3 groups of 5.

Dice and coins: the same number of choices every time

Counting Arrangements with Restrictions: Digits, Codes and n! diagram

What the picture shows

  1. The first die can land in 6 ways: 6 branches.
  2. Every one of those branches splits into 6 more for the second die, so 2 dice give 6×6=36 outcomes.
  3. Each extra die multiplies by 6 again. So n dice give 6n outcomes, and n coins give 2n.

Codes: are repeats allowed?

This is the first question to ask in every counting problem.

SituationChoices for each placeTotal
4-digit PIN, repeats allowed (digits 0 to 9)10, 10, 10, 10104=10000
4-digit PIN, no digit repeated10, 9, 8, 710×9×8×7=5040
3 letters A to Z, repeats allowed26, 26, 26263=17576
  • With repeats allowed, every place has the full set of choices.
  • With no repeats, each place has one fewer choice than the place before, because one digit has been used up.

👀 Watch me do it: count the 4-digit PINs that have at least one repeated digit

What I writeWhy I do it
All PINs: 104=10000"At least one repeat" has lots of cases (one pair, two pairs, three the same...). Counting them directly is messy.
No repeats: 10×9×8×7=5040The opposite of "at least one repeat" is "no repeats", which is easy to count.
10000−5040=4960Every PIN is in exactly one of the two groups, so subtract.

📝 "At least one": count the opposite

When a question says "at least one", count everything, count the ones with none, then subtract. It is quicker and safer.

✏️ YOUR TURN 1

Try this first:

Three dice are rolled. How many outcomes are there? How many of them have no six? How many have at least one six?

Answer:

  • All outcomes: 63=216.
  • No six: each die has 5 choices, 53=125.
  • At least one six: 216−125=91.

✏️ YOUR TURN 2

Try this first:

A code is 3 letters (A to Z, repeats allowed) followed by 2 digits (0 to 9, no repeats). How many codes are possible?

Answer:

  • Letters: 26×26×26=17576.
  • Digits: 10×9=90.
  • Total: 17576×90=1581840.

Arranging Things in a Row: n Factorial

How many ways can 5 different books stand in a row on a shelf? Think of 5 empty places.

  • The first place can take any of the 5 books.
  • Once that is chosen, the second place has 4 books left. Then 3, then 2, then 1.
  • Total: 5×4×3×2×1=120.

New notation: n!

n!=n×(n−1)×(n−2)×⋯×2×1

  • Read n! as "n factorial".
  • n different objects can be arranged in a row in n! ways.
  • 3!=6, 4!=24, 5!=120, 6!=720, 7!=5040. Factorials grow very fast.
  • Your calculator has a x! key. On a non-calculator paper, write the product out.

💡 In plain words

  • Factorial means: multiply the number by every whole number below it, down to 1.
  • It counts the orders you can put n different things in.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Number Skills and the Product Rule for Counting

  1. Fraction, Percentage and Ratio Skills Further Maths Takes for Granted
  2. Counting Arrangements with Restrictions: Digits, Codes and n!

What's inside for this topic

2 teacher notes, 34 practice questions, 32 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Fraction, Percentage and Ratio Skills Further Maths Takes for Granted

All AQA GCSE Further Maths topics · GCSE Further Maths