1000 people entered a game.
First, they have to be separated into several groups (the number of people in each group doesn't have to be the same). The way to separate them is not usual.
Every player is labeled Player 1 to Player 1000.
Prepare 1000 cards. Numbers 1 to 1000 is written on them.
Every player will draw one card randomly, and they don't put it back.
Every player have to find the player they drew out. (e.g. If Player 1 drew out number 353, then he have to find Player 353.)
This way, several groups (or probably one) will form. (e.g. If P1 drew out 353, P353 drew out 247, P247 drew out 97, P97 drew out 1, then P1, P353, P247, P97 will form a group; if P2 drew out 2, then there will only be one person in his group.)
So, what is the expected value of the amount of groups formed?
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 the answer for n people be g ( n ) . Consider the card the first person draws, c 1 . If it shows c 1 = 1 , a group is formed, and we can exclude person 1 from subsequent considerations, making our answer 1 + g ( n − 1 ) . If it shows c 1 = x = 1 , we can unite persons 1 and x into a new person with number 1 and drawn card c x , the card person x drew. Thus in this case the answer is simply g ( n − 1 ) . This leads to the recurrence relation g ( n ) = n 1 + g ( n − 1 ) . Thus g ( n ) = i = 1 ∑ n i 1 ≈ ln n + γ , with γ ≈ 0 . 5 7 7 2 being the Euler-Mascheroni constant. For n = 1 0 0 0 , we have g ( 1 0 0 0 ) ≈ 7 . 4 8 5 .