# Interesting math puzzle.

**URL:** <https://boards.straightdope.com/t/interesting-math-puzzle/796322>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [September 14, 2017, 3:48pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322 "2017-09-14T15:48:29Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [September 14, 2017, 6:38pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/21 "2017-09-14T18:38:10Z")

</div>

Whenever the crazy passenger sits down, he’s going to cause one of three outcomes.

1. He randomly sits in his own seat. Your seat will be available when you board.

2. He randomly sits in your seat. This has no effect on the other passengers. But it leaves his seat empty. So you will sit in his seat when you board.

3. He randomly sits in another passenger’s seat. When that passenger boards, they will find their seat occupied and will seek out another seat. Effectively, they will now become another crazy passenger. If they sit in the original crazy passenger’s seat, it breaks the chain and your seat will be available. If they sit in your seat, it will leave the original crazy passenger’s seat available for you. And if they sit in another passenger’s seat, they will just pass the craziness on to that passenger.

So the only way the chain of seat changes gets broken is when somebody sits in your seat or the original crazy passenger’s seat. Which means you’re going to end up sitting in either your seat or the original crazy passenger’s seat, with it being a 50/50 chance which one it will be.

---

<div class="post-metadata">

**Author:** ![K364](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/k364/32/5_2.png) [@K364](https://boards.straightdope.com/u/K364)\
**Post date:** [September 14, 2017, 10:50pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/22 "2017-09-14T22:50:12Z")

</div>

My simulation says 50-50

I think Little Nemo is correct.

The first 2 outcomes are equally likely, and the 3rd outcome passes on the crazy and leaves the situation unresolved.

---

<div class="post-metadata">

**Author:** ![jtur88](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jtur88](https://boards.straightdope.com/u/jtur88)\
**Post date:** [September 15, 2017, 12:34am UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/23 "2017-09-15T00:34:26Z")

</div>

You have to confiders the possibility that if there is a crazy person on the manifest, there is also a sane one, or even that, by default, the rest are all sane. A sane person would just ask Mr. C what his assigned seat number is, and go and sit there. Nothing else is disrupted. There is 1/100 chance that that will be you, the only way you would not get your assigned seat.

---

<div class="post-metadata">

**Author:** ![Annoying\_Buzz](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Annoying\_Buzz](https://boards.straightdope.com/u/Annoying_Buzz)\
**Post date:** [September 15, 2017, 2:57am UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/24 "2017-09-15T02:57:35Z")

</div>

I did by drawing out branching possibility trees and summing the chances of each final outcome, and found it comes out to 50/50 each time.

If there are n assigned seats when Random Dude walks in, the chance you get your seat becomes:

1/n + (1/n(n-1) + 1/n(n-2) + … 1/2n) + (1/n(n-1)(n-2) + 1/n(n-1)(n-3) + … 1/2n(n-1))…and so on down to 1/n!

All these fractions can be written in terms of n! and they will sum to give 1/2.  
So no matter when Random Dude comes in, your chance of getting your seat is one half.

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [September 15, 2017, 3:25am UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/25 "2017-09-15T03:25:57Z")

</div>

But what if United drags out somebody (not crazy person) after he sits down?

---

<div class="post-metadata">

**Author:** ![Greg\_Charles](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Greg\_Charles](https://boards.straightdope.com/u/Greg_Charles)\
**Post date:** [September 15, 2017, 3:33am UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/26 "2017-09-15T03:33:11Z")

</div>

No Car Talk fans here? This was the puzzler from, wow, Oct. 4, 2004! Time flies! And it doesn’t even have a boarding pass!  
[http://www.cartalk.com/content/one-seat-left-it-yours](http://www.cartalk.com/content/one-seat-left-it-yours)

---

<div class="post-metadata">

**Author:** ![davidm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidm/32/225_2.png) [@davidm](https://boards.straightdope.com/u/davidm)\
**Post date:** [September 15, 2017, 4:33am UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/27 "2017-09-15T04:33:25Z")

</div>

> [@Greg\_Charles](#):
>
> No Car Talk fans here? This was the puzzler from, wow, Oct. 4, 2004! Time flies! And it doesn’t even have a boarding pass!  
> [http://www.cartalk.com/content/one-seat-left-it-yours](http://www.cartalk.com/content/one-seat-left-it-yours)

That’s a different problem. In that one, it’s always the first person who may end up in the wrong seat. In the problem I posted, the crazy person (or ticket dropper) could be anywhere in line from first place to ninety ninth. It may work out the same mathematically, but it’s two different problems.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [September 15, 2017, 1:09pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/28 "2017-09-15T13:09:29Z")

</div>

> [@Greg\_Charles](#):
>
> No Car Talk fans here? This was the puzzler from, wow, Oct. 4, 2004! Time flies! And it doesn’t even have a boarding pass!  
> [http://www.cartalk.com/content/one-seat-left-it-yours](http://www.cartalk.com/content/one-seat-left-it-yours)

That was the problem referred to here:

> [@MentalGuy](#):
>
> Here is a p[revious thread about this](http://boards.straightdope.com/sdmb/showthread.php?t=279195). The link to the puzzler is broken now, but it is the same problem.

---

<div class="post-metadata">

**Author:** ![Inner\_Stickler](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/inner_stickler/32/318_2.png) [@Inner\_Stickler](https://boards.straightdope.com/u/Inner_Stickler)\
**Post date:** [September 15, 2017, 1:19pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/29 "2017-09-15T13:19:13Z")

</div>

> [@davidm](#):
>
> That’s a different problem. In that one, it’s always the first person who may end up in the wrong seat. In the problem I posted, the crazy person (or ticket dropper) could be anywhere in line from first place to ninety ninth. It may work out the same mathematically, but it’s two different problems.

Isn’t that the same problem then, just the latter is a general case?

---

<div class="post-metadata">

**Author:** ![Doctor\_Jackson](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/doctor_jackson/32/32_2.png) [@Doctor\_Jackson](https://boards.straightdope.com/u/Doctor_Jackson)\
**Post date:** [September 15, 2017, 9:16pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/30 "2017-09-15T21:16:41Z")

</div>

The randomness part is what’s throwing me. Instead of the problem as given, think of it like this:

You have 100 marbles: 1 blue, 1 red and 98 yellow. You have a box with 100 slots: 1 blue, 1 red and 98 yellow. When the marbles are dropped into the box the blue one can land in any slot, yellow must land on yellow unless blue has previously been dropped AND the blue spot is open or contains a yellow marble, in which case they can land anywhere, and red must go last and land on whatever is left.

Now, drop the blue marble first. There is a 1 in 100 chance it lands in the blue (correct) slot, 1 in 100 that it lands in the red slot and 98 in 100 that it lands in any yellow spot.  
\*Scenario 1 and 2 resolve to 50/50 - in one you are assured of red being open at the end, in the other there is no chance.  
\*In the other 98 scenarios blue lands in a random yellow spot. Now drop the 98 yellow marbles one at a time to randomly fill the remaining 99 slots (97 yellow, 1 blue and 1 red). The odds of red being the only slot open after all yellow marbles are dropped is 1 in 98. Given this, the overall odds can’t be 50%

If the blue marble is dropped as the 99th marble then the odds of red being open are 50%, since by the rules all 98 yellows will be appropriately filled and only blue and red remain. Otherwise the odds change with the drop order. Or what am I missing?

---

<div class="post-metadata">

**Author:** ![borschevsky](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@borschevsky](https://boards.straightdope.com/u/borschevsky)\
**Post date:** [September 15, 2017, 9:43pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/31 "2017-09-15T21:43:45Z")

</div>

> [@Doctor\_Jackson](#):
>
> \*In the other 98 scenarios blue lands in a random yellow spot. Now drop the 98 yellow marbles one at a time to randomly fill the remaining 99 slots (97 yellow, 1 blue and 1 red).

This isn’t what the problem says, though. The 98 yellow marbles aren’t interchangeable. A yellow marble only falls randomly if its own spot is already filled.

---

<div class="post-metadata">

**Author:** ![Doctor\_Jackson](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/doctor_jackson/32/32_2.png) [@Doctor\_Jackson](https://boards.straightdope.com/u/Doctor_Jackson)\
**Post date:** [September 18, 2017, 3:16pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/32 "2017-09-18T15:16:08Z")

</div>

Ah, that’s what I missed!. The 50/50 answer makes more sense now.

---

<div class="post-metadata">

**Author:** ![fjs1fs](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@fjs1fs](https://boards.straightdope.com/u/fjs1fs)\
**Post date:** [September 18, 2017, 3:51pm UTC](https://boards.straightdope.com/t/interesting-math-puzzle/796322/33 "2017-09-18T15:51:20Z")

</div>

I agree with the 50% answer. Here’s how I did it:

Step 1  
Three scenarios  
A: Crazy sits in Crazy’s Seat (1% Chance) and if this happens I WIN (because everyone sits in their correct seat)  
B: Crazy sits in MY Seat (1% chance) and if this happens I LOSE (obvious reason)  
C: Crazy sits in “OTHER” Seat (Let’s call the other seat “Jack’s Seat”: (98% chance, and we still don’t know if I win)

Step 2  
I: Jack sits in Crazy’s Seat (50% chance x 98% from above = 49% of all outcomes)–I WIN  
II: Jack sits in MY Seat (50% chance x 98% from above = 49% of all outcomes)–I LOSE

Add up the “I WIN” scenarios = 50%

[Previous page](https://boards.straightdope.com/t/interesting-math-puzzle/796322.md?page=1)
