This Christmas, all 7 billion people on earth decides to participate in a huge Secret Santa event. The event will proceed as follows: Everyone will create 1 gift, and put it under a huge Christmas tree. Then, each person will receive exactly 1 gift at random from the gifts under the tree.
If p is the chance that somebody receives their own gift, what is 1 0 0 0 0 p , rounded down to the nearest integer?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let there are n persons who will participate in this game.
So number of ways thay can not receive their own gifts is n ! r = 0 ∑ n r ! ( − 1 ) r
Number of ways one person can take any gifts from n gifts is n ! .
So p is the probability that on can not receive their own gifts is p = n ! n ! ∑ r = 0 n r ! ( − 1 ) r
p = ∑ r = 0 n r ! ( − 1 ) r
So, probability that one person receive their own fifts is p ′ = 1 − p = 1 − ∑ r = 0 n r ! ( − 1 ) r = 1 − e 1 = 0 . 6 3 2 0 8
So number of ways thay can not receive their own gifts is n ! r = 0 ∑ n r ! ( − 1 ) r
Can you explain this?
Log in to reply
This is the formula of de-arrangements where each person can not receive their own gift
Problem Loading...
Note Loading...
Set Loading...
Since p is the probability that someone receives their own gift, 1 − p is the probability that nobody receives their own gift. This is known as a derangement , a permutation of elements where no element ends up in their original position. If we interpret the gifts as elements as the people as positions, where an element is in its original position if the gift was one's own gift, the fact that this is a derangement is clear.
I won't prove it here, but there is a very interesting formula for the number of derangements: the number of derangements of n elements is the integer closest to e n ! . (This can be derived from the formula n ! ∑ i = 1 n i ! ( − 1 ) i by taking the power series of e x , which in turn is derived by PIE.) Since n is very big, we can effectively treat the number as e n ! ; the loss of accuracy is insignificant. The number of permutations overall is n ! , so the probability that nobody receives their own gift is simply n ! n ! / e , the probability that we pick a derangement out of all possible permutations. This simplifies to e 1 , no matter the value of n (as long as it's large enough).
Finally, we have 1 − p = e 1 , so p = 1 − e 1 . Using calculator, we can compute that p = 0 . 6 3 2 1 2 … , so ⌊ 1 0 0 0 0 p ⌋ = 6 3 2 1 .