Lost boarding pass

There are 100 people in line to board a plane with 100 seats. The first person has lost his boarding pass, so he takes a random seat.

Everyone that follows takes their assigned seat if it's available, but otherwise takes a random unoccupied seat. What is the probability the last passenger ends up in his/her assigned seat, as a decimal?


The answer is 0.5.

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.

7 solutions

Discussions for this problem are now closed

Caleb Stanford
Jan 29, 2014

Number the people 1, 2, 3, and so on, so that 1 boards first, 2 boards next, and 100 boards last.

First of all, observe that for 2 n 100 2 \le n \le 100 , * *n 's seat is always taken after she finishes boarding.**. This is clear since if it isn't taken when she boards the plane, she will take it.

It follows that when 100 is getting on the plane, seats 2 through 99 are taken. Therefore, 100 will either get his own seat, or he will get 1's seat. That is, P ( 100 gets his seat ) + P ( 100 gets 1’s seat ) = 1 (*) P(\text{100 gets his seat}) + P(\text{100 gets 1's seat}) = 1 \quad \quad \tag{*}

However, 1's seat and 100's seat are indistinguishable for the first 99 passengers . If any of them are to take either 1's seat or 100's seat, they pick randomly between the two. Therefore, the chance that one of the first 99 passengers takes 1's seat is equal to the chance that one of them takes 100's seat. But one of the first 99 passengers takes a given seat if and only if 100 does not get that seat. So we have P ( 100 doesn’t get seat 1 ) = P ( 100 doesn’t get seat 100 ) P(\text{100 doesn't get seat 1}) = P(\text{100 doesn't get seat 100}) which is the same as P ( 100 gets his seat ) = P ( 100 gets 1’s seat ) P(\text{100 gets his seat}) = P(\text{100 gets 1's seat}) So from ( ) (*) , P ( 100 gets his seat ) = 1 2 . P(\text{100 gets his seat}) = \boxed{\frac{1}{2}}.

Excellent explanation!

Chetan Panchal - 7 years, 4 months ago

I don't understand this solution. What you're proposing is that for n seats, the probability of last person getting the correct seat is 1/2. Let's test this by using n = 3.

Let's have our seats then: [ ] [ ] [ ]

Let's say that mine seat is always the last on the right, and I'm last person going in. Let's name 1 2 3 people that go in, with me being 3 (as the last person going in). As such these will be the scenarios of seating:

[1] [2] [3]

[2] [1] [3]

[1] [3] [2]

[2] [3] [1]

[3] [1] [2]

[3] [2] [1]

As you can see, for n = 3, I get my seat 2/6 of time = 1/3.

Pawel Trauth - 5 years, 4 months ago

The idea as I understand it is that if someone randomly takes the first person's seat, it closes the loop so to say leaving everyone that follows to take their own seat in which case person 100 gets their own seat. If someone doesn't take ones seat that leaves it for person 100.

Christopher Sandler - 5 years, 4 months ago

So, if no one takes 1's seat, there is a 50/50 chance that 100 will get the correct seat. But this is only 1 case. What about all the other possibilities where a different passenger takes 1's seat and closes the loop, or all the other cases where all the loops close well before 100's turn? The assumption "seats 2 through 99 are taken" does not hold. And, very specifically, "Therefore, 100 will either get his own seat, or he will get 1's seat." does not compute. I wish I could offer a valid solution, but I can't. I just don't find this one acceptable.

Tom Capizzi - 5 years ago

@Tom Capizzi The question is about the probability of just the last person getting their seat, and is unaffected by the seats 1-99. There are three cases to consider.

A) If passenger 1 randomly selects their own seat, then everyone gets their correct seating. That's a 1/100 case.

B) If passenger 1 randomly selects passenger 100's seat, then 2-99 will each take their correct seats, leaving 100 with 1's seat. That's a 1/100 case.

C) If passenger 1 takes any other seat, i.e., 2-99, then every other passenger 2-99 will take their correct seat, and the passenger whose seat was taken by 1 will take either 1's or 100's seat. They have a 50/50 shot of taking 1's seat or 100's seat, since it's a random pick to them. That's a 98/100 case, and the odds on that case are 50%.

"2-99 will take their own seats" is written into the problem, not an assumption made for simplicity's sake. The only choices that matter are 1's pick, x's pick, and 100's pick, and x's pick only applies in case C.

Brian Egedy - 5 years ago

