All Exams Test series for 1 year @ ₹349 only
Question

In how many ways can we put four different letters into four different envelopes so that atleast three letters go into the wrong envelopes?

The correct answer is

13

Understanding the Letters and Envelopes Problem

This problem asks us to find the number of ways to place four different letters into four different envelopes, where each envelope is intended for a specific letter, such that at least three letters end up in the wrong envelopes.

First, let's understand the setup. We have 4 distinct letters, say \(L_1, L_2, L_3, L_4\), and 4 distinct envelopes, say \(E_1, E_2, E_3, E_4\), where \(E_i\) is the correct envelope for \(L_i\). We are placing one letter into each envelope, so this is about finding the number of permutations of the letters into the envelopes.

The total number of ways to place 4 different letters into 4 different envelopes is the number of permutations of 4 items, which is \(4!\).

\[4! = 4 \times 3 \times 2 \times 1 = 24\]

So, there are 24 total possible ways to place the letters into the envelopes.

Identifying Ways with At Least Three Wrong Envelopes

The condition "at least three letters go into the wrong envelopes" means the number of letters placed in an envelope other than their corresponding correct one is 3 or more. For 4 letters, this means either:

  • Exactly 3 letters are in the wrong envelopes.
  • Exactly 4 letters are in the wrong envelopes.

Let's analyze these two cases separately.

Case 1: Exactly 3 Letters in Wrong Envelopes

If exactly 3 letters are in the wrong envelopes, it implies that exactly 1 letter must be in its correct envelope. Let \(k\) be the number of letters in the correct envelope. We are looking at the case where \(k=1\).

To count this, we can follow these steps:

  1. Choose which 1 letter goes into its correct envelope. There are \(\binom{4}{1}\) ways to do this.
  2. The remaining 3 letters must all go into the wrong envelopes. The envelopes available for these 3 letters are their correct envelopes, but none of these 3 letters can go into their respective correct envelopes. This is a classical problem called a derangement.

A derangement of \(n\) items is a permutation of the items such that no item is in its original position. The number of derangements of \(n\) items is denoted by \(D_n\).

For 3 items, the number of derangements \(D_3\) is calculated as:

\[D_n = n! \left( \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \dots + \frac{(-1)^n}{n!} \right)\] \[D_3 = 3! \left( \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} \right)\] \[D_3 = 6 \left( 1 - 1 + \frac{1}{2} - \frac{1}{6} \right)\] \[D_3 = 6 \left( \frac{3}{6} - \frac{1}{6} \right)\] \[D_3 = 6 \left( \frac{2}{6} \right)\] \[D_3 = 2\]

So, there are \(D_3 = 2\) ways for the remaining 3 letters to be in the wrong envelopes.

The total number of ways for exactly 3 letters to be in wrong envelopes (i.e., exactly 1 correct) is:

\[\binom{4}{1} \times D_3 = 4 \times 2 = 8\]

Case 2: Exactly 4 Letters in Wrong Envelopes

If exactly 4 letters are in the wrong envelopes, it means that 0 letters are in their correct envelopes. This is a derangement of all 4 letters.

The number of derangements of 4 items \(D_4\) is calculated as:

\[D_4 = 4! \left( \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \frac{1}{4!} \right)\] \[D_4 = 24 \left( 1 - 1 + \frac{1}{2} - \frac{1}{6} + \frac{1}{24} \right)\] \[D_4 = 24 \left( \frac{12}{24} - \frac{4}{24} + \frac{1}{24} \right)\] \[D_4 = 24 \left( \frac{12 - 4 + 1}{24} \right)\] \[D_4 = 24 \left( \frac{9}{24} \right)\] \[D_4 = 9\]

So, there are \(D_4 = 9\) ways for exactly 4 letters to be in wrong envelopes.

Calculating Total Ways for At Least Three Wrong

To find the total number of ways where at least three letters go into the wrong envelopes, we sum the ways from Case 1 (exactly 3 wrong) and Case 2 (exactly 4 wrong).

Total ways = (Ways for exactly 3 wrong) + (Ways for exactly 4 wrong)

Total ways = \(8 + 9 = 17\)

Alternative Calculation Method: Complementary Counting

We can also solve this by subtracting the unwanted cases from the total number of ways. The unwanted cases are when fewer than three letters go into the wrong envelopes. This means the number of wrong letters is 0, 1, or 2.

