Maths4UBETA

Repeated symbols, blocks and gap methods

Count distinct visible patterns and use gaps to separate identical objects or enforce exactly one adjacent pair.

Try the quick check →
Lesson 2 of 5

Section 1 of 5 · Core · about 6 min

Why do repeated symbols make the count smaller?

State what makes two outcomes different. Swapping two physical tiles with the same visible letter does not change a visible string. Temporarily label repeated copies, count labelled rows, then divide by the constant number of labellings for each visible row.

If nn symbols have multiplicities m1,…,msm_1,\ldots,m_s, their number of full visible arrangements is

n!m1!m2!⋯ms!,m1+⋯+ms=n.\frac{n!}{m_1!m_2!\cdots m_s!},\qquad m_1+\cdots+m_s=n.

All multiplicities are nonnegative integers, and 0!=10!=1. Use this formula for the specified full multiset; do not apply it unchanged after fixing or omitting a symbol.

Temporarily distinguish the three identical copies of AA using subscripts.

Six labellings of the same visible row

LabellingRow
11A1 B A2 C A3 D EA_1\,B\,A_2\,C\,A_3\,D\,E
22A1 B A3 C A2 D EA_1\,B\,A_3\,C\,A_2\,D\,E
33A2 B A1 C A3 D EA_2\,B\,A_1\,C\,A_3\,D\,E
44A2 B A3 C A1 D EA_2\,B\,A_3\,C\,A_1\,D\,E
55A3 B A1 C A2 D EA_3\,B\,A_1\,C\,A_2\,D\,E
66A3 B A2 C A1 D EA_3\,B\,A_2\,C\,A_1\,D\,E

All six rows become A B A C A D EA\,B\,A\,C\,A\,D\,E when the labels are removed. Each visible row has this multiplicity, giving 7!3!=840\frac{7!}{3!}=840.

Each visible arrangement of AAA and four distinct other letters has exactly six temporary A-labellings. Divide the labelled count by that constant multiplicity.

Worked example

Count visible rows rather than temporary labels

Arrange A, A, A, B, C, D and E in a row, treating the three As as identical. Find the number of different visible strings.

  1. Temporarily distinguish the As as A1,A2,A3A_1,A_2,A_3. All seven labelled objects have 7!=50407!=5040 arrangements.

  2. Every visible string has exactly 3!=63!=6 labelled versions, obtained by permuting the labels on its three A positions. This multiplicity does not depend on the positions.

  3. N=7!3!=840.N=\frac{7!}{3!}=840.

    No factorial is needed for B, C, D or E because each appears once.

Your turn

Arrange the seven symbols X, X, Y, Y, Z, Z and W in a row. Copies of the same letter are indistinguishable. How many different visible strings are possible?

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

Section 2 of 5 · Core · about 11 min

How do fixed positions and number rules change the multiset?

Fix the required visible symbols, subtract those copies from the available multiplicities, then arrange the remainder. If a requirement uses more copies than exist, its count is zero. There is no extra factor for choosing which identical copy occupies a fixed place.

Worked example

Reduce the multiplicities after fixing positions

Use all of A, A, A, B, C, D and E. How many visible strings start with A? How many have A at both ends?

  1. Fixing A first leaves two As and four distinct other symbols:

    N(first A)=6!2!=360.N(\text{first A})=\frac{6!}{2!}=360.
  2. Fixing A at both ends leaves one A and B, C, D, E. All five remaining symbols are distinct:

    N(both ends A)=5!=120.N(\text{both ends A})=5!=120.
  3. There is no factor of three for choosing which A is first. The visible outcome does not distinguish the identical copies.

For a number using all given digits, subtract strings with a leading zero. In that subtraction, remove one zero first; the remaining zero multiplicity is one smaller. If an ending is also restricted, split by its digit and update the first-digit calculation within each case. Codes may allow a leading zero if stated.

Worked example

Exclude leading zero with the reduced multiset

