Derangement Problem
Derangement is a permutation of elements where no element appears in its original position. For example, arranging n letters into n envelopes so that no letter goes into its correct envelope. The number of derangements of n items is denoted as !n (subfactorial) or D(n).
What You'll Learn
Introduction to Derangement Problem
Derangement is a permutation of elements where no element appears in its original position. For example, arranging n letters into n envelopes so that no letter goes into its correct envelope. The number of derangements of n items is denoted as !n (subfactorial) or D(n).
Prerequisites
How to Solve Derangement Problem Problems
Step 1: Identify that the problem requires no element in its original position
Step 2: Use derangement formula: !n = n! × [1 - 1/1! + 1/2! - 1/3! + ... + (-1)ⁿ/n!]
Step 3: Or use recurrence: !n = (n-1) × (!(n-1) + !(n-2))
Step 4: Know base values: !0 = 1, !1 = 0, !2 = 1
Step 5: Calculate step by step for the given n
Step 6: For partial derangements (exactly k fixed points), use rencontres numbers
Step 7: Verify the answer is reasonable (approximately n!/e for large n)
Example Problem
Example: In how many ways can 4 letters be placed into 4 envelopes so that no letter goes into its correct envelope? Solution: Step 1: This is a derangement problem with n = 4 Step 2: Using recurrence: !4 = (4-1) × (!3 + !2) Step 3: !2 = 1, !3 = (3-1) × (!2 + !1) = 2 × (1 + 0) = 2 Step 4: !4 = 3 × (2 + 1) = 3 × 3 = 9 Answer: 9 ways
Pro Tips & Tricks
- !n = round(n!/e) for n ≥ 1 (nearest integer)
- Recurrence: !n = (n-1)[!(n-1) + !(n-2)]
- Base values: !0 = 1, !1 = 0, !2 = 1, !3 = 2, !4 = 9, !5 = 44, !6 = 265, !7 = 1854
- Probability of derangement = !n/n! ≈ 1/e ≈ 0.3679 for large n
- For partial derangement (exactly k fixed points): C(n,k) × !(n-k)
- Derangement problems are also called 'hat-check problem'
Shortcut Methods to Solve Faster
Common Mistakes to Avoid
Practice Worksheets
Practice makes perfect! Work through these worksheets to master Derangement Problem. Each worksheet contains 20 questions with detailed explanations. Start from Worksheet 1 and progress through increasing difficulty levels.
Exam Importance
Derangement Problem is an important topic for various competitive exams. Here's how frequently it appears:
Ready to Master Derangement Problem?
Start with Worksheet 1 and work your way up to expert level! Each worksheet includes: