12024 - Hats
Solution Description : Math Derangement Rule Factorial of n denoted by n! Derangement n denoted by !n Counting Derangement: Suppose that there are n persons numbered 1, 2, ..., n. Let there be n hats also numbered 1, 2, ..., n. We have to find the number of ways in which no one gets the hat having same number as his/her number. Let us assume that first person takes the hat i. There are n − 1 ways for the first person to choose the number i. Now there are 2 options:
From this, the following relation is derived:
|
||||||||||