Form seven-digit numbers using all digits 0,0,1,2,2,3,40,0,1,2,2,3,4. Count the valid numbers and those beginning with 22. If a valid number is selected uniformly, find the probability it begins with 22.

  1. Ignoring the first-digit restriction, the distinct strings number

    7!2! 2!=1260.\frac{7!}{2!\,2!}=1260.
  2. Fixing one zero first leaves one zero, two twos and the other three distinct digits. The invalid strings number

    6!2!=360.\frac{6!}{2!}=360.

    Hence there are 1260−360=9001260-360=900 valid seven-digit numbers.

  3. Fixing one two first leaves two zeros, one two and three other distinct digits:

    N(first two)=6!2!=360.N(\text{first two})=\frac{6!}{2!}=360.
  4. P(first two)=360900=25.P(\text{first two})=\frac{360}{900}=\frac{2}{5}.

    The denominator contains valid seven-digit numbers, not strings with a leading zero.

Your turn

Use all six digits 0,0,1,1,4,40,0,1,1,4,4 to form six-digit numbers. Copies of each digit are indistinguishable. How many numbers are possible? If one is selected uniformly, what is the probability that its first digit is 11?

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

Enter an exact value or round to 3 significant figures.

Exact separation of two identical symbols: if exactly gg objects must lie between two Xs, their positions differ by g+1g+1. Choose the left position, place both identical Xs, then arrange the remaining multiset. There is no factor of two for swapping the Xs. For example, with XX and distinct B, C, D, exactly one object between the Xs gives three position pairs and 3!3! remaining orders, hence 3⋅3!=183\cdot3!=18 strings.

Alternating categories: choose a permitted category pattern first, then fill each category’s places with its own distinct or repeated objects. Category counts differing by more than one make strict alternation impossible. For equal positive counts, either category may start; when counts differ by one, the larger category must occupy both ends.

Relative order with repeats: interpret the statement literally. For “all As before all Bs”, choose the positions occupied by As and Bs, fill those positions with all As followed by all Bs, and arrange the remaining symbols with their multiplicities. For A, A, B, B, C, the AB\frac{A}{B} subsequence is AABB; inserting C in its five possible places gives five strings. By contrast, “the first A appears before the first B” permits other AB\frac{A}{B} interleavings. For A, A, B, B, B, the first condition allows only AABBB, while the second fixes the first letter as A and permits 4!3!=4\frac{4!}{3!}=4 strings. These are different events, so do not automatically divide by two.

Section 3 of 5 · Core · about 11 min

How do blocks and overlapping conditions combine?

When a specified group must be consecutive, collapse it to one unit, arrange the units, then arrange the contents of each block. Repeated symbols inside a block reduce its internal orders. Repeated units outside a block reduce the external orders only when those whole units are indistinguishable.

For integers 1≤k≤n1\le k\le n, one prescribed group of kk objects forming a block among nn distinct objects, with no other restriction, gives (n−k+1)! k!(n-k+1)!\,k!. With repeated symbols, recompute the external unit count and each internal multiset count separately. A prescribed internal order contributes a factor of one.

Worked example

Count a repeated block and two separate required blocks

(a) Arrange A, A, A, B, C, D and E with all three As together. (b) In a separate problem, arrange A, A, B, C, C, D and E so that A, A, B form one consecutive block in any order and C, C form another consecutive block.

  1. (a) The units are AAA, B, C, D and E. These five units are distinct. The identical letters inside AAA have only one visible order:

    N=5!⋅1=120.N=5!\cdot1=120.
  2. (b) The four units are the AAB block, the CC block, D and E. Their external order has 4!4! possibilities.

  3. The first block has 3!2!=3\frac{3!}{2!}=3 internal orders: AAB, ABA and BAA. The CC block has one. Therefore

    N=4!⋅3!2!⋅1=72.N=4!\cdot\frac{3!}{2!}\cdot1=72.
  4. Do not divide the four-unit count by 2!2!: the two blocks have different contents. Repetition inside a block is handled in its internal factor.

