Maths4UBETA

Mixed constructions and conditional counting probabilities

Combine choosing and ordering, match physical sample spaces, and handle overlapping restrictions before conditioning.

Try the quick check →
Lesson 5 of 5

Section 1 of 5 · Core · about 10 min

What does one finished outcome record?

A mixed counting question is a sequence of decisions. Before choosing a formula, write one sentence defining a finished outcome: a set of members, members with named jobs, a string of visible letters, or an assignment to fixed positions. Two constructions give the same outcome exactly when every detail the question records is the same.

For each construction stage, record the choices still available and any restriction that changes them. Multiplication counts complete construction routes when every stage has the stated number of choices for each permitted earlier route. If that number changes, split into cases or add the branch counts.

Worked example

A temporary leader counts every committee three times

Choose a three-person committee from eight distinct people. One proposed method first chooses a temporary leader, then two other members. The final committee has no leader. How many committees are there, and why must the proposed count be divided?

  1. Choosing a temporary leader and then two members gives

    8(72)=168.8\binom{7}{2}=168.

    This counts a committee together with a marked member. It does not yet count unmarked committees.

  2. Take one committee, for example {A,B,C}\{A,B,C\}. The construction can mark A, B or C. Every three-person committee has exactly three such marked versions.

  3. N=8(72)3=56=(83).N=\frac{8\binom{7}{2}}{3}=56=\binom{8}{3}.

    The divisor is the number of temporary leader choices inside each finished committee. If an actual leader were required as part of the final outcome, the answer would remain 168168.

Your turn

Choose four people from nine. First a temporary organiser is chosen, then three other members. Find the number of construction routes, the number of final committees when the organiser is forgotten, and the number of outcomes if the organiser is a real recorded role.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

When a temporary label can be attached only to eligible members, its multiplicity may depend on the final committee. Removing an actual role and adding a role are opposite operations, but neither is always multiplication or division by the committee size.

Worked example

Eligible leaders create unequal construction multiplicities

Five seniors and three juniors are available. Choose a three-person committee containing at least one senior. Compare the number of committees with the number of outcomes in which a senior chair is also recorded.

  1. Split by the number jj of seniors. The cases j=1,2,3j=1,2,3 are disjoint and cover every permitted committee:

    N1=(51)(32)=15,N2=(52)(31)=30,N3=(53)(30)=10.N_1=\binom{5}{1}\binom{3}{2}=15,\quad N_2=\binom{5}{2}\binom{3}{1}=30,\quad N_3=\binom{5}{3}\binom{3}{0}=10.
  2. Ncommittees=15+30+10=55.N_{\text{committees}}=15+30+10=55.

    As a check, remove the sole all-junior committee from all (83)=56\binom{8}{3}=56 committees.

  3. A committee with jj seniors has jj possible senior chairs. Recording the chair gives

    Nchair recorded=1(15)+2(30)+3(10)=105.N_{\text{chair recorded}}=1(15)+2(30)+3(10)=105.
  4. Choosing the senior chair first also gives 5(72)=1055\binom{7}{2}=105. Forgetting that chair does not have one common multiplicity: different committees occur once, twice or three times. Dividing 105105 by three would therefore not recover the 5555 committees.

Select three people from five seniors and three juniors, with at least one senior.

Effect of recording a senior chair

SeniorsCommitteesChair optionsOutcomes with chair
11(51)(32)=15\binom{5}{1}\binom{3}{2}=15111515
22(52)(31)=30\binom{5}{2}\binom{3}{1}=30226060
33(53)(30)=10\binom{5}{3}\binom{3}{0}=10333030

Without a recorded chair there are 15+30+10=5515+30+10=55 committees. With a recorded chair there are 15+60+30=10515+60+30=105 outcomes.

A senior chair can be chosen in one, two or three ways inside different committees. Keep the composition cases visible before forgetting or recording the role.

Section 2 of 5 · Core · about 10 min

Which selected members can fill each role?

Separate membership from role assignment. If a selected team has jj members eligible for one recorded job, that team contributes jj outcomes. Two different eligible members filling two different jobs contribute j(j−1)j(j-1). A role name distinguishes its holder: exchanging a captain and deputy normally changes the outcome.