@Brian Egedy What I don't understand is why are we assuming it's 1 or 100s seat they will take. Say if number 1 sits in number 2 seat, he could sit anywhere, either 1's seat or 3-100's. Would 100 not have a complete minimal chance of getting his seat? Due to others sitting randomly?

Aaron Curry - 5 years ago

@Aaron Curry I may have misphrased it.

If 1 takes 2's seat, then 2 takes another seat. If they take 1 or 100, everyone else seats as assigned, and so on.

If 2 takes another passenger's seat, then that passenger becomes the X factor, choosing a random seat. Regardless of which passenger X is, the chances of choosing 1 or 100's seat are the same.

For instance, 2 takes 55. 3 through 54 take their own seats. 55 now has to choose from 1 or 56-100. If they take 87's seat, then 56-86 will take their assigned seats, and now 87 must choose between 1 or 88-100. If 87 takes 95's seat, then 89-94 will take their assigned seats, 95 must choose between 1 and 96-100. If 95 now takes 1's seat, all the rest of the passengers will sit as assigned. If 95 now takes 100's seat, 96-99 will sit as assigned, and 100 will take 1.

Do you see that it doesn't matter which passenger takes seat 1 or seat 100, as far as the probability of 100 taking their assigned seat?

Brian Egedy - 4 years, 11 months ago

In your 3 seat scenario, you're ignoring the fact that passenger 2 will take seat 2 if it's available.

[1] [2] [3]

[3] [2] [1]

[2] [1] [3]

[3] [1] [2]

You can't take 2's seat. Only 1 or 2 can be seated in 2's seat, since 2 will take it if 1 doesn't first.

So, there are only 4 potential combinations, and you get your seat in two of them.

Brian Egedy - 5 years, 2 months ago

Oh, I reread this and I understood it incorrectly - it's the first passenger that takes the random seat, and later on everybody knows where they are seating. As such for my 3 chairs, these are the possible scenarios:

[1] [2] [3]

[2] [1] [3]

[3] [1] [2]

[3] [2] [1]

As such, last passenger gets the last chair 1/2 of time

Pawel Trauth - 5 years, 1 month ago

Yes, that is exactly what I was thinking. Great problem.

Junlin Yi - 7 years, 4 months ago

i love this!!!

Lubega Jonah Mukisa - 7 years, 1 month ago

nice...

Amlan Mishra - 7 years, 4 months ago

Funny, but I guessed 0.49 and it counted it right XD But really nice explanation.

Thomas Luo - 7 years, 3 months ago

Great!

JejeRem JereRem - 7 years, 2 months ago

i overlooked the fact that for the first 99 passengers 1's seat and 100' s seat are indistinguishable:(

Jayashree Lakshmanan - 7 years, 2 months ago

I don't why it is a given that n's seat is always taken

Jöšh K-ling - 5 years, 4 months ago

there are 2 possibilities:

  1. First person gets his correct seat.

  2. First person does not get his seat, so probability = 1/((100^100)*0.5^4950), which is basically 0.

So, to find the answer, take the average of the probabilities of both scenarios while keeping in mind the probabilities of these scenarios happening.

(I got this question wrong cause I did not do the last step)

Julian Poon - 7 years, 2 months ago
Param Awasthi
Jan 29, 2014

Last person will either find the allotted seat for him or the seat for the first person vacant. Any other seat can't be vacant as if it was the case , it would have been already occupied by the real user.

First possibility is that every individual takes their designated seats..its probability is 1/100.. Second probability is first individual neither takes his nor 100th passenger designated seat..he can chose any seat between 98 left seats..its probaility is 98/100..nw rest of them will be seated at whatever position they like except for the seat designated for 100th passenger...when 99th and 100rh passenger board the plane, they will see two seats ,one that was booked for 100th passenger and one other..and they shud be seated such that 100th passwnger takes iys original seat and rest one shud take any other seat...its probalility is 1/2.. So total probability in 2nd case is 98/100*1/2=98/200 Answer= 1/100+98/200=1/2 =0.50

Ayush Shukla - 7 years, 4 months ago

There are two chances, geting assigned seat or not, Therefore p(geting assigned seat ) = 1/2 = .5

There's two outcomes of me winning the lottery. I either win it or I don't. Therefore I have a 50% chance of winning the lottery.

Eric Kim - 4 years, 10 months ago

...it's wrong induction, just a coincidence

Ken Yang - 4 years, 11 months ago
Lee Nguyen
Mar 31, 2014

Asume that 1 is the value of a person get his right seat, otherwise, the value is 0 (ex. 00...00 is the case that nobody get his right seat. 111..111 is the case that everyone get his seat). There 100 people ==> 2^100 possibility. So the possibility for the final person get his right seat is: 2^99/2^100 = 1/2 ('cause the final person's value is 1, first 99 persons can be 1 or zero)

'Chinmay Nerkar
Feb 1, 2014

let us first calculate total cases such that last passenger's seat is occupied by someone else

if 1st passenger takes last passenger's seat ie 1 way if 1st passenger takes the seat of 99th passenger then 100's seat can be occupied by 99th passenger ie 1 way

if 1st passenger takes the seat of 98th passenger then 100's seat can be occupied in 2 ways(by 99th or by 99th)

if 1st passenger takes the seat of 97th passenger then 100's seat can be occupied in 4 ways(97th pass. occupies 98th place and then 100th place can be occupied in two ways as above,97th occupies 99th's place and 97 occupies 100's place)

similarly if 1st passenger takes 2nd seat then total no. of ways such that 100th passenger seat is taken by someone else is 2^97

total ways in which last passenger does not get his seat is

2^97 + 2^96 + ........ 2 + 1 +1 =

2^98

to calc. total possibilities

if 1st passenger takes 100th's seat then 1 way

if 1st passenger takes 99th's place then 2 ways(ie 99th will take 100th's seat or 1st seat ;others will take their own seats)