For two adjacency events F and G, count their overlap as well as each event:

N(at least one)=N(F)+N(G)−N(F∩G),N(\text{at least one})=N(F)+N(G)-N(F\cap G),N(exactly one)=N(F)+N(G)−2N(F∩G).N(\text{exactly one})=N(F)+N(G)-2N(F\cap G).

Here NN means “number of strings”. Subtract the union from the unrestricted count for neither event.

Worked example

Correct the overlap between two adjacent-pair events

Arrange A, A, B, B, C, D and E. Let F mean that the As are adjacent and G mean that the Bs are adjacent. Count strings with both events, at least one event, exactly one event, and neither event.

  1. N(all)=7!2! 2!=1260.N(\text{all})=\frac{7!}{2!\,2!}=1260.

    For F, collapse AA into one unit; the two Bs remain identical. The same reasoning applies to G:

    N(F)=N(G)=6!2!=360.N(F)=N(G)=\frac{6!}{2!}=360.
  2. For both events, the units AA, BB, C, D and E are distinct:

    N(F∩G)=5!=120.N(F\cap G)=5!=120.
  3. N(F∪G)=360+360−120=600.N(F\cup G)=360+360-120=600.

    The overlap was counted twice in the sum and must be retained once.

  4. N(exactly one)=360+360−2(120)=480.N(\text{exactly one})=360+360-2(120)=480.

    Neither event occurs in 1260−600=6601260-600=660 strings. The three categories neither, exactly one and both check the total: 660+480+120=1260660+480+120=1260.

Your turn

Arrange A, B, C, X, X and Y in a row. A, B and C must form one consecutive block in any internal order, and the two identical Xs must also be adjacent. Count the strings. Then count them if the ABC block must have that exact internal order.

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

How do gaps enforce separation and exact runs?

Remove the objects that must be separated. Arrange the remaining mm objects first; every such row has m+1m+1 gap positions, including both ends. The gaps are distinct by their left-to-right positions even when some remaining symbols repeat.

The number of ways to choose kk of gg gaps, ignoring their selection order, is

(gk)=g!k!(g−k)!,0≤k≤g,\binom{g}{k}=\frac{g!}{k!(g-k)!},\qquad0\le k\le g,

for integers g,kg,k. Put at most one inserted object into each selected gap. Identical inserted objects need no internal ordering; kk distinct inserted objects give an extra k!k!, or use k!s1!⋯sj!\frac{k!}{s_1!\cdots s_j!} for repeated inserted types. This construction enforces that no two inserted objects are adjacent. If k>m+1k>m+1, the count is zero.

If both ends must be ordinary, only the m−1m-1 internal gaps are usable, for m≥1m\ge1. Too few permitted gaps makes the count zero. If distinct inserted objects must follow a fixed relative order, their assignment to the selected left-to-right gaps has only one possibility instead of k!k!.

Four distinct anchors B,C,D,E have twenty-four orders and five gaps including both ends. Choosing three gaps for identical As gives ten choices, so two hundred forty full strings have no adjacent As.

The displayed anchor order is B C D EB\,C\,D\,E. Filling gaps 1,3,51,3,5 gives A B C A D E AA\,B\,C\,A\,D\,E\,A.

There are 4!=244!=24 anchor orders and (53)=10\binom{5}{3}=10 gap choices per order. The AAs are identical, giving 4!(53)=2404!\binom{5}{3}=240 arrangements.

Arrange the four distinct ordinary symbols first, then choose three of their five ordered gap positions for the identical As.

Worked example

Choose separate gaps for a pair and a single symbol

