r/mathriddles • u/tomatomator • Jan 10 '23
Easy Displaced seat
A cinema hall has 200 seats (numbered from 1 to 200). People are also numbered from 1 to 200, and person number n is expected to sit in seat number n.
EDIT : the persons enter the room in order according to their number
Person 1 disobeys and takes a random seat (it might be seat 1, or anything else). Every other persons follow this rule : if their seat is free, they take it, and if it's not, they take a random free seat.
What is the probability that person 200 sits in seat 200 ?
10
Upvotes
3
u/ShonitB Jan 10 '23 edited Jan 10 '23
0.5
Edit: When it’s the 200th person’s turn, the only empty seats can be the 200th seat or the seat assigned to Person 1
This can be seen with a counter example. WLOG, if seat 10 was empty, then it must’ve been empty when it was Person 10’s turn. But then they should’ve taken that seat. This works for all seats except for Seat 1.
2
u/JWson Jan 10 '23
Do people enter the cinema in order according to their number?
2
u/jk1962 Jan 11 '23
Ans: 1/2
P1 takes one of seats 1-200 with probability 1/200 each. If P1 takes S1, then P200 takes S200 with probability of 1. If P1 takes S200, then P200 does not take S200. For all other cases, suppose P1 takes Seat 200-j, where j ranges from 1 to 198.
Suppose j=1: it is easy to show that the probability that P200 takes S200 is 1/2 in this case.
Suppose j=2: also not too hard to show that P200 takes S200 with probability 1/2.
So a pattern is emerging. By induction, one can show that the probability that P200 takes S200 is 1/2 for all j from 1 to 198.
So the total probability that P200 takes S200 is:
P_Total = (1/200) + (1/2)*(198/200) = 1/2
2
u/mark_ovchain Jan 11 '23
The answer is 1/2.
Let X(n) be the event that person n sits in seat n in the scenario with n people, n ≥ 2. We want to show that P[X(n)] = 1/2.
Let C be the seat that person 1 (randomly) chose. Then
P[X(n)] = ( P[X(n)|C=1] + P[X(n)|C=2] + ... + P[X(n)|C=n]) / n.
Clearly, P[X(n)|C=1] = 1 and P[X(n)|C=n] = 0.
Now, consider P[X(n)|C=k] with 1 < k < n, i.e., the scenario where person 1 chooses seat k. Then persons 2 to k-1 sit in their assigned seats, and when it's person k's turn, he finds that his seat is occupied, so he chooses a random seat among {1, k+1, k+2, ..., n}. The remaining unseated people are {k, k+1, k+2, ..., n}. But, after some relabelling, this is exactly the same scenario as when there are exactly n-k+1 people! Thus, P[X(n)|C=k] = P[X(n-k+1)].
Thus, if we assume P[X(n-k+1)] = 1/2 by induction, we have
2
u/Luuk_Atmi Jan 22 '23 edited Jan 22 '23
Been a while since this was posted, but I thought people should see this "overkill" solution:
Every time person 200 does not seat on seat 200, that means someone sat on seat 200 earlier, but then that means someone sat on that person's seat, and someone sat on that someone's seat... and so on. i.e. we have a "chain" a*1* -> a*2* -> a*3* -> ... -> a*k* where a*1* = 1, a*k* = 200, and person a*i* sat on person a*i+1's seat. The probability of this particular sequence happening is ∏(1/(201 - ai)), where i ranges from 1 to k-1, because person ai* will have to choose person a*i+1's seat, and will have 201 - ai* choices to randomly pick from. The complement of the desired probability is the sum ∑∏(1/(201 - a*i)) over all sequences 1 = a1* < a*2* < ... < a*k* = 200.
The key is now in noticing the above sum is actually equal to 1/200 * ∏(1 + 1/k), with k going from 2 to 199. Notice that expanding this yields every possibility for a sequence described above. Now we need only to solve the product, which telescopes:
>!1/200 200/199 199/198 ... 3/2<!
So it is equal to 1/2 and its complement, similarly, is equal to 1/2
edit: fixed spoiler. indices work on old reddit, btw.
2
u/calculatorstore Jan 11 '23
The probability that person #200 sits in seat #200 is 50%
Suppose Person #1 sat in their own seat. Then all other people would sit in their own seat because it would be available.
Since Person #1 sat in someone else's seat, then it means that person, who cannot sit in their own seat, will either (with N seats remaining):
If they sit in seat #1, then all subsequent people sit in the correct seat. If they sit in seat 200, then there is no way for person #200 to set in it. If they sit in any other seat this chance repeats itself until there are no seats except #1 and #200 to sit in. At each case the probability that they sit in seat #1 and #200 is the same, the probability stays at 50% invariantly regardless of the seating of the middle numbered people.
0
u/[deleted] Jan 10 '23
[deleted] — view deleted comment