Question 1
There are 6 letters and 6 envelopes. In how many ways can the letters be placed such that no letter goes into its correct envelope?
Step-by-Step Solution:
Concept: Derangement - permutation where no element appears in its original position. Denoted as D(n) or !n.
Given:
- Number of items: 6
- Constraint: No item in its correct position
Derangement Formula:
D(n) = n! × [1 - 1/1! + 1/2! - 1/3! + ... + (-1)ⁿ/n!]
Or recursively: D(n) = (n-1)[D(n-1) + D(n-2)]
Step-by-Step Calculation:
D(0) = 1 (convention)
D(1) = 0 (one item must be in its position)
D(2) = 1 (only one swap possible)
For n ≥ 3, we use: D(n) = (n-1)[D(n-1) + D(n-2)]
Let's calculate:
D(0) = 1
D(1) = 0
D(2) = 1
D(3) = (3-1)[D(2) + D(1)] = 2 × [1 + 0] = 2
D(4) = (4-1)[D(3) + D(2)] = 3 × [2 + 1] = 9
D(5) = (5-1)[D(4) + D(3)] = 4 × [9 + 2] = 44
D(6) = (6-1)[D(5) + D(4)] = 5 × [44 + 9] = 265
Answer: D(6) = 265
Intuitive Understanding:
Total arrangements = 6! = 720
Derangements = 265
Probability of derangement ≈ 1/e ≈ 0.368 (for large n)
Real-World Application:
- Secret Santa where no one gets their own name
- Permutation ciphers in cryptography
- Hat-check problem in probability
Key Formula Memory Aid:
D(n) ≈ n!/e for large n (within 1 unit)
For 6: 720/e ≈ 265 ≈ 265
Common Error: Don't subtract n! - n, that's not derangement count.
Concept: Derangement - permutation where no element appears in its original position. Denoted as D(n) or !n.
Given:
- Number of items: 6
- Constraint: No item in its correct position
Derangement Formula:
D(n) = n! × [1 - 1/1! + 1/2! - 1/3! + ... + (-1)ⁿ/n!]
Or recursively: D(n) = (n-1)[D(n-1) + D(n-2)]
Step-by-Step Calculation:
D(0) = 1 (convention)
D(1) = 0 (one item must be in its position)
D(2) = 1 (only one swap possible)
For n ≥ 3, we use: D(n) = (n-1)[D(n-1) + D(n-2)]
Let's calculate:
D(0) = 1
D(1) = 0
D(2) = 1
D(3) = (3-1)[D(2) + D(1)] = 2 × [1 + 0] = 2
D(4) = (4-1)[D(3) + D(2)] = 3 × [2 + 1] = 9
D(5) = (5-1)[D(4) + D(3)] = 4 × [9 + 2] = 44
D(6) = (6-1)[D(5) + D(4)] = 5 × [44 + 9] = 265
Answer: D(6) = 265
Intuitive Understanding:
Total arrangements = 6! = 720
Derangements = 265
Probability of derangement ≈ 1/e ≈ 0.368 (for large n)
Real-World Application:
- Secret Santa where no one gets their own name
- Permutation ciphers in cryptography
- Hat-check problem in probability
Key Formula Memory Aid:
D(n) ≈ n!/e for large n (within 1 unit)
For 6: 720/e ≈ 265 ≈ 265
Common Error: Don't subtract n! - n, that's not derangement count.