If eligibility depends on categories, count each possible composition before assigning the jobs. For ss seniors, tt juniors and a team of size rr, a case with jj seniors has

(sj)(tr−j)\binom{s}{j}\binom{t}{r-j}

memberships, where max⁡(0,r−t)≤j≤min⁡(s,r)\max(0,r-t)\le j\le\min(s,r) and all quantities are integers. A senior captain requires j≥1j\ge1; two distinct senior officers require j≥2j\ge2.

Worked example

The number of eligible role assignments depends on composition

Four seniors and three juniors form a four-person team. The team must contain at least two seniors. A captain and a different deputy are chosen from its senior members, and the two roles are recorded. Count the outcomes.

  1. Let jj be the number of seniors in the team. Its possible values are 2,3,42,3,4. Choose its members, then fill the two different roles:

    Nj=(4j)(34−j) j(j−1).N_j=\binom{4}{j}\binom{3}{4-j}\,j(j-1).

    The factor j(j−1)j(j-1) chooses the captain and then a different deputy from the selected seniors.

  2. N2=(42)(32)(2)(1)=36,N_2=\binom{4}{2}\binom{3}{2}(2)(1)=36,N3=(43)(31)(3)(2)=72,N_3=\binom{4}{3}\binom{3}{1}(3)(2)=72,N4=(44)(30)(4)(3)=12.N_4=\binom{4}{4}\binom{3}{0}(4)(3)=12.
  3. N=36+72+12=120.N=36+72+12=120.

    The role choices vary with the senior composition, so they belong inside the case count.

  4. A second complete construction chooses the ordered senior captain and deputy first, in 4⋅34\cdot3 ways, and then chooses any two of the five remaining people:

    4⋅3(52)=120.4\cdot3\binom{5}{2}=120.

    Every resulting team contains the two required seniors and has one recorded captain and deputy; it is counted exactly once.

Your turn

Three seniors and four juniors form a three-person team with a senior captain and a different senior deputy. Count the outcomes with exactly two senior team members, those with exactly three senior team members, and the total.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Named exclusions must be tested at the correct level. “A and B cannot both belong to the team” removes memberships. “A cannot be deputy” removes role assignments, while A may still be a member. A particular member fixed in a job is already chosen and must be removed from the pool for later distinct roles.

Section 3 of 5 · Core · about 12 min

Are the cases disjoint, and have all overlaps been handled?

Add cases only when each valid outcome belongs to exactly one case, or explicitly correct their overlaps. Categories such as the number of seniors or the final digit often provide a clean partition. Conditions such as “AB adjacent” and “CD adjacent” can both be true in the same arrangement.

N(E∪F)=N(E)+N(F)−N(E∩F).N(E\cup F)=N(E)+N(F)-N(E\cap F).N(exactly one of E,F)=N(E)+N(F)−2N(E∩F).N(\text{exactly one of }E,F)=N(E)+N(F)-2N(E\cap F).

The first formula retains the overlap once; the second excludes it completely.

Worked example

Exactly one restriction requires removing the overlap twice

Seven distinct people A, B, C, D, E, F and G sit in a straight line. Count arrangements in which at least one of the pairs AB and CD is adjacent, and arrangements in which exactly one of those pairs is adjacent. Each pair may appear in either order.

  1. Let EE mean that A and B are adjacent and FF mean that C and D are adjacent. Treating one pair as a block gives

    N(E)=2⋅6!=1440,N(F)=1440.N(E)=2\cdot6!=1440,\qquad N(F)=1440.
  2. For both events, use two blocks and the three remaining people. Each block has two internal orders:

    N(E∩F)=22⋅5!=480.N(E\cap F)=2^2\cdot5!=480.
  3. At least one means the union. The sum of the individual counts includes the overlap twice, so subtract it once:

    N(E∪F)=1440+1440−480=2400.N(E\cup F)=1440+1440-480=2400.
  4. Exactly one excludes the overlap completely. Count E only and F only:

    N(exactly one)=(1440−480)+(1440−480)=1920.N(\text{exactly one})=(1440-480)+(1440-480)=1920.

    Equivalently subtract twice the overlap from N(E)+N(F)N(E)+N(F). This statement says nothing about whether other people happen to sit adjacent.

