# A math riddle for you. Feel free to submit your own.

**URL:** <https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [October 19, 2018, 12:15pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205 "2018-10-19T12:15:49Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [October 23, 2018, 5:11am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/81 "2018-10-23T05:11:37Z")

</div>

> [@iamthewalrus\_3](#):
>
> Ok, I’ve been thinking about the 124-card deck, and here’s something that’s interesting: 5! (the number of ways to arrange 5 cards) is 120, which is exactly how many cards are unknown in a 124-card deck case of this problem. Of course, the fifth card in our arrangement is hidden, but since we had it to begin with, maybe there’s a way to choose the last card so that it’s the only fixed point?.

I think you’ve demonstrated that a deck of size 124 is the absolute maximum for which an encoding guarantee is possible. It may seem surprising that we can succeed with 124.

_ **I will not post a solution in the thread** _; for one thing I don’t know a succinct way to present a solution. I just now whipped together a 100-line program of dense C that implements and proves a solution (the encoder literally tries all 5! orderings until it finds one that works :smack:). I will e-mail that code to any C programmer on request or, _when the Sultan CODE tag is fixed_, post it here.

---

<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:** [October 23, 2018, 6:53am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/82 "2018-10-23T06:53:53Z")

</div>

This is more of a math paradox. It’s based on a YouTube video.

There’s a “game”. The rules of the game are simple.

A person walks into a room and rolls a pair of standard dice. If the result is snake eyes (a pair of ones) the person is immediately killed and the game is over. If the person rolls anything else they can leave the room unharmed.

If the first person didn’t roll snake eyes, a new group is sent into the room. This time there are ten people in the group. One person rolls the pair of dice for the entire group with the same results; a pair of ones means everyone in the room is immediately killed and the game ends, any other result means everyone gets to leave unharmed and another group is sent in.

Every group is ten times larger than the previous group. Every group faces one dice roll, which effect everyone in the group. The game continues until one group is killed and then ends. Nobody ever goes back into the room a second time. Assume, for the sake of this post, that an infinite amount of people are available and the room can hold all of them.

So if a person plays this game, what are the odds that they will survive?

One way to look at it is the probability of the dice roll. The odds of rolling a pair of ones is 36-1. Everyone in the game faces a single dice roll with the same odds. So the chances of being killed are approximately 2.8% and the chances of survival are approximately 97.2%.

Another way to look at it is to consider the ratios. If the first group (of one person) rolls snake eyes, they are killed and the game ends with one person killed and no survivors (a 100% casualty rate). If the second group (of ten people) rolls snake eyes, then the one person from the first group survived and the ten people in the second group are killed - so ten out of eleven people in the game are killed (a 90.9% casualty rate). If the third group is killed, you have a hundred people die out of a total of one hundred and eleven (a 90% casualty rate). If the fourth group is killed, you have a 1000 out of a total of 1111. If it’s the fifth group, you have 10,000 killed out of 11,111. The sixth group, 100,000 killed out of 111,111. And so on. In other words, approximately ninety percent of the people in the game will be killed and approximately ten percent will survive.

So how do you have a game where all of the players individually have a 97.2% of survival but collectively only 10% of them survive?

---

<div class="post-metadata">

**Author:** ![Dead\_Cat](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dead\_Cat](https://boards.straightdope.com/u/Dead_Cat)\
**Post date:** [October 23, 2018, 10:17am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/83 "2018-10-23T10:17:47Z")

</div>

> [@Reindeer\_Flotilla](#):
>
> Here’s one I liked: A mom is 21 years older than her son. In 6 years, she will be 5 times as old. Where is the father now?
> 
> What’s clever about this riddle is doing the math actually produces the answer.

Nice. I initially thought there was an error, or a mistake in my algebra, then realised that presumably the intended answer is

The father is in bed with the mom.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [October 23, 2018, 10:19am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/84 "2018-10-23T10:19:28Z")

</div>

> [@Little\_Nemo](#):
>
> … Every group is ten times larger than the previous group. Every group faces one dice roll, which effect everyone in the group. The game continues until one group is killed and then ends. Nobody ever goes back into the room a second time. Assume, for the sake of this post, that an infinite amount of people are available and the room can hold all of them.
> 
> So if a person plays this game, what are the odds that they will survive?
> 
> … So how do you have a game where all of the players individually have a 97.2% of survival but collectively only 10% of them survive?

VERY cute. I’ll Spoiler my “solution”, though it isn’t very interesting.

[SPOILER]It may be tempting to try to map this to something like Simpson’s Paradox, but that can’t be done — it’s _too simple_ to be Simpsoniacal! 🙂

_ **It’s just another Paradox of Infinity** _. Make a change to force things to be finite and the contradiction disappears.

For example, change the rules so that there are only a googol-plex (10[sup]10[sup]100[/sup][/sup]) of humans available and that if snake-eyes are never rolled in a googol (10[sup]100[/sup]) shakes then everyone survives. The odds of that happening are miniscule but UIAM it is enough to drop the 90% figure back down to 2.8%![/SPOILER]

---

<div class="post-metadata">

**Author:** ![Dead\_Cat](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dead\_Cat](https://boards.straightdope.com/u/Dead_Cat)\
**Post date:** [October 23, 2018, 10:21am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/85 "2018-10-23T10:21:44Z")

</div>

> [@Little\_Nemo](#):
>
> This is more of a math paradox. It’s based on a YouTube video.
> 
> There’s a “game”. The rules of the game are simple.
> 
> A person walks into a room and rolls a pair of standard dice. If the result is snake eyes (a pair of ones) the person is immediately killed and the game is over. If the person rolls anything else they can leave the room unharmed.
> 
> If the first person didn’t roll snake eyes, a new group is sent into the room. This time there are ten people in the group. One person rolls the pair of dice for the entire group with the same results; a pair of ones means everyone in the room is immediately killed and the game ends, any other result means everyone gets to leave unharmed and another group is sent in.
> 
> Every group is ten times larger than the previous group. Every group faces one dice roll, which effect everyone in the group. The game continues until one group is killed and then ends. Nobody ever goes back into the room a second time. Assume, for the sake of this post, that an infinite amount of people are available and the room can hold all of them.
> 
> So if a person plays this game, what are the odds that they will survive?
> 
> One way to look at it is the probability of the dice roll. The odds of rolling a pair of ones is 36-1. Everyone in the game faces a single dice roll with the same odds. So the chances of being killed are approximately 2.8% and the chances of survival are approximately 97.2%.
> 
> Another way to look at it is to consider the ratios. If the first group (of one person) rolls snake eyes, they are killed and the game ends with one person killed and no survivors (a 100% casualty rate). If the second group (of ten people) rolls snake eyes, then the one person from the first group survived and the ten people in the second group are killed - so ten out of eleven people in the game are killed (a 90.9% casualty rate). If the third group is killed, you have a hundred people die out of a total of one hundred and eleven (a 90% casualty rate). If the fourth group is killed, you have a 1000 out of a total of 1111. If it’s the fifth group, you have 10,000 killed out of 11,111. The sixth group, 100,000 killed out of 111,111. And so on. In other words, approximately ninety percent of the people in the game will be killed and approximately ten percent will survive.
> 
> So how do you have a game where all of the players individually have a 97.2% of survival but collectively only 10% of them survive?

And, as a corollary, your odds of death are exactly the same whichever group you are in based on the first way of looking at it, but on the second way of looking at it you are much more likely to die being in a bigger group than a smaller group.

I guess the answer is along the lines of The first survival figure is based on the independent events of the dice rolls, whereas the second is dependent on all of the dice rolls

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [October 23, 2018, 4:50pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/86 "2018-10-23T16:50:24Z")

</div>

> [@septimus](#):
>
> I think you’ve demonstrated that a deck of size 124 is the absolute maximum for which an encoding guarantee is possible. It may seem surprising that we can succeed with 124.
> 
> _ **I will not post a solution in the thread** _; for one thing I don’t know a succinct way to present a solution. I just now whipped together a 100-line program of dense C that implements and proves a solution (the encoder literally tries all 5! orderings until it finds one that works :smack:). I will e-mail that code to any C programmer on request or, _when the Sultan CODE tag is fixed_, post it here.

Ha ha. Yeah, I’ve been thinking about it, and I might have a solution, but I haven’t convinced myself that it actually works yet. I’d probably have to write some code to try it out.

If anyone who doesn’t know the answer is interested in puzzling it out with me, I’ll post what I have.

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [October 23, 2018, 5:12pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/87 "2018-10-23T17:12:18Z")

</div>

> [@Little\_Nemo](#):
>
> So how do you have a game where all of the players individually have a 97.2% of survival but collectively only 10% of them survive?

Isn’t this just the difference between dependent and independent events?

The 97.2% chance of survival is based on the probability of an independent die roll. The 10% total survival can be adjusted any way you want by varying the size of the group because all those deaths are dependent on a single event.

---

<div class="post-metadata">

**Author:** ![begbert2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/begbert2/32/3357_2.png) [@begbert2](https://boards.straightdope.com/u/begbert2)\
**Post date:** [October 23, 2018, 10:30pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/88 "2018-10-23T22:30:00Z")

</div>

> [@Little\_Nemo](#):
>
> So if a person plays this game, what are the odds that they will survive?

[spoiler]If a person _plays the game_, that means they actually end up in the room while a die is rolled, which means that regardless of how many people have been in the room before them or how many people are in the room with them, their chances of survival are 35/36.

The odds of whether a person will die if they’re merely _queued up_ to play the game is a different question entirely - and their odds of survival are essentially 100%. The queue has been stated to be infinitely long, the odds are extremely high that a randomly selected person from the queue will be in a later group, and the odds are low that a later group will be invited into the room at all, since any earlier group losing will end the game. Certainly they have better than a 35/36 chance of surviving because their survival rate only drops that low once you’ve ruled out the possibility that a prior group lost.[/spoiler]

---

<div class="post-metadata">

**Author:** ![Lord\_Mondegreen](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lord\_Mondegreen](https://boards.straightdope.com/u/Lord_Mondegreen)\
**Post date:** [October 23, 2018, 11:03pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/89 "2018-10-23T23:03:14Z")

</div>

> [@excavating\_for\_a\_mind](#):
>
> Suits are typically ranked Clubs Diamonds Hearts Spades.

Thanks, I didn’t know that. I think I’ll teach my younger daughter this trick so we can amaze my wife and older daughter.

---

<div class="post-metadata">

**Author:** ![Reindeer\_Flotilla](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reindeer_flotilla/32/3024_2.png) [@Reindeer\_Flotilla](https://boards.straightdope.com/u/Reindeer_Flotilla)\
**Post date:** [October 24, 2018, 12:04am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/90 "2018-10-24T00:04:22Z")

</div>

> [@Dead\_Cat](#):
>
> Nice. I initially thought there was an error, or a mistake in my algebra, then realised that presumably the intended answer is
> 
> The father is in bed with the mom.

You presume 100% correctly. Well played!

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [October 24, 2018, 10:07am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/91 "2018-10-24T10:07:58Z")

</div>

> [@excavating\_for\_a\_mind](#):
>
> Suits are typically ranked Clubs Diamonds Hearts Spades.

This order (which is alphabetic order) is in _ascending_ order of usual rank.

That is: Spades is the highest suit, then hearts, diamonds; and clubs is the lowest-ranked of all. _ **That suit ordering is NOT universal** _, but it is the ordering in contract bridge and, I think, is the default ordering in the U.S.A.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [October 24, 2018, 10:55am UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/92 "2018-10-24T10:55:37Z")

</div>

I imagine every doper knows this one, but just in case…

A hunter sets out from base camp, looking for a bear. He travels one mile south.

No bear, so he travels another mile east.

Still doesn’t see a bear. He continues a mile north, finds and shoots a bear, and notices that he has returned to base camp.

What color is the bear?

---

<div class="post-metadata">

**Author:** ![Ludovic](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Ludovic](https://boards.straightdope.com/u/Ludovic)\
**Post date:** [October 24, 2018, 2:02pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/93 "2018-10-24T14:02:07Z")

</div>

Probably [light brown](https://en.wikipedia.org/wiki/Grizzly%E2%80%93polar_bear_hybrid) :eek:

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [October 24, 2018, 2:06pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/94 "2018-10-24T14:06:25Z")

</div>

> [@Musicat](#):
>
> I imagine every doper knows this one, but just in case…
> 
> A hunter sets out from base camp, looking for a bear. He travels one mile south.
> 
> No bear, so he travels another mile east.
> 
> Still doesn’t see a bear. He continues a mile north, finds and shoots a bear, and notices that he has returned to base camp.
> 
> What color is the bear?

Hmm. The classic answer iswhite, because the base camp is at the north pole.butthere are an infinite number of points where base camp could be, on a latitude circle that is 1 mile north of another latitude circle having a circumference of 1 mile, which would be close to the \*south \*pole. In which case there are no bears at all.

---

<div class="post-metadata">

**Author:** ![Left\_Hand\_of\_Dorkness](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/left_hand_of_dorkness/32/7156_2.png) [@Left\_Hand\_of\_Dorkness](https://boards.straightdope.com/u/Left_Hand_of_Dorkness)\
**Post date:** [October 24, 2018, 6:49pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/95 "2018-10-24T18:49:54Z")

</div>

> [@CookingWithGas](#):
>
> Hmm. The classic answer iswhite, because the base camp is at the north pole.butthere are an infinite number of points where base camp could be, on a latitude circle that is 1 mile north of another latitude circle having a circumference of 1 mile, which would be close to the \*south \*pole. In which case there are no bears at all.

Given that the puzzle says he shot a bear, your objection doesn’t really hold.

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [October 24, 2018, 7:11pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/96 "2018-10-24T19:11:08Z")

</div>

> [@CookingWithGas](#):
>
> Hmm. The classic answer iswhite, because the base camp is at the north pole.butthere are an infinite number of points where base camp could be, on a latitude circle that is 1 mile north of another latitude circle having a circumference of 1 mile, which would be close to the \*south \*pole. In which case there are no bears at all.

In the classic version the hunter goes a mile south, goes east (or west) _until he spots a bear_, shoots it, then goes a mile north and ends up at base camp. It isn’t specified how far east he travels. There’s only one spot on Earth that you’ll end up at the same place no matter how far east or west you traveled.

---

<div class="post-metadata">

**Author:** ![That\_Don\_Guy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/that_don_guy/32/538_2.png) [@That\_Don\_Guy](https://boards.straightdope.com/u/That_Don_Guy)\
**Post date:** [October 24, 2018, 7:33pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/97 "2018-10-24T19:33:34Z")

</div>

> [@pulykamell](#):
>
> As a kid, one of my favorite misdirection groaner versions of this type of puzzle started with “Ok, you’re [or I’m] driving a bus. At the first stop X amount of people get on. At the next stop, half the people get off, and 3 people get on.” And then you just spin in with some types of seemingly complicated, but doable math for a couple rounds. At the end, the question is “what is the name of the bus driver?”

A version of this appears in the 2019 _Old Farmer’s Almanac_.

> [@Mr\_Shine](#):
>
> A man offers you a car if you can choose which one of three doors it’s behind. Behind the other 2 are goats. After you choose, he opens one of the other doors and reveals a goat. He then offers you the chance to switch doors. Should you, or does it not matter?

Ah, the old Monty Hal-er, Wayne Brady problem.

And the answer depends on semantics - specifically, when it says “he opens one of the other doors and reveals a goat,” is it clear that he was going to make sure that he opened a door with a goat, or did he open a door at random and it just happened to have a goat behind it?

> [@markn\_1](#):
>
> The way I’ve always heard this one is the final question is “how many stops did the bus make”? I think this is better because the answer similarly turns out to be much simpler than expected, but in this case the questionee won’t be able to give the right answer (assuming he was keeping track of the passengers rather than the stops).

There is a variation of this in one of Raymond Smullyan’s books - _Alice in Puzzle-Land_, I think - where, IIRC, the question was, “How many people got off at the second stop?” The person being asked the question (Alice?) says, “I wasn’t counting that!”, and the asker responds, “You must count everything, because everything counts!” (Another of the questions was the one about dividing an integer by a fraction and then adding another integer.)

> [@F.U.Shakespeare](#):
>
> A variation of a joke from “Hee Haw”:
> 
> At the age of 30, a woman gives birth to a daughter.
> 
> Ten years later, the daughter is 10, and the mother is 40, or four times as old.
> 
> Five more years later, the daughter is fifteen, and the mother is 45, or only three times as old.
> 
> Fifteen more years later, the daughter is thirty, and the mother is 60, or only twice as old.
> 
> Question: how long until they’re both the same age?

This predates _Hee-Haw_; it’s a classic Abbott & Costello routine, and appears in the 1941 movie _Buck Privates_.

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [October 24, 2018, 7:43pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/98 "2018-10-24T19:43:17Z")

</div>

> [@Left\_Hand\_of\_Dorkness](#):
>
> Given that the puzzle says he shot a bear, your objection doesn’t really hold.

It’s not an objection, it’s a statement of fact.

---

<div class="post-metadata">

**Author:** ![begbert2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/begbert2/32/3357_2.png) [@begbert2](https://boards.straightdope.com/u/begbert2)\
**Post date:** [October 24, 2018, 8:16pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/99 "2018-10-24T20:16:17Z")

</div>

> [@That\_Don\_Guy](#):
>
> Ah, the old Monty Hal-er, Wayne Brady problem.
> 
> And the answer depends on semantics - specifically, when it says “he opens one of the other doors and reveals a goat,” is it clear that he was going to make sure that he opened a door with a goat, or did he open a door at random and it just happened to have a goat behind it?.

That doesn’t matter, actually - if he picks the door to open randomly it only adds two caveats:

1. If he opens a door and shows the _car_, then switch to it!

2. If he opens _your_ door and shows a goat, then switch to something else!

Presuming that none of those conditions occurs, then you should still switch when he opens a door and shows a goat.  
The thing that should actually worry you is if he didn’t have to open a door. If he had the option of refraining from doing so, then he might be only doing it if he knows you have the right one and wants to lure you away from it.

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [October 24, 2018, 8:23pm UTC](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205/100 "2018-10-24T20:23:47Z")

</div>

> [@begbert2](#):
>
> That doesn’t matter, actually - if he picks the door to open randomly it only adds two caveats:
> 
> 1. If he opens a door and shows the _car_, then switch to it!

You can’t switch to a door once he opens it.

[Previous page](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205.md?page=4)

[Next page](https://boards.straightdope.com/t/a-math-riddle-for-you-feel-free-to-submit-your-own/823205.md?page=6)