Arrange A, A, A, B, C, D and E. Count strings with no adjacent As, with exactly one adjacent AA pair and an isolated A, and with the three As not all together. If a visible full string is chosen uniformly, also find the probability of no adjacent As given that they are not all together.

  1. First arrange B, C, D and E in 4!=244!=24 ways. Every such row has five gaps, including the two ends.

  2. For no adjacent As, choose three different gaps. Identical As need no further ordering:

    N(no AA)=4!(53)=24⋅10=240.N(\text{no AA})=4!\binom{5}{3}=24\cdot10=240.
  3. For exactly one AA pair, choose one of five gaps for the pair and a different one of four gaps for the single A:

    N(one pair)=4!⋅5⋅4=480.N(\text{one pair})=4!\cdot5\cdot4=480.

    Using the same gap would create AAA. There is no choice of which two physical As form the visible pair.

  4. All three As form one block in 5!=1205!=120 strings. Thus

    N(not all together)=840−120=720.N(\text{not all together})=840-120=720.

    This includes both the 240240 fully separated strings and the 480480 strings with one pair. “Not all together” is weaker than “no two adjacent”.

  5. If a distinct visible full string is chosen uniformly, the probability of no adjacent As, given that they are not all together, is

    240720=13.\frac{240}{720}=\frac{1}{3}.

A maximal run is a consecutive group that cannot be extended by another copy of the same symbol. For four identical Rs, two separate RR runs use two different gaps; the two RR blocks are identical, so choose the two gaps without ordering them. A triple and a single use different kinds of blocks, so choose a gap for RRR and then a different gap for R. Four Rs together use one gap. These disjoint run types prevent a long run being counted as several overlapping pairs.

For “no run of three or more”, subtract every forbidden run type, including a four-symbol run if four copies exist. For “not all together”, subtract only the single full block. Those conditions are not interchangeable.

Your turn

Arrange A, A, A, B and C, with the As indistinguishable. Count strings with no adjacent As, strings where the three As are not all together, and strings with exactly one adjacent AA pair but no AAA run. Finally, can four identical As be placed with B and C so that no two As are adjacent? Enter its count.

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 number, for example 3/2 or 2-sqrt(3).

The model uses the smaller set consisting of identical As and distinct B, C. With two ordinary symbols there are only three gaps. Compare two, three and four As, then switch between all strings, one full A block and no adjacent As.

Section 5 of 5 · Core · about 9 min

What changes when a tile is omitted or a string is chosen randomly?

For a shorter visible display, split by the numbers of each symbol that are actually used. Count the arrangements of each feasible remaining multiset, then add these disjoint cases. When exactly one tile is omitted, splitting by the omitted symbol type is enough; do not multiply by the number of identical copies of that type.

Worked example

Omit one tile by its symbol type

From A, A, A, B, C, D and E, omit one tile and arrange the other six. Count the distinct visible six-symbol strings. If all seven physical tiles are shuffled uniformly and the last one is removed, find the probability that an A was omitted.

  1. If an A is omitted, the remaining multiset has two As and four distinct other letters:

    NA=6!2!=360.N_A=\frac{6!}{2!}=360.
  2. If B, C, D or E is omitted, the remaining multiset has three As and three other distinct letters. Each omitted ordinary type gives

    6!3!=120\frac{6!}{3!}=120

    strings. These four omitted-type cases are separate.

  3. N=360+4(120)=840.N=360+4(120)=840.

    Do not multiply the A-omission count by three: it would count every visible string three times.

  4. From any six-symbol string, the missing symbol type is uniquely determined. Appending that symbol gives one full visible seven-symbol string. Each shorter string matches exactly one full string, so the same constant 3!3! labelling multiplicity applies to the physical-shuffle experiment.

    P(A omitted)=360840=37.P(\text{A omitted})=\frac{360}{840}=\frac{3}{7}.

Probability needs a stated sampling model. Under a uniform choice of distinct visible full strings, use favourable strings divided by all permitted strings. A uniform shuffle of every physical tile gives the same visible-string distribution because every full string has the same product of multiplicity factorials as its number of labelled versions. This also holds when exactly one tile is omitted: the omitted symbol type is uniquely recoverable from the displayed counts.

