All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
A crazy passenger (Posted on 2002-04-18) Difficulty: 5 of 5
A line of 100 airline passengers is waiting to board the plain. They each hold a ticket to one of the 100 seats on that flight. (For convenience, let's say that the Nth passenger in line has a ticket for the seat number N.)

Unfortunately, the first person in line is crazy, and will ignore the seat number on their ticket, picking a random seat to occupy. All the other passengers are quite normal, and will go to their proper seat unless it is already occupied. If it is occupied, they will then find a free seat to sit in, at random.

What is the probability that the last (100th) person to board the plane will sit in their proper seat (#100)?

  Submitted by levik    
Rating: 4.5625 (16 votes)
Solution: (Hide)
The solution to this one is pretty mathimatically involved.

The crazy passenger that boards first has an equal chance of getting on any of the 100 seats. Therefore, the probability of this person sitting in a particular seat k is 1/100.

Now for any value of k, all the passengers up to k will board and take their seats as normal. Then the k-th passenger will find themselves out of a seat, and pick a random seat, in effect, becoming the crazy passenger for a problem with 101 - k passengers.

(For example if the crazy person takes the tenth seat, passengers 2 through 9 will be seated normally, and when passenger 10's turn comes, they can be considered the crazy passenger first in line of 91 people boarding a plane with 91 seats.)

Let us define P(n) as the probability that the last of n passengers boards their proper place under the conditions of the problem. So for solution, we are looking to find the value of P(100).

In a situation with n passengers, the first, "crazy", passenger can take any of the seats 1 .. n with the probability of 1/n. Also, given some seat number k that the crazy passenger may occupy, the problem will become that of 1+n-k passengers. Therefore, we can say that

P(n) = 1/n * (1 + P(n-1) + P(n-2) + ... + P(2))
(This problem does not make sense with less than 2 passengers. Also, it is easy to see that P(2) is 1/2)

What we would like to do is see what the value of P(n) is in terms of P(n-1).

P(n-1) = 1/(n-1) * (1 + P(n-2) + P(n-3) + ... + P(2)
P(n-1) * (n-1) = (1 + P(n-2) + P(n-3) + ... + P(2)
P(n) = 1/n * (1 + P(n-1) + P(n-2) + ... + P(2))
(P(n) * n) - P(n-1) = (1 + P(n-2) + ... + P(2))
So,
(P(n) * n) - P(n-1) = P(n-1) * (n-1)
(P(n) * n) - P(n-1) = (P(n-1) * n) - P(n-1)
(P(n) * n) = (P(n-1) * n)
P(n) = P(n-1)
This shows us that the problem's answer does not change if we add one more passenger. Starting at 2 passengers with the anser of 1/2, we can add passengers indefinitely, and still arrive at the same answer. Thus for the instance with 100 passengers, the probability of the last one getting to their proper seat is also 1/2, or 50%.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
simpler solutionSteven Lord2018-10-20 20:21:36
SolutionSolutionMath Man2018-10-20 14:36:32
ThanksJoan Smith2012-04-14 06:52:52
answer this topicCarolinaFloyd352011-12-25 00:36:30
some thoughts on the problemK Sengupta2007-04-29 01:01:52
SolutionAnd Anotherowl2005-08-18 02:33:43
SolutionSolutionowl2005-08-17 19:14:32
Other probabilitiesCharley2005-05-26 23:01:21
re: Simpler solutionGamer2004-08-16 22:34:46
Solutioncalm down read my answeromar2004-02-21 15:43:24
Simpler solutionRichard Briscoe2003-09-03 08:37:46
re(3): re SolutionCheradenine2002-06-25 01:05:30
re(2): re SolutionCheradenine2002-06-25 01:03:44
solution is wrongquddous behrouzi2002-06-21 09:59:32
re: re Solutionlevik2002-06-19 10:43:24
re SolutionCheradenine2002-06-13 03:45:35
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (13)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information