girgit.org

Permutations and Combinations

Arrangements with rules: together, apart, first place

The big ideaFour tricks handle almost every arrangement with a rule: fix the special place first, glue together things that must stay together, subtract the cases you do not want, and put things that must stay apart into the gaps.

In simple words

A family of seven sits down to dinner on one side of a long table. "Dadi sits at the end." "The twins sit together." "The two brothers who fight must not sit side by side." Each rule sounds hard to count. But each one has a simple trick: seat the fussy person first, tie the twins into one bundle, or count everyone and take away the bad seatings. Learn the four tricks and these questions become easy.

Trick 1: fix the special place

If a position is decided by a rule, fill it first, then arrange the rest.

Worked example

The letters of SACHIN (6 different letters) are arranged in a row. How many arrangements begin with a vowel?

  1. First place: A or I, so 2 ways.
  2. The other 5 letters fill the other 5 places: \( 5! = 120 \) ways.
  3. Total: \( 2 \times 120 = 240 \).

Remember the zero rule from earlier: in a number, 0 cannot be the first digit. A neat way to handle it is to count all strings and subtract those that start with 0. For 4-digit numbers from 0, 1, 2, 3, 4, 5 with no repeats: \( {}^6P_4 - {}^5P_3 = 360 - 60 = 300 \). (Fix 0 at the front and arrange 3 of the other 5 to get the bad ones.)

Trick 2: glue things that must be together

If some objects must stay next to each other, tie them into one bundle and treat the bundle as a single object. Then remember that the objects inside the bundle can also be arranged.

Worked example

In how many arrangements of SACHIN are the vowels A and I next to each other?

  1. Glue A and I into one block [AI]. Now arrange 5 objects: [AI], S, C, H, N. That is \( 5! = 120 \) ways.
  2. Inside the block the vowels can be AI or IA: \( 2! = 2 \) ways.
  3. Total: \( 5! \times 2! = 240 \).

Trick 3: count the opposite and subtract

"Not together" is awkward to count directly. Count everything, then take away the arrangements where they are together. Counting the opposite like this is using the complement.

Arrangements of SACHIN in which A and I are not side by side: \( 6! - 240 = 720 - 240 = 480 \).

Trick 4: put things that must be apart in the gaps

If no two of some objects may sit next to each other, first arrange the others, then drop the restricted objects into the gaps between them, at most one per gap.

Worked example

4 girls and 3 boys sit in a row at a wedding dinner. In how many ways can they sit so that no two boys are next to each other?

  1. Seat the girls first: \( 4! = 24 \) ways.
  2. Mark the gaps: _ G _ G _ G _ G _. There are 5 gaps (between them and at both ends).
  3. Put the 3 boys into 3 of the 5 gaps, one per gap. The boys are different people, so order matters: \( {}^5P_3 = 60 \) ways.
  4. Total: \( 24 \times 60 = 1440 \).

Test the tricks by chance: shuffle the seating many times and compare with the formula.

Don't mix these up

  • "All the vowels are not together" means "it is not true that all of them form one block". Count it as total minus "all together" (Trick 3).
  • "No two vowels are together" is stricter: every vowel is separated from every other. Count it with gaps (Trick 4). With only two vowels the two meanings agree; with three or more they give different answers.
  • After gluing, do not forget to arrange the objects inside the block.

Round tables

Not in the current textbook, but JEE asks it: around a round table there is no first seat, so turning everyone one seat to the left gives the same seating. Fix one person's seat to remove those turns, then arrange the rest in a row: \( n \) people can sit around a round table in \( (n-1)! \) ways. Six friends at a round dinner table: \( 5! = 120 \) seatings, not \( 6! = 720 \).

Try it. Use the 6 different letters of the word GARDEN (vowels A and E). (a) How many arrangements start with G and end with N? (b) In how many are the two vowels together? (c) In how many are they not together?

Answer
(a) Fix G and N; arrange the middle 4: \( 4! = 24 \). (b) Glue [AE]: \( 5! \times 2! = 240 \). (c) \( 720 - 240 = 480 \). (Check with gaps: arrange G, R, D, N in \( 4! = 24 \) ways, then A and E into 2 of the 5 gaps in \( {}^5P_2 = 20 \) ways, giving 480.)

Words to know

Fixing a place
Filling a position decided by a rule before the others.
Block (glue) method
Treat things that must be together as one object, then arrange inside.
Complement
Everything you do not want; count it and subtract from the total.
Gap method
Arrange the others, then put the "keep apart" objects into the gaps.
Vowel
A, E, I, O, U; all other letters are consonants.

5 different books are put on a shelf. Two of them, a Physics and a Chemistry book, must stand side by side. How many ways?

  1. 24
  2. 48
  3. 120

3 boys and 3 girls sit in a row so that no two girls are together. How many ways?

  1. \( 6! - 4!\,3! = 576 \)
  2. \( 3! \times {}^4P_3 = 144 \)
  3. \( 3! \times 3! = 36 \)

How many 3-digit numbers with all digits different can be made from 0, 2, 4, 6, 8?

  1. 60
  2. 48
  3. 24