Shorter physical samples need not be uniform over visible strings. From A, A, B, C, drawing two physical tiles in order without replacement gives 4P2=12{}^{4}\mathrm{P}_{2}=12 equally likely labelled outcomes. AA has two labelled outcomes, but BC has only one. Their probabilities are 16\frac{1}{6} and 112\frac{1}{12}, not equal visible-string probabilities.

For a conditional probability under a uniform visible-string model, restrict both counts to the given condition, whose count must be positive. Choosing uniformly among the remaining symbol types at each step is another process and need not generate uniform final strings.

Your turn

From P, P, Q, Q, Q, R and R, form a visible six-symbol string by omitting one tile and arranging the other six. Count all distinct strings and those with a Q omitted. In a separate probability experiment, the seven physical tiles are shuffled uniformly and the last tile is removed. Find the probability that the omitted tile is a Q.

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.

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

A fixed repeated symbol changes the remaining multiplicities

3 marks

Arrange 3 copies of A, 2 copies of B, 1 copies of C. Equal letters are indistinguishable. Count all patterns, patterns beginning with A, and patterns whose last letter is not A.

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

Fix a repeated letter and recount the remainder

The symbols A, A, A, B, B, C, C, D are arranged in a line; equal letters are indistinguishable. Count all distinct patterns, those beginning with A, and those with neither end A. For a pattern chosen uniformly from all distinct patterns, find the probability that its last letter is not A given that its first letter is A.

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.

Exactly one pair differs from at least one pair

Arrange A, A, B, B, C, D, E, F in a row. Equal letters are indistinguishable. Let U mean that the two As are adjacent, and V mean that the two Bs are adjacent. Count patterns satisfying both U and V, exactly one of U and V, and at least one of them. For a uniformly chosen distinct pattern, find the probability of exactly one given at least 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).

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

Enter an exact value or round to 3 significant figures.

Choose gaps for identical counters

Five different numbered counters and three identical red counters are arranged in a line. Count patterns with no adjacent reds; patterns with no adjacent reds and a numbered counter at each end; patterns with exactly one red pair and the third red separate; and patterns with all three reds consecutive.

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 number, for example 3/2 or 2-sqrt(3).

Distinct special objects have internal orders

Five different ordinary objects and four different special objects M, N, P, Q are arranged in one line. Count rows in which all four special objects are consecutive, rows in which no two special objects are adjacent, and rows in which the four special objects are not all consecutive. Finally count rows with no adjacent special objects in which their left-to-right order is M, N, P, Q.

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 number, for example 3/2 or 2-sqrt(3).

Omit a symbol type without creating hidden labels

Available tiles show A, A, A, B, B, C, D. Display six of the seven tiles in order, leaving exactly one unused. Equal letters are indistinguishable, and only the displayed string matters. Count all distinct six-letter strings, those omitting an A, and those beginning with A. A distinct displayed string is then chosen uniformly; find the probability it begins with A given that an A was omitted.

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.

Recount after fixing a letter

How many distinct arrangements of BALLOON begin with L?

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

Count just one paired run

Arrange AABB. How many distinct arrangements have exactly one of the pairs AA and BB adjacent?

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

Separate identical counters

Arrange four distinct blue counters and two identical red counters in a row. How many orders keep the red counters apart?

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

Choose different gaps

Arrange three different blue counters and three identical red counters. How many orders have a red pair and a separate single red counter?

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

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

Repeated zeros interact with both end conditions 8 marks

Use every digit in the multiset 0,0,1,1,2,30,0,1,1,2,3 exactly once to form a six-digit number. Count all distinct six-digit numbers, the even numbers, and the even numbers with no adjacent zeros. A number is selected uniformly from the valid six-digit numbers. Find the probability that its zeros are separated given that it is even.

Hint

Subtract strings beginning with zero. For even numbers split the final digit into zero or two. For separated zeros, identify their allowed positions separately in those two cases.

