A routing board shows five letter tiles, two N, two E and one S. If the five tiles were all different they could be ordered in ways, but swapping the two N tiles leaves the board looking exactly the same. So how many different strings can the board actually show? This lesson answers that question with the multinomial coefficient, which divides out exactly the rearrangements that the record cannot see. The same coefficient then counts the ways to split distinct objects into named groups and gives the coefficients in a power of a sum.
Key terms
Indistinguishable objects
Definition Objects in a counting problem are indistinguishable when the recorded outcome does not tell them apart, so that exchanging any two of them leaves the record unchanged. This is a property of what the outcome records, not of the physical objects. Two tiles printed with the same letter are indistinguishable for a board that shows only letters, and distinguishable for a record that also lists each tile’s serial number.
In plain words Before counting, decide what one outcome records. Swapping two objects that the record cannot tell apart does not produce a new outcome, so it must not be counted as one.
Example On the routing board, mark the repeated tiles temporarily as , , and , next to the single . The five marked tiles have orders. The visible string NESEN comes from exactly four of them, namely , , and , because the N marks can be placed in ways and the E marks in ways. Every visible string comes from four marked orders in the same way, so the board can show different strings.
Multiset permutation
Definition Suppose a collection of objects has types, with objects of type , where each is a nonnegative integer and
Objects of the same type are indistinguishable, and objects of different types are distinguishable. A multiset permutation of the collection is a sequence of length in which type appears exactly times. The number of multiset permutations is
To see why, mark all objects so that they become distinct, which gives marked arrangements. The marked arrangements behind one visible sequence are exactly those obtained by permuting the marks within each type, and there are of them. So each multiset permutation corresponds to the same number of marked arrangements, and dividing by that number gives the count.
In plain words Count as if every object were different, then divide by the number of ways to shuffle each group of identical objects among themselves. Each repeated type gets its own factorial in the denominator. Leaving out the factorial of a repeated type makes the count too large. Dividing once by the number of types is not a valid correction, and for NNEES it would give instead of .
Example The tiles NNEES give strings, as found above. Two extreme cases check the formula. If all objects are different, each object is a type of its own with count , and the count is , the number of ordinary permutations. If all objects have one type, the count is , since every shuffle shows the same sequence. If the five tiles are shuffled so that all marked orders are equally likely, each visible string has probability , so the visible strings are equally likely as well, because each one comes from the same number of marked orders.
Multinomial coefficient
Definition For nonnegative integers with , the multinomial coefficient is
It is a positive integer, because it counts the multiset permutations with these type counts, and it does not change when the lower entries are listed in a different order. A type with count contributes the factor . With two types it is the binomial coefficient from Combinations and Binomial Coefficients, since when . The formula is used only when the lower entries add up to the top entry.
In plain words The multinomial coefficient counts the ways to fill positions with copies of the first label, copies of the second and so on. The top number is the total, and the bottom numbers are the category counts that make up that total.
Example Three red labels, two green labels and one blue label fill six positions in
different ways. Listing a fourth color with count does not change the answer, since as well.
Counting by choosing positions
Definition A multiset permutation is determined by the set of positions that each type occupies. Choose the positions of type from all positions, then the positions of type from the that remain, and continue in this way. The last type takes all remaining positions, so its factor is . By the product rule, and because the factorials of the remaining counts cancel,
Each set of positions is chosen without order, because the labels of one type are indistinguishable.
In plain words Instead of arranging labels, pick places. Decide where the copies of the first label go, then where the copies of the second go among the places left, and the last label fills whatever remains. This view is convenient when a condition fixes certain positions.
Example For three red, two green and one blue label, there are ways to place the reds and then ways to place the greens among the three remaining positions, and blue takes the one position still free. That gives strings, as before. If blue must come first, fix it there and arrange three reds and two greens in the other five positions, which gives strings. When one of the strings is chosen with all strings equally likely, the probability that blue comes first is , in agreement with the six equally likely positions of the single blue label.
Allocation to named groups
Definition Let distinct objects be split among named groups so that group receives exactly objects, where and the order of the objects inside a group does not matter. The number of such allocations is the multinomial coefficient . To see this, list the objects in a fixed order and write under each object the name of its group. The result is a sequence with copies of name , and each such sequence describes exactly one allocation. Because the groups are named, exchanging the contents of two nonempty groups of equal size gives a different allocation.
In plain words The objects are distinct and the group names are distinct, but places inside a group are not, and only that last part is divided out. If the groups have no names and only the split into blocks is recorded, blocks of equal size can no longer be told apart. For each block size that occurs times among the nonempty blocks, divide by another .
Example Eight distinct jobs go to teams A, B and C, with three jobs for A, three for B and two for C. Choose the jobs of A in ways and the jobs of B from the remaining five in ways, and C receives the last two, so
Teams A and B have the same size, but giving jobs 1, 2 and 3 to A and jobs 4, 5 and 6 to B is a different assignment from the reverse, so there is no extra division by . If the teams had no names and only the split into two blocks of three and one block of two mattered, each split would appear twice among the allocations, and the count would be .
Multinomial expansion
Definition For every whole number and all numbers , the power equals the sum of the terms
over all lists of nonnegative integers with . Here is read as , also for . Multiplying out the brackets gives one product for each way of picking one variable from each bracket. Group these picks by how many brackets supplied each variable. A pick that takes from of the brackets, for every , has the product , and the number of such picks is the number of sequences of length with copies of . Setting every shows that the coefficients add up to .
In plain words Each bracket is a position, and choosing a variable from a bracket places a label there. The coefficient of a term counts the label sequences that produce it. With two variables this is the binomial theorem.
Example In the term arises when the three brackets supply , and in some order, so its coefficient is . The term needs from two brackets and from one, which happens in the ways , and , so its coefficient is . The full expansion has ten terms, three cubes such as with coefficient , six terms such as with coefficient , and with coefficient . Together the coefficients add up to .
Check yourself
- How many distinct strings can be formed from the letters AAAABBC, and how many of them begin with C? If one of the distinct strings is chosen with all strings equally likely, what is the probability that it begins with C?
Show the answer
There are seven letters with type counts , and , so the number of strings is
Fixing C in the first position leaves four A and two B for six positions, which gives strings. The probability is . As a check, the same count of holds for C in any of the seven positions, so the single C is equally likely to sit in each of them.
- Find the coefficient of in .
Show the answer
The term needs from one bracket, from two brackets and from one bracket. The brackets can supply these in
ways, and each such product equals . The coefficient is therefore . Answering forgets that the constant is picked twice.
- Six people are split into three pairs. Count the splits when the pairs are assigned to three named tasks X, Y and Z, and count them again when only who is paired with whom matters.
Show the answer
With named tasks this is an allocation to named groups of sizes , and , so the count is
When the tasks are dropped, the three pairs can be attached to the names X, Y and Z in ways, and each of these gives a different named allocation. So each pairing appears times among the allocations, and there are pairings. A direct count agrees. Number the people from to . Person 1 has possible partners, the lowest-numbered person left then has , and the last two people form the final pair, which gives .