Let \(k\) be the number of letters in the correct envelopes. The number of wrong letters is \(4-k\). We want \(4-k \ge 3\), which means \(k \le 1\). The unwanted cases are \(4-k < 3\), which means \(k > 1\), i.e., \(k=2, 3, 4\) correct letters.

  • Exactly 4 letters correct (\(k=4\)): All letters are in their correct envelopes. There is only 1 way for this: \(L_1 \to E_1, L_2 \to E_2, L_3 \to E_3, L_4 \to E_4\). This can also be calculated as \(\binom{4}{4} D_0 = 1 \times 1 = 1\).
  • Exactly 3 letters correct (\(k=3\)): Impossible. If 3 letters are in their correct envelopes, the 4th letter must also be in its correct envelope. The number of wrong letters cannot be exactly 1 for $n > 1$.
  • Exactly 2 letters correct (\(k=2\)): Choose which 2 letters are correct in \(\binom{4}{2}\) ways. The remaining 2 letters must be in the wrong envelopes (a derangement of 2 items). Number of ways = \(\binom{4}{2} \times D_2\). \[\binom{4}{2} = \frac{4!}{2!2!} = \frac{24}{4} = 6\] \[D_2 = 2! \left( \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} \right) = 2 \left( 1 - 1 + \frac{1}{2} \right) = 2 \left( \frac{1}{2} \right) = 1\] Number of ways = \(6 \times 1 = 6\).

Number of ways with less than three letters in wrong envelopes = (exactly 0 wrong) + (exactly 1 wrong) + (exactly 2 wrong)

Number of ways with less than three letters in wrong envelopes = (exactly 4 correct) + (exactly 3 correct) + (exactly 2 correct)

Number of ways with less than three letters in wrong envelopes = \(1 + 0 + 6 = 7\).

Total ways with at least three wrong envelopes = Total arrangements - Number of ways with less than three wrong envelopes

Total ways = \(24 - 7 = 17\).

Both methods yield the same result.

Number of Correct Letters (\(k\)) Number of Wrong Letters (\(4-k\)) Number of Ways (\(\binom{4}{k} D_{4-k}\))
4 0 \(\binom{4}{4}D_0 = 1 \times 1 = 1\)
3 1 \(\binom{4}{3}D_1 = 4 \times 0 = 0\)
2 2 \(\binom{4}{2}D_2 = 6 \times 1 = 6\)
1 3 \(\binom{4}{1}D_3 = 4 \times 2 = 8\)
0 4 \(\binom{4}{0}D_4 = 1 \times 9 = 9\)

We need the cases where the number of wrong letters is 3 or 4. These correspond to \(k=1\) and \(k=0\).

Total ways = (Ways with 3 wrong) + (Ways with 4 wrong) = \(8 + 9 = 17\).

Revision Table: Combinations and Derangements

Concept Description Formula/Value (for n=4)
Permutation (Total) Arrangement of all items in a sequence. \(n! = 4! = 24\)
Combination Choosing a subset of items. \(\binom{n}{k} = \binom{4}{k}\)
Derangement (\(D_n\)) Permutation where no item is in its original position. \(D_0=1, D_1=0, D_2=1, D_3=2, D_4=9\)
Exactly \(k\) correct Choosing \(k\) correct and deranging remaining \(n-k\). \(\binom{n}{k} D_{n-k} = \binom{4}{k} D_{4-k}\)

Additional Information: Understanding Derangements

Derangements are a specific type of permutation with no fixed points (elements mapped to themselves). The problem of placing letters into corresponding envelopes such that a certain number are in the wrong envelopes is a direct application of derangements combined with combinations.

The recursive formula for derangements is \(D_n = (n-1)(D_{n-1} + D_{n-2})\) for \(n \ge 2\), with base cases \(D_0=1\) and \(D_1=0\). Let's verify the values:

  • \(D_2 = (2-1)(D_1 + D_0) = 1(0 + 1) = 1\)
  • \(D_3 = (3-1)(D_2 + D_1) = 2(1 + 0) = 2\)
  • \(D_4 = (4-1)(D_3 + D_2) = 3(2 + 1) = 3 \times 3 = 9\)

These values are consistent with the formula used in the solution. The principle of inclusion-exclusion is used to derive the general formula for \(D_n\), but the recursive formula is often easier for calculating small values.

The problem requires summing the ways for exactly 3 wrong and exactly 4 wrong letters, which correspond to exactly 1 correct and exactly 0 correct letters, respectively. Using the formula \(\binom{4}{k} D_{4-k}\) for \(k=1\) and \(k=0\) gives the required number of ways.

Was this answer helpful?

Important Questions from Permutation and Combination

  1. If Quantity A is the number of ways to assign a number from 1 to 5 without repetition to each of four people, and Quantity B is the number of ways to assign a number from 1 to 5 without repetition to each of 5 people, then which of the following statements is correct with respect to Quantities A and B?

  2. Which of the following muscles regulates the exit of food from the stomach into the small intestine?

  3. There are 9 cups placed on a table arranged in equal number of rows and columns out of which 6 cups contain coffee and 3 cups contain tea. In how many ways can they be arranged so that each row should contain at least one cup of coffee?

  4. In how many different ways can the letters of the word 'OPTICAL' be arranged so that the vowels always come together?

  5. There are $15$ distinct points on a plain sheet of paper. If $4$ of these points are collinear, find the maximum number of triangles that can be drawn using these points.

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App