Lesson 13 of 35 · Quantitative Reasoning: word problems

Counting: arrangements, selections and restrictions

Count with the multiplication principle, permutations and combinations, identical items and restrictions, and know which tool each question needs.

About 22 minutes

In this lesson

  • Count outcomes of a sequence of choices with the multiplication principle.
  • Decide whether order matters, and use permutations or combinations accordingly.
  • Count arrangements with identical items, and handle "together", "apart" and "at least one".

The idea

The multiplication principle

If a task is a sequence of choices, with mm options for the first and nn for the second whatever the first was, the task can be done in m×nm \times n ways. Almost every counting question is this principle in some form. Draw one slot per choice, write the number of options in each slot, and multiply. A code of one letter from A to E followed by two different digits has 5×10×9=4505 \times 10 \times 9 = 450 possibilities: the second digit has only 9 options because it must differ from the first.

Fill restricted slots first

When some positions carry conditions, fill those slots first, because a condition can only shrink the options. For a four-digit number the first digit cannot be 0; for an even number the last digit must be even. When two conditions interact (the last digit might be 0, which affects the first digit), split into cases.

Order matters: permutations

Arranging rr of nn different items in order is a slot problem with shrinking options:

P(n,r)=n×(n−1)×⋯×(n−r+1)=n!(n−r)!P(n, r) = n \times (n-1) \times \cdots \times (n-r+1) = \frac{n!}{(n-r)!}

Arranging all nn items gives n!n!. Know the small factorials: 3!=63! = 6, 4!=244! = 24, 5!=1205! = 120, 6!=7206! = 720, 7!=50407! = 5040.

Order does not matter: combinations

Choosing rr of nn items when order is irrelevant (a committee, a hand of cards, toppings) counts each group once instead of r!r! times:

(nr)=n!r! (n−r)!\binom{n}{r} = \frac{n!}{r!\,(n-r)!}

Compute by cancelling, never by multiplying out factorials: (103)=10×9×83×2×1=120\binom{10}{3} = \frac{10 \times 9 \times 8}{3 \times 2 \times 1} = 120. Choosing rr to take is the same as choosing n−rn - r to leave, so (107)=(103)\binom{10}{7} = \binom{10}{3}.

To decide which applies, swap two of the chosen items. If the swap gives a different outcome (president and treasurer exchanged), order matters. If it gives the same outcome (two committee members exchanged), it does not.

Identical items

Arranging nn items of which aa are identical, bb are identical among themselves, and so on, gives

n!a! b! ⋯\frac{n!}{a!\,b!\,\cdots}

because swapping identical items does not create a new arrangement, so each distinct arrangement was counted a!×b!×⋯a! \times b! \times \cdots times among the n!n!.

Restrictions

  • Must be together. Glue the items into one block, arrange the block with the others, then multiply by the ways to arrange the items inside the block.
  • Must be apart. Count all arrangements and subtract those in which they are together.
  • At least one. Count all selections and subtract those with none. Counting directly ("pick one woman, then anyone") counts some groups more than once.

Keep the numbers small

Answer choices for counting questions are often far apart, so a sensible estimate of the size of the answer rules out several. Before multiplying, check whether a product such as 8×7×63×2\frac{8 \times 7 \times 6}{3 \times 2} cancels first: it is 8×7=568 \times 7 = 56.

Worked examples

Example 1: A committee with at least one woman

A committee of 3 is chosen from 5 men and 4 women. How many committees include at least one woman?

  1. Order does not matter, so use combinations. All committees: (93)=9×8×76=84\binom{9}{3} = \frac{9 \times 8 \times 7}{6} = 84.

  2. Committees with no woman: (53)=10\binom{5}{3} = 10. With at least one woman: 84−10=7484 - 10 = 74.

  3. Check directly by cases. One woman: 4×(52)=404 \times \binom{5}{2} = 40. Two women: (42)×5=30\binom{4}{2} \times 5 = 30. Three women: (43)=4\binom{4}{3} = 4. Total 40+30+4=7440 + 30 + 4 = 74.

Answer

74 committees. Choosing one woman and then any two of the other 8 gives 4×28=1124 \times 28 = 112, which counts a committee with two women twice.

Example 2: Even four-digit numbers with different digits

How many four-digit numbers have four different digits and are even?

  1. The last digit must be even and the first digit cannot be 0. Because 0 is even, split on the last digit.

  2. Last digit 0: the first digit has 9 options (1 to 9), then 8 and 7 for the middle two: 9×8×7=5049 \times 8 \times 7 = 504.

  3. Last digit 2, 4, 6 or 8 (4 options): the first digit has 8 options (not 0, not the last digit), then 8 and 7 for the middle: 4×8×8×7=17924 \times 8 \times 8 \times 7 = 1792.

  4. Total: 504+1792=2296504 + 1792 = 2296. Check by complement: all four-digit numbers with different digits number 9×9×8×7=45369 \times 9 \times 8 \times 7 = 4536; odd ones have 5 choices of last digit, then 8×8×78 \times 8 \times 7, giving 2240; and 4536−2240=22964536 - 2240 = 2296.

Answer

  1. Treating the last-digit choice as 5 options in a single case ignores that a last digit of 0 leaves 9, not 8, choices for the first digit.

Example 3: Books with fixed ends

