UPSC CSAT 2023 Q6: Letters and Envelopes Derangements — Solved
There are four letters and four envelopes and exactly one letter is to be put in exactly one envelope with the correct address. If the letters are randomly inserted into the envelopes, then consider the following statements:
1. It is possible that exactly one letter goes into an incorrect envelope.
2. There are only six ways in which only two letters can go into the correct envelopes.
Which of the statements given above is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer: (b) 2 only
Solution
-
Set up the problem. There are 4 letters, L1 to L4, and 4 envelopes, E1 to E4. Letter Li belongs in envelope Ei. Each envelope gets exactly one letter, so every way of filling them is an arrangement of 4 letters. Total arrangements = 4! = 24.
-
Test Statement 1: can exactly one letter be in a wrong envelope? Suppose exactly one letter, say L4, is wrong. Then L1, L2 and L3 are all correct, so E1, E2 and E3 are filled by their own letters.
-
Only one letter (L4) and only one envelope (E4) are left. L4 must go into E4, which is its correct envelope.
-
That contradicts the assumption that L4 is wrong. The same happens whichever letter we pick. If 3 letters are correct, the 4th is forced to be correct too. So exactly one wrong letter is impossible. Statement 1 is false.
-
Test Statement 2: count the ways in which exactly two letters are correct. First choose which 2 letters are correct: C(4,2) = (4 × 3) ÷ 2 = 6 ways.
-
The other 2 letters must both be wrong. Say the correct pair is L1, L2. Then L3 and L4 must go into E3 and E4 with neither one in its own envelope. There is only one way: L3 → E4 and L4 → E3 (a swap). The number of ways to put 2 items so that none is in place is D(2) = 1.
-
Ways with exactly two correct = 6 × 1 = 6.
-
List them to check. Correct pairs: {1,2}, {1,3}, {1,4}, {2,3}, {2,4}, {3,4}. Each pair has exactly one arrangement, where the other two letters swap. That gives 6 arrangements. Statement 2 is true.
-
Cross-check with the full count of 24. Exactly 4 correct: 1. Exactly 3 correct: 0. Exactly 2 correct: 6. Exactly 1 correct: C(4,1) × D(3) = 4 × 2 = 8. Exactly 0 correct: D(4) = 9. Total = 1 + 0 + 6 + 8 + 9 = 24. ✓
-
Answer: Statement 2 alone is correct.
Option-wise explanation
- a: incorrect — Statement 1 is impossible. If three letters are in their correct envelopes, the last letter has only its own envelope left. The trap is to treat 'exactly one wrong' like 'exactly one right', which is possible (8 ways).
- b: correct — Exactly one wrong letter cannot happen, so Statement 1 is false. Exactly two correct = C(4,2) × D(2) = 6 × 1 = 6, so Statement 2 is true.
- c: incorrect — Statement 2 is correct, but Statement 1 is not. A single misplaced letter would need a wrong envelope to go to, and every other envelope is already full.
- d: incorrect — This rejects Statement 2, which is exactly right: 6 choices of the correct pair, each with one forced swap. The trap is a wrong count, such as 6 × 2 = 12 (letting the other two letters go either way) or C(4,2) without checking the swap.
How to eliminate
Start with Statement 1. It takes about 10 seconds. One wrong letter needs a wrong envelope to go into, but with three letters already correct, the only empty envelope is its own. Statement 1 is false, so options a and c are out. For Statement 2, pick the 2 correct letters (C(4,2) = 6). The other two can only swap, so there is 1 way. 6 × 1 = 6 matches the statement, so it is true. A quick memory aid: a misplaced letter needs at least one more misplaced letter to swap with, so 'exactly one wrong' can never happen. About 45–60 seconds. Attempt this one in the first pass.
Know more
Derangements: nothing in its own place
A derangement is an arrangement where no item is in its correct position. The count for n items is D(n):
D(n) = n! × (1 − 1/1! + 1/2! − 1/3! + … ± 1/n!)
An easier route is the recurrence D(n) = (n − 1) × [D(n − 1) + D(n − 2)].
| n | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| D(n) | 0 | 1 | 2 | 9 | 44 |
Exactly k correct out of n: choose the k correct items, then derange the rest.
Ways = C(n, k) × D(n − k)
Since D(1) = 0, exactly n − 1 correct is always impossible. One item cannot be wrong on its own.
For n = 4, the 24 arrangements split like this:
| Correct | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|
| Ways | 1 | 0 | 6 | 8 | 9 |
Worked variant: 5 letters, 5 envelopes. In how many ways are exactly 2 letters correct? C(5,2) × D(3) = 10 × 2 = 20. Check D(3) = 2 by hand: for 1, 2, 3, the only arrangements with nothing in place are 2-3-1 and 3-1-2.
Probability form: P(no letter correct) = D(n) ÷ n!. For n = 4 that is 9/24 = 3/8. For large n it tends to 1/e ≈ 0.37.