Your turn

Six distinct people A, B, C, D, E and F sit in a line. Let E mean A and B are adjacent, and let F mean C and D are adjacent. Each pair may appear in either order. Count arrangements satisfying both events, at least one event, and exactly one event.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Different restrictions can also change the size of later choice pools. For digit numbers, selecting a final zero removes the leading-zero issue automatically; a different last digit leaves zero in the remaining pool. For physical rows of seats, an adjacent block must stay inside one row. Case boundaries should follow the point where the construction rule actually changes.

Worked example

Split a digit construction where the leading-zero rule changes

How many four-digit numbers can be made from 0,1,2,3,4,50,1,2,3,4,5, without repeating any digit, if the number is divisible by five and contains at least one of the digits two and four?

  1. A multiple of five ends in zero or five. These are disjoint final-digit cases. Count each case separately because zero remains available for the first position only in the second case.

  2. Last digit zero. Fill the first three positions from the five nonzero digits: 5⋅4⋅3=605\cdot4\cdot3=60. Numbers containing neither two nor four must use the three digits one, three and five in those positions, giving 3!=63!=6.

    N0=60−6=54.N_0=60-6=54.
  3. Last digit five. The first digit has four choices, one to four. Then the two middle positions have four and three choices:

    N5,all=4⋅4⋅3=48.N_{5,\text{all}}=4\cdot4\cdot3=48.
  4. If neither two nor four appears, the first three positions use zero, one and three. There are 3!−2!=43!-2!=4 valid orders after removing the two with leading zero.

    N5=48−4=44.N_5=48-4=44.
  5. N=N0+N5=54+44=98.N=N_0+N_5=54+44=98.

    The condition “at least one” includes numbers containing both two and four. Subtracting the complementary case avoids counting those twice.

Your turn

Using the digits 0,1,2,3,40,1,2,3,4 without repetition, count three-digit numbers divisible by five. Then count those that also contain the digit one.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 4 of 5 · Core · about 11 min

Which outcomes are equally likely in the stated experiment?

Counting and probability use the same model only when the elementary outcomes being counted are equally likely. A random arrangement of distinct people, a uniform subset of physical tiles, and a uniform selection among different visible strings are different experiments.

P(E)=N(E)N(Ω),P(E∣F)=N(E∩F)N(F),N(F)>0.P(E)=\frac{N(E)}{N(\Omega)},\qquad P(E\mid F)=\frac{N(E\cap F)}{N(F)},\quad N(F)>0.

Both numerator and denominator must count outcomes of the same kind. The condition FF becomes the new sample space; impose EE as an additional restriction inside it.

Worked example

Visible outcomes need not be equally likely

A bag contains four physical tiles labelled A1,A2,B,CA_1,A_2,B,C; the first two both display the letter A. Two tiles are selected uniformly from all unordered physical pairs. Find the probability that both display A, given that at least one displays A.

  1. There are (42)=6\binom{4}{2}=6 equally likely physical pairs. Grouping them by their visible letters gives:

    Visible lettersPhysical pair count
    AA11
    AB22
    AC22
    BC11
  2. The condition excludes only the pair {B,C}\{B,C\}. Five physical pairs remain equally likely; one is {A1,A2}\{A_1,A_2\}.

    P(AA∣at least one A)=15.P(\text{AA}\mid\text{at least one A})=\frac{1}{5}.
  3. Counting only the three permitted visible types AA, AB and AC and using 13\frac{1}{3} would change the random experiment. AB and AC each have two physical representations, while AA has one.

  4. If a different experiment explicitly chose uniformly from the visible types AA, AB, AC and BC, then conditioning on an A would give 13\frac{1}{3}. The wording defining the random choice decides which probability model applies.