similarly if 1st passenger takes 2nd seat then total ways are 2^ 98

if 1st passenger takes his own seat ,then seats are occupied in 1 way. thus total ways are

2^98 + 2^97+........2+1+1

= 2^99

therefore req. probability is

1-(2^98/2^99) =

0.50

when 1st passenger takes 98th seat then 100th seat can be taken by either 98th passenger or 98th will takes 99th seat and 99th will take 100th seat ie 2 ways sorry for (99th or 99th ) it is (99th or 98th)

'Chinmay Nerkar - 7 years, 4 months ago

Case 1

the 1st person chooses the right seat - probability 1/100

Case 2 the 1st person chooses the 99th seat (i.e seat of 99th person),

then the 99th person has 2 possibilities of choosing (since it is random)

Therefore probability = 1/100 * 1/2

Case 3

The 1st person chooses the 98th seat

then the 98th person has 3 ways of choosing his seat, the 97th person has 2 ways of choosing

Thus there are totally 6 (3!) of choosing the remaining seats out of which the last person gets the right seat in (2!)/(3!) ways (more generally (n-1)! / (n!) = 1/n

Of course multiplied by 1/100

So, the total probability = 1/100(1 + 1/2 + 1/3 +1/99)

(which includes the possibility that the first selects the right seat)

Of course, this scenario is obviously unrealistic since people who have their boarding passes and know their seats would swap their current seat for their original seat. This also assumes that the first guy either does not know his seat or has probably booked late and is trying to get

  • a window seat / an empty set of seats / aisle seat / seat besides someone you know (or want to know !!!! :-))

The best thing for the airline to do in such cases would be to allow the guys who have boarding passes to board first, then try to connect to the booking system and call the rest of the people by names (in case they do not know their seat numbers)

'

Sundar R - 7 years, 4 months ago
Ron van den Burg
Jan 29, 2014

For 1 < = i < = 98 1 <= i <= 98 , passenger i i has three options:

  1. He/she chooses the first passenger's seat. Chance: 1 / r 1/r , where r = 101 i r=101-i equals the number of remaining seats. This option implies succes for the last passenger.

  2. He/she chooses the last person's seat. Chance is also 1 / r 1/r . Implies failure.

  3. He/she chooses another seat, say j j 's seat. Then the procedure advances with passengers seating their designated seats (optionally none) until passenger j j 's turn. Chance is 1 r 2 P j \frac {1}{r-2} * P_j for every j j ; where P j P_j equals the chance of succes if it is passenger nr j j 's turn and both the first passenger's seat and the last passenger's seat are still unseated.

This algorithm either ends preemptively with success or failure (options 1 and 2; chances of success and failure are equal), or ends with passenger 99 99 who has two seats left with also 50% chance of success.

Akshay Patel
Mar 8, 2014

It's Just simple. Last person may get his own seat or any other seat with equal probability.So, ans is 0.5

There's two outcomes of me winning the lottery. I either win it or I don't. Therefore I have a 50% chance of winning the lottery.

Eric Kim - 4 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...