Concept 02 / 09Permutations and Combinations
Permutations: Arrangements with Distinct and Identical Objects and Restrictions
The formula nPr = n!/(n - r)!, arrangements with repetition, arrangements of objects that are not all distinct (n!/(p! q! r!)), and the standard restriction techniques: fixing positions, the 'together' block method, the gap method for 'never together', and rank of a word in dictionary order.
A permutation is an arrangement, where order matters. The number of ways to arrange objects chosen from distinct objects, without repetition, is
,
because the first position has choices, the second , and so on for positions. In particular all objects can be arranged in ways. If repetition is allowed, each of the positions has choices, giving .
Objects that are not all distinct. If objects include identical of one kind, identical of another, of a third, and the rest distinct, the number of arrangements is
.
Reason: if we temporarily label the identical objects to make them distinct, there are arrangements, but each genuine arrangement has been counted times (once for every way of permuting the labels within each kind). Dividing removes the overcount. This 'count with labels, then divide by the symmetry' idea is one of the most useful in combinatorics. Example: the letters of MISSISSIPPI ( letters: M once, I four times, S four times, P twice) can be arranged in ways.
Standard restriction techniques.
Fixed positions: place the restricted objects first, then arrange the rest.
Always together: glue the objects that must be together into a single block, arrange the block with the other objects, then multiply by the number of internal arrangements of the block. For example, arranging boys and girls with all girls together: arrangements of boys plus one block, times inside the block, giving .
Never together (no two adjacent): use the gap method shown in the figure. Arrange the unrestricted objects first; they create gaps between and at the ends. Place the restricted objects into distinct gaps. With unrestricted objects there are gaps. Note that 'not all together' is different from 'no two together': 'not all together' is simply total minus 'all together'.
Relative order fixed: if certain objects must appear in a specified order (say A before B before C), arrange everything freely and divide by , because each of the orders of those objects is equally common.
Dictionary rank. To find the position of a word among all arrangements of its letters in alphabetical order, go letter by letter: at each position, count the arrangements that start with the same prefix but a smaller letter in this position, add them up, and add for the word itself. With repeated letters, each count uses the formula for the remaining letters.
Key Takeaways:
- ; with repetition, .
- objects with alike: .
- Together: treat as one block, then multiply by the block's internal arrangements.
- Never together: arrange the others, then choose distinct gaps; objects create gaps.
- 'Not all together' = total 'all together', which is different from 'no two together'.
- Fixed relative order of objects: divide by .
- Pitfall: in the gap method, forgetting the two end gaps.
Brain-Teaser 1: In how many arrangements of the letters of ARRANGE do the two R's not come together?
Solution: ARRANGE has letters: A twice, R twice, N, G, E. Total arrangements: . With the two R's together, treat RR as one block: units with A repeated twice, giving (the block's internal order is fixed, since the R's are identical). So the answer is . Alternatively, by the gap method, arrange A, A, N, G, E in ways, creating gaps, and choose gaps for the identical R's in ways: . The two methods agree.
Brain-Teaser 2: Find the rank of the word MOTHER among all arrangements of its letters in dictionary order.
Solution: The letters in order are E, H, M, O, R, T. First letter: words starting with E or H come before M: . With M fixed, the second letter is O; letters smaller than O among the remaining E, H, O, R, T are E and H: . With MO fixed, the third letter is T; smaller remaining letters are E, H, R: . With MOT fixed, the fourth letter is H; smaller remaining is E: . With MOTH fixed, the fifth letter is E, and nothing smaller remains: . Sum: , so MOTHER is the th word. The final accounts for the word itself.
Brain-Teaser 3: How many -digit numbers divisible by can be formed using the digits without repetition?
Solution: A number is divisible by iff its digit sum is. The six digits sum to ; leaving out one digit gives sum , divisible by iff or . Leaving out : digits , all usable in the first place, giving . Leaving out : digits ; the first digit cannot be , giving . Total: . The divisibility rule converts a condition on the number into a condition on which digits are chosen, which splits the count into clean cases.
Practice this concept
Free · no account required · instant solutions