Choose an unordered physical pair uniformly from A1,A2,B,CA_1,A_2,B,C. Each physical pair has probability 16\frac{1}{6}.

Visible types and the physical pairs that produce them

Visible typePhysical pairsCount
AA\mathrm{AA}{A1,A2}\{A_1,A_2\}11
AB\mathrm{AB}{A1,B}, {A2,B}\{A_1,B\},\ \{A_2,B\}22
AC\mathrm{AC}{A1,C}, {A2,C}\{A_1,C\},\ \{A_2,C\}22
BC\mathrm{BC}{B,C}\{B,C\}11

Given at least one A, there are five eligible pairs, so P(AA∣at least one A)=15P(\mathrm{AA}\mid\text{at least one A})=\frac{1}{5}.

Each physical tile pair has the same probability. Visible letter types inherit the number of physical pairs producing them. Conditioning removes the BC pair, leaving five equally likely physical pairs.

Your turn

A bag holds three red tiles and two blue tiles; the five physical tiles are distinct. Two tiles are selected uniformly from all unordered physical pairs. Count the red-red, red-blue and blue-blue pairs. Given that the selected tiles have the same colour, find the probability that they are red.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

The same issue appears when forming committees. Choosing a senior chair uniformly, then choosing the remaining members uniformly, makes the chair-recorded routes equally likely. After the chair is forgotten, a committee with more eligible senior chairs is more likely to appear. Choosing uniformly among all admissible committees would be a different experiment.

For the earlier five-senior, three-junior example, uniformly choosing an admissible committee gives probability 3055=611\frac{30}{55}=\frac{6}{11} of exactly two seniors. Uniformly choosing a senior chair and two other members gives 2(30)105=47\frac{2(30)}{105}=\frac{4}{7} instead. State which random choice the question specifies.

Section 5 of 5 · Core · about 9 min

Which integer values satisfy the original counting model?

When the number of available objects is unknown, first translate the wording into a count or a ratio of counts. Record the minimum capacity and integer domain before cancelling factorials. A probability equation additionally requires a positive total or conditioning count.

Factorial ratios can make the algebra short:

(nr+1)(nr)=n−rr+1,n,r∈Z,0≤r<n.\frac{\binom{n}{r+1}}{\binom{n}{r}}=\frac{n-r}{r+1},\qquad n,r\in\mathbb{Z},\quad0\le r<n.

The denominator is then nonzero. Other inverse questions may produce several algebraic roots; preserve them until their integer, capacity and original-model conditions are checked.

Worked example

Recover an integer parameter and replay the original count

From nn distinct people, the number of three-person committees is twice the number of two-person committees. Find nn, assuming n≥3n\ge3.

  1. Translate the given comparison into counts:

    (n3)=2(n2),n∈Z,n≥3.\binom{n}{3}=2\binom{n}{2},\qquad n\in\mathbb{Z},\quad n\ge3.
  2. n(n−1)(n−2)6=2⋅n(n−1)2.\frac{n(n-1)(n-2)}{6}=2\cdot \frac{n(n-1)}{2}.

    Because n≥3n\ge3, the common factor n(n−1)n(n-1) is nonzero and can be cancelled.

  3. n−26=1,n=8.\frac{n-2}{6}=1,\qquad n=8.
  4. Check the original model:

    (83)=56,2(82)=2(28)=56.\binom{8}{3}=56,\qquad2\binom{8}{2}=2(28)=56.

    The value is an admissible integer and satisfies the original comparison. If the multiplied polynomial is solved without respecting the stated domain, the roots zero and one can also appear; they do not describe this problem.

Your turn

For n≥4n\ge4 distinct people, the number of four-person committees is three times the number of three-person committees. Find nn, then give the four-person committee count as a check.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

A reliable final ledger records the outcome, the construction choices, every case restriction, the overcount multiplicity if one exists, and the probability denominator when needed. This single habit connects arrangements, selections, role assignments and conditional counting without relying on isolated formula keywords.

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Membership determines how many orders are permitted

3 marks

Choose 4 of 7 different objects and arrange them in a line. If A is chosen, A must be first. Count the A-included case, the A-absent case and the total.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Roles change the weighting of committees