Six different books are placed in a row on a shelf. Two of them, an atlas and a dictionary, must be at the two ends. How many arrangements are possible?

  1. Fill the restricted slots first: the atlas and dictionary can occupy the ends in 22 orders.

  2. The other four books fill the four middle slots in 4!=244! = 24 ways.

  3. Total: 2×24=482 \times 24 = 48. Check as a fraction: of all 720720 arrangements, the chance the two ends hold exactly these two books is 26×15=115\frac{2}{6} \times \frac{1}{5} = \frac{1}{15}, and 72015=48\frac{720}{15} = 48.

Answer

48 arrangements. Forgetting that the atlas and dictionary can swap ends gives 24.

Common traps

  • Using order when it does not matter

    Picking 3 people for a committee is not 9×8×79 \times 8 \times 7; that counts each committee 3!=63! = 6 times. Apply the swap test: if exchanging two choices gives the same outcome, divide by the arrangements of the chosen items.

  • Counting "at least one" directly

    "Choose one woman, then anyone" overcounts groups with more than one woman. Use all selections minus the selections with none, or split into exact cases.

  • The leading zero

    A four-digit number cannot start with 0, and 0 is also an even digit. When both facts matter, split into cases on whether 0 is used in the restricted slot.

  • Forgetting the order inside a block

    When items must sit together, the block can be arranged internally too. Two people together give a factor of 2; three give 3!=63! = 6.

Check yourself

Answer each question before you open its answer.

Question 1: Building a sandwich

Problem Solving

A café offers 4 kinds of bread, 5 fillings and 3 sauces. A sandwich is made with one bread, two different fillings and one sauce. How many different sandwiches are possible?

  1. A.12
  2. B.60
  3. C.120
  4. D.240
  5. E.300
Show the answer

Answer: C. 120

Working

Bread: 4 ways. Two different fillings, order irrelevant: (52)=10\binom{5}{2} = 10. Sauce: 3 ways. Total 4×10×3=1204 \times 10 \times 3 = 120. Check: ordered fillings give 5×4=205 \times 4 = 20, and dividing by the 2 orders gives 10.

Why the other options are wrong

  • A. 4×34 \times 3 leaves the fillings out of the count altogether.
  • B. 4×5×34 \times 5 \times 3 chooses only one filling.
  • D. 4×5×4×34 \times 5 \times 4 \times 3 counts the two fillings in order, so each pair is counted twice.
  • E. 4×5×5×34 \times 5 \times 5 \times 3 allows the same filling twice and counts the fillings in order.

What carries over

Multiply across independent choices, and use a combination for any choice where order does not matter.

Question 2: Flags with repeated colours

Problem Solving

Seven flags are hung in a row: 3 identical red flags, 2 identical blue flags and 2 identical green flags. How many different colour sequences are possible?

  1. A.24
  2. B.210
  3. C.420
  4. D.840
  5. E.5,040
Show the answer

Answer: B. 210

Working

7!3! 2! 2!=50406×2×2=504024=210\frac{7!}{3!\,2!\,2!} = \frac{5040}{6 \times 2 \times 2} = \frac{5040}{24} = 210. Second route with combinations: choose the red positions, (73)=35\binom{7}{3} = 35, then the blue ones from the remaining four, (42)=6\binom{4}{2} = 6; green fills the rest, and 35×6=21035 \times 6 = 210.

Why the other options are wrong

  • A. 24 is 3!×2!×2!3! \times 2! \times 2!, the number to divide by, not the answer.
  • C. This divides by 3!3! and one 2!2! only, forgetting that the flags of a second colour are also identical.
  • D. This divides only by 3!3! for the red flags.
  • E. 7!7! treats all seven flags as different.

What carries over

Divide by the factorial of each group of identical items.

Question 3: Two friends kept apart

Problem Solving

Five friends, including Ana and Ben, stand in a row for a photo. In how many of the arrangements are Ana and Ben not next to each other?

  1. A.24
  2. B.48
  3. C.60
  4. D.72
  5. E.96
Show the answer

Answer: D. 72

Working

All arrangements: 5!=1205! = 120. Together: treat Ana and Ben as one block, so 4!=244! = 24 arrangements, times 2 for their order, giving 48. Apart: 120−48=72120 - 48 = 72. Check directly: of the (52)=10\binom{5}{2} = 10 pairs of positions, 4 are adjacent and 6 are not; 6×2×3!=726 \times 2 \times 3! = 72.

Why the other options are wrong

  • A. 24 is the count with Ana and Ben together before allowing for their two orders inside the pair, and it answers the opposite question.
  • B. 48 is the number of arrangements in which they are next to each other.
  • C. This assumes half the arrangements keep them apart; adjacent pairs are fewer than half.
  • E. This subtracts 24 rather than 48, forgetting that Ana and Ben can stand in either order when together.

What carries over

For "apart", count all arrangements and subtract the "together" ones, remembering the order inside the block.

Key points

  • Draw a slot for each choice and multiply; fill restricted slots first.

  • Swap test: if swapping two choices changes nothing, use combinations.

  • Divide by the factorial of each group of identical items.

  • Apart = all − together; at least one = all − none.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Practise this topic

Fresh questions on this skill, with worked explanations. Practice needs a Single Exam Pass or Plus.