Worked solution
  1. Count all six-symbol strings and subtract those beginning with zero:

    6!2!2!−5!2!=180−60=120.\frac{6!}{2!2!}-\frac{5!}{2!}=180-60=120.
  2. Ending in zero leaves one zero and two ones. Exclude a leading zero:

    N0=5!2!−4!2!=48.N_0=\frac{5!}{2!}-\frac{4!}{2!}=48.
  3. Ending in two leaves two zeros and two ones:

    N2=5!2!2!−4!2!=18.N_2=\frac{5!}{2!2!}-\frac{4!}{2!}=18.

    There are 48+18=6648+18=66 even numbers.

  4. With a zero last, the other zero may occupy position 2,32,3 or 44: position 11 is forbidden and position 55 would make the zeros adjacent. Fill the other four positions with 1,1,2,31,1,2,3:

    3⋅4!2!=36.3\cdot \frac{4!}{2!}=36.
  5. With two last, the nonadjacent zero-position pairs among positions 2,3,4,52,3,4,5 are (2,4),(2,5),(3,5)(2,4),(2,5),(3,5). Fill the other three positions with 1,1,31,1,3:

    3⋅3!2!=9.3\cdot \frac{3!}{2!}=9.
  6. N(even and separated zeros)=36+9=45,P=4566=1522.N(\text{even and separated zeros})=36+9=45,\qquad P=\frac{45}{66}=\frac{15}{22}.
Marking guidance
  • 1 mark: remove leading-zero strings from the full multiset count.
  • 1 mark: split the even case by its final digit.
  • 1 mark: obtain the valid final-zero count.
  • 1 mark: obtain the valid final-two count and even total.
  • 1 mark: find the allowable location of the other zero when zero is last.
  • 1 mark: find the three nonadjacent zero-position pairs when two is last.
  • 1 mark: obtain the combined separated-zero count.
  • 1 mark: divide by the even-number conditioning count.
Two identical pair-blocks must not be ordered twice 7 marks

Four distinct numbered counters and four identical red counters are arranged in a line. A red run is a maximal consecutive group of red counters. Count patterns with exactly two red runs, both of length two; patterns containing a red run of length at least three; and patterns with no red run longer than two. For a uniformly chosen distinct pattern, find the probability of two red runs of length two given that no run is longer than two.

Hint

Arrange the four numbered counters, making five gaps. Two RR blocks are identical and must occupy distinct gaps. For a run of at least three, separate the possibilities RRR plus R and RRRR.

Worked solution
  1. Choose two of the five gaps for the identical RR blocks. A numbered counter separates distinct gaps:

    4!(52)=240.4!\binom{5}{2}=240.

    Do not multiply by 2!2!: interchanging identical RR blocks creates no new pattern.

  2. A triple and a single must use different gaps. Their roles differ, so choose the triple-gap and then the single-gap:

    4!×5×4=480.4!\times5\times4=480.
  3. An RRRR block gives 5!=1205!=120 patterns. These are disjoint from the triple-plus-single case, so the long-run count is 480+120=600480+120=600.

  4. The unrestricted multiset count is 8!4!=1680\frac{8!}{4!}=1680. Therefore the no-longer-than-two count is 1680−600=10801680-600=1080.

  5. P(two length-two runs∣no run longer than two)=2401080=29.P(\text{two length-two runs}\mid\text{no run longer than two})=\frac{240}{1080}=\frac{2}{9}.

    A triple has two adjacent red-red boundaries, but it is not two separated length-two runs. The prompt’s run definition matters.

Marking guidance
  • 1 mark: arrange the ordinary counters and identify five gaps.
  • 1 mark: choose two gaps without labelling the identical pair-blocks.
  • 1 mark: count triple-plus-single patterns in distinct gaps.
  • 1 mark: count four-red blocks and combine the disjoint long-run cases.
  • 1 mark: count the unrestricted multiset patterns.
  • 1 mark: obtain the no-longer-than-two conditioning count.
  • 1 mark: calculate the conditional probability using the defined run event.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work