A panel of four is selected from three distinct seniors and five distinct juniors. At least one senior must be selected. The panel has a senior chair and a secretary who is any other panel member. Count the possible panels when roles are ignored, and then the complete outcomes recording both the panel and its two role holders. A complete outcome is selected uniformly from the latter set. Find the probability that its panel contains exactly two seniors.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

Use the last digit and the zero position as separate cases

A four-digit number is formed using four different digits from 0,1,2,3,4,5,60,1,2,3,4,5,6. The first digit cannot be zero. Count the even numbers, the even numbers containing zero, and all allowed numbers containing zero. A number is selected uniformly from all allowed four-digit numbers. Find the probability that it is even given that it contains zero.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

Two repeated pairs produce an overlap

All six letters of AABBCD are arranged in a line. An outcome is a visible string, so the two As are indistinguishable and the two Bs are indistinguishable. Count the strings in which the As are adjacent and those in which both the As and the Bs are adjacent. A distinct visible string is selected uniformly. Find the probability that the Bs are adjacent given that the As are not adjacent.

Enter the value on its own or write a = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

A named exclusion is applied inside the category condition

A committee of four is chosen from four distinct arts students and five distinct science students. It must contain at least one student from each category. A is one specified arts student and B is one specified science student. Count all committees satisfying the category rule and those also satisfying the rule that A and B are not both selected. A committee is selected uniformly from the committees satisfying both rules. Find the probability that A is selected.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

State the integer domain before cancelling

There are nn distinct students, where n≥3n\ge3 is an integer. The number of ways to assign three different students to the distinct roles of chair, secretary and treasurer is four times the number of ways to choose an unordered pair of students. Find nn, the number of unordered pairs, and the number of three-role assignments.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Selection changes the order count

Choose and order two of five speakers. If A is chosen, A must speak first. How many programmes are possible?

Enter an exact number, for example 3/2 or 2-sqrt(3).

Count physical outcomes

Choose two counters from three red and two blue counters, with all physical pairs equally likely. Find the probability both are red.

Enter an exact value or round to 3 significant figures.

Correct the overlap

Four different pupils stand in line. Count the arrangements in which X is adjacent to Y or to Z, including both.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Use the conditional sample space

Choose two from two boys and three girls. Given at least one girl was chosen, find the probability both selected pupils are girls.

Enter an exact value or round to 3 significant figures.

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Start after this lesson

Team composition controls the two eligible roles 10 marks

A team of five is selected from four distinct musicians and five distinct athletes. Every person belongs to exactly one category. The team has a musician captain and an athlete deputy. A complete outcome records the selected members, captain and deputy; all complete outcomes are equally likely. Count all complete outcomes and those with at least three athletes. M is one specified musician and A is one specified athlete. Count the complete outcomes in which M and A are not both selected. Given this last condition, find the probability that the team contains exactly two musicians.

Hint

A team with kk musicians has k(5−k)k(5-k) captain-deputy assignments. Use composition cases when imposing membership conditions. For the unrestricted total, choose the two role holders first.

Worked solution
  1. Choose the musician captain, athlete deputy and three other members:

    N(Ω)=4⋅5(73)=700.N(\Omega)=4\cdot5\binom{7}{3}=700.
  2. At least three athletes means one or two musicians, since the captain must be a musician. The disjoint counts are

    N1=(41)(54)⋅1⋅4=80,N_1=\binom{4}{1}\binom{5}{4}\cdot1\cdot4=80,N2=(42)(53)⋅2⋅3=360.N_2=\binom{4}{2}\binom{5}{3}\cdot2\cdot3=360.

    The requested count is 80+360=44080+360=440.

  3. For M and A both selected, let kk be the musician count. Select the other members and then the roles:

    N(M,A both)=∑k=14(3k−1)(44−k)k(5−k).N(M,A\text{ both})=\sum_{k=1}^{4}\binom{3}{k-1}\binom{4}{4-k}k(5-k).

    The four terms are 16,108,72,416,108,72,4, giving 200200 complete outcomes. Therefore

    N(F)=700−200=500.N(F)=700-200=500.
  4. Of the 360360 outcomes with two musicians, the k=2k=2 term counts 108108 containing both specified people. Thus

    N(two musicians∩F)=360−108=252.N(\text{two musicians}\cap F)=360-108=252.
  5. P(two musicians∣F)=252500=63125.P(\text{two musicians}\mid F)=\frac{252}{500}=\frac{63}{125}.

    Different team compositions permit different numbers of role assignments. Counting unweighted teams would describe a different random experiment.

Marking guidance
  • 1 mark: choose the two eligible role holders first for the unrestricted count.
  • 1 mark: obtain 700 complete outcomes.
  • 1 mark: split the at-least-three-athletes event into one- and two-musician cases.
  • 1 mark: include the role multiplicities and obtain 440.
  • 1 mark: express the both-specified-members count by team composition.
  • 1 mark: obtain the four contributions 16, 108, 72 and 4.
  • 1 mark: subtract their sum to obtain the conditioning count 500.
  • 1 mark: exclude 108 from the two-musician count to obtain 252.
  • 1 mark: divide counts referring to the same complete-outcome sample space.
  • 1 mark: obtain the simplified conditional probability.
A zero, an even ending and a moving odd block 9 marks

A code consists of six different digits chosen from 0,1,2,3,4,5,6,70,1,2,3,4,5,6,7. Its first digit is nonzero and it contains exactly two odd digits. Count all such codes and those whose last digit is even. Among codes whose last digit is even, count those in which the two odd digits are adjacent. A code is selected uniformly from all codes satisfying the original rules. Find the probability that its odd digits are adjacent given that its last digit is even.

Hint

Exactly two odd digits forces all four even digits, including zero, to be used. Choose the odd pair first. For the ending restriction, separate a zero ending from a nonzero even ending. An odd-digit block has two internal orders.

Worked solution
  1. Choose the odd pair in (42)=6\binom{4}{2}=6 ways. For each pair, all six chosen digits are distinct, with zero present. Exclude arrangements beginning with zero:

    N(Ω)=(42)(6!−5!)=6(600)=3600.N(\Omega)=\binom{4}{2}(6!-5!)=6(600)=3600.
  2. Fix a chosen odd pair. If the last digit is zero, the remaining five nonzero digits have 5!=1205!=120 orders. If the last digit is a nonzero even digit, choose it in three ways; the first digit then has four nonzero choices and the remaining four positions have 4!4! orders:

    N(E)=6(120+3⋅4⋅4!)=6(408)=2448.N(E)=6\bigl(120+3\cdot4\cdot4!\bigr)=6(408)=2448.
  3. Now join the two odd digits into one block, retaining their two internal orders. For each chosen odd pair and a zero ending, the remaining four units have 4!4! orders, contributing 2⋅4!=482\cdot4!=48.

  4. For each of the three nonzero even endings, the four remaining units include zero and the odd block. Their permissible orders are 4!−3!4!-3!, since zero cannot be first. With two internal block orders this contributes 3⋅2(4!−3!)=1083\cdot2(4!-3!)=108.

    N(J∩E)=6(48+108)=936.N(J\cap E)=6(48+108)=936.
  5. P(J∣E)=9362448=1334.P(J\mid E)=\frac{936}{2448}=\frac{13}{34}.

    The block can occupy different positions but cannot end the code, because the ending is even. The two ending cases cover every valid construction once.

Marking guidance
  • 1 mark: infer that all four even digits must be included and choose the odd pair.
  • 1 mark: remove leading-zero arrangements and obtain 3600.
  • 1 mark: split even endings into zero and nonzero cases.
  • 1 mark: obtain the correct contributions and total 2448.
  • 1 mark: introduce the odd block with its two internal orders.
  • 1 mark: obtain the zero-ending block contribution 48 per odd pair.
  • 1 mark: exclude a leading zero in the nonzero-ending block case.
  • 1 mark: combine the cases and odd-pair choices to obtain 936.
  • 1 mark: use the even-ending denominator and simplify the conditional probability.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work