Box of tablets, whole or broken: solution requiredSliding Bolt Puzzle - fastest solution (time-wise)Help understanding the solution to a “shooting puzzle”Jewels in the boxCookie Box Mix-upThe Fanatic Fever(twist on the 5 pirates puzzle)Optimal solution to a modified poker gameNo broken eggs puzzleA Crucial DeliveryNo spanish required
Write an interpreter for *
Double redundancy for the Saturn V LVDC computer memory, how were disagreements resolved?
What is the length of pair of wires after twisting them around each other?
Was the 2019 Lion King film made through motion capture?
If "more guns less crime", how do gun advocates explain that the EU has less crime than the US?
How does 'AND' distribute over 'OR' (Set Theory)?
Generate Brainfuck for the numbers 1–255
Adding CSV file with lat/long to map in different CRS in QGIS
On the Rømer experiments and the speed if light
create a tuple from pairs
Can a fight scene, component-wise, be too complex and complicated?
Shoud I use Kodak Vision 500T as 400 ISO or 800 ISO?
(11 of 11: Meta) What is Pyramid Cult's All-Time Favorite?
Why did Gandalf use a sword against the Balrog?
Continuous vertical line using booktabs in tabularx table?
How many people would you need to pull a whale over cobblestone streets?
How to mark beverage cans in a cooler for a blind person?
Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?
How is this kind of structure made?
AsyncDictionary - Can you break thread safety?
Understanding the point of a kölsche Witz
How are you supposed to know the strumming pattern for a song from the "chord sheet music"?
Is this curved text blend possible in Illustrator?
Does this Foo machine halt?
Box of tablets, whole or broken: solution required
Sliding Bolt Puzzle - fastest solution (time-wise)Help understanding the solution to a “shooting puzzle”Jewels in the boxCookie Box Mix-upThe Fanatic Fever(twist on the 5 pirates puzzle)Optimal solution to a modified poker gameNo broken eggs puzzleA Crucial DeliveryNo spanish required
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
This is a puzzle that I thought up whilst taking a course of meds. I currently haven’t solved it, and would be curious to know if anyone has a solution for it. Here goes:
Scenario:
John has a box of 15 tablets. He needs to take half a tablet per day for 30 days. Each day he takes the box and removes a tablet perfectly randomly. If the tablet is a whole one, he breaks it in half, eats one half, and returns the other half back to the box. If he removes a half tablet, he just consumes it. This continues for 30 days.
Question: On which day (on average, assuming infinite re-runs of the process) is he first going to be equally/more likely to remove a half tablet than a whole one?
I already have given this some thought, but even counting the number of permutations is impossible for me extrapolation from a 1 to 2 to 3 to 4 tablet simplification of the 15 tablet scenario above.
Any ideas/solutions welcome. Preferably the solutions would be hidden in a spoiler box, as for the time being I’m still trying to work it out myself.
Many thanks!
mathematics probability number-theory
New contributor
$endgroup$
add a comment |
$begingroup$
This is a puzzle that I thought up whilst taking a course of meds. I currently haven’t solved it, and would be curious to know if anyone has a solution for it. Here goes:
Scenario:
John has a box of 15 tablets. He needs to take half a tablet per day for 30 days. Each day he takes the box and removes a tablet perfectly randomly. If the tablet is a whole one, he breaks it in half, eats one half, and returns the other half back to the box. If he removes a half tablet, he just consumes it. This continues for 30 days.
Question: On which day (on average, assuming infinite re-runs of the process) is he first going to be equally/more likely to remove a half tablet than a whole one?
I already have given this some thought, but even counting the number of permutations is impossible for me extrapolation from a 1 to 2 to 3 to 4 tablet simplification of the 15 tablet scenario above.
Any ideas/solutions welcome. Preferably the solutions would be hidden in a spoiler box, as for the time being I’m still trying to work it out myself.
Many thanks!
mathematics probability number-theory
New contributor
$endgroup$
1
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
1
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago
add a comment |
$begingroup$
This is a puzzle that I thought up whilst taking a course of meds. I currently haven’t solved it, and would be curious to know if anyone has a solution for it. Here goes:
Scenario:
John has a box of 15 tablets. He needs to take half a tablet per day for 30 days. Each day he takes the box and removes a tablet perfectly randomly. If the tablet is a whole one, he breaks it in half, eats one half, and returns the other half back to the box. If he removes a half tablet, he just consumes it. This continues for 30 days.
Question: On which day (on average, assuming infinite re-runs of the process) is he first going to be equally/more likely to remove a half tablet than a whole one?
I already have given this some thought, but even counting the number of permutations is impossible for me extrapolation from a 1 to 2 to 3 to 4 tablet simplification of the 15 tablet scenario above.
Any ideas/solutions welcome. Preferably the solutions would be hidden in a spoiler box, as for the time being I’m still trying to work it out myself.
Many thanks!
mathematics probability number-theory
New contributor
$endgroup$
This is a puzzle that I thought up whilst taking a course of meds. I currently haven’t solved it, and would be curious to know if anyone has a solution for it. Here goes:
Scenario:
John has a box of 15 tablets. He needs to take half a tablet per day for 30 days. Each day he takes the box and removes a tablet perfectly randomly. If the tablet is a whole one, he breaks it in half, eats one half, and returns the other half back to the box. If he removes a half tablet, he just consumes it. This continues for 30 days.
Question: On which day (on average, assuming infinite re-runs of the process) is he first going to be equally/more likely to remove a half tablet than a whole one?
I already have given this some thought, but even counting the number of permutations is impossible for me extrapolation from a 1 to 2 to 3 to 4 tablet simplification of the 15 tablet scenario above.
Any ideas/solutions welcome. Preferably the solutions would be hidden in a spoiler box, as for the time being I’m still trying to work it out myself.
Many thanks!
mathematics probability number-theory
mathematics probability number-theory
New contributor
New contributor
New contributor
asked 8 hours ago
DavidDavid
361 bronze badge
361 bronze badge
New contributor
New contributor
1
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
1
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago
add a comment |
1
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
1
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago
1
1
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
1
1
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
It turns out that on the 14th (edited from 13th - I was using zero index before) day, you are more likely to pick a half pill than a whole pill. On that day, the expected number of whole pills is ~5.597 and the expected number of half pills is ~5.807.
To do this,
I just wrote a Python program that enumerates all the possible outcomes each day, along with the probability that each outcome would occur. To compute tomorrow's possible outcomes, you take each possible situation S from today and check each "branch" that can happen - selecting a whole or half pill. Each branch has a probability of occurring (based on how many of each are in S), and a resulting situation (one less half pill, or one less whole pill and one more half pill). You multiply the probability of being in S by the probability of taking the branch, and add that to tomorrow's probability for S', the new situation that we just created.
Finally,
For each day, you can compute the expected number of whole pills (just multiply the number of whole pills in each situation by the probability of the situation). The total expected whole pills for the day will be the sum of all of these values. The same can be done for the half pills (and if you want to check your work, 2*expected_whole + expected_half should equal (30 - day), since that's how many total half-pills you still have left).
I can give you the Python code if you want. Not sure it can be spoilered (I've never learned how to have multi-line spoilers).
Python Code
$endgroup$
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "559"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
David is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f87023%2fbox-of-tablets-whole-or-broken-solution-required%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It turns out that on the 14th (edited from 13th - I was using zero index before) day, you are more likely to pick a half pill than a whole pill. On that day, the expected number of whole pills is ~5.597 and the expected number of half pills is ~5.807.
To do this,
I just wrote a Python program that enumerates all the possible outcomes each day, along with the probability that each outcome would occur. To compute tomorrow's possible outcomes, you take each possible situation S from today and check each "branch" that can happen - selecting a whole or half pill. Each branch has a probability of occurring (based on how many of each are in S), and a resulting situation (one less half pill, or one less whole pill and one more half pill). You multiply the probability of being in S by the probability of taking the branch, and add that to tomorrow's probability for S', the new situation that we just created.
Finally,
For each day, you can compute the expected number of whole pills (just multiply the number of whole pills in each situation by the probability of the situation). The total expected whole pills for the day will be the sum of all of these values. The same can be done for the half pills (and if you want to check your work, 2*expected_whole + expected_half should equal (30 - day), since that's how many total half-pills you still have left).
I can give you the Python code if you want. Not sure it can be spoilered (I've never learned how to have multi-line spoilers).
Python Code
$endgroup$
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
add a comment |
$begingroup$
It turns out that on the 14th (edited from 13th - I was using zero index before) day, you are more likely to pick a half pill than a whole pill. On that day, the expected number of whole pills is ~5.597 and the expected number of half pills is ~5.807.
To do this,
I just wrote a Python program that enumerates all the possible outcomes each day, along with the probability that each outcome would occur. To compute tomorrow's possible outcomes, you take each possible situation S from today and check each "branch" that can happen - selecting a whole or half pill. Each branch has a probability of occurring (based on how many of each are in S), and a resulting situation (one less half pill, or one less whole pill and one more half pill). You multiply the probability of being in S by the probability of taking the branch, and add that to tomorrow's probability for S', the new situation that we just created.
Finally,
For each day, you can compute the expected number of whole pills (just multiply the number of whole pills in each situation by the probability of the situation). The total expected whole pills for the day will be the sum of all of these values. The same can be done for the half pills (and if you want to check your work, 2*expected_whole + expected_half should equal (30 - day), since that's how many total half-pills you still have left).
I can give you the Python code if you want. Not sure it can be spoilered (I've never learned how to have multi-line spoilers).
Python Code
$endgroup$
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
add a comment |
$begingroup$
It turns out that on the 14th (edited from 13th - I was using zero index before) day, you are more likely to pick a half pill than a whole pill. On that day, the expected number of whole pills is ~5.597 and the expected number of half pills is ~5.807.
To do this,
I just wrote a Python program that enumerates all the possible outcomes each day, along with the probability that each outcome would occur. To compute tomorrow's possible outcomes, you take each possible situation S from today and check each "branch" that can happen - selecting a whole or half pill. Each branch has a probability of occurring (based on how many of each are in S), and a resulting situation (one less half pill, or one less whole pill and one more half pill). You multiply the probability of being in S by the probability of taking the branch, and add that to tomorrow's probability for S', the new situation that we just created.
Finally,
For each day, you can compute the expected number of whole pills (just multiply the number of whole pills in each situation by the probability of the situation). The total expected whole pills for the day will be the sum of all of these values. The same can be done for the half pills (and if you want to check your work, 2*expected_whole + expected_half should equal (30 - day), since that's how many total half-pills you still have left).
I can give you the Python code if you want. Not sure it can be spoilered (I've never learned how to have multi-line spoilers).
Python Code
$endgroup$
It turns out that on the 14th (edited from 13th - I was using zero index before) day, you are more likely to pick a half pill than a whole pill. On that day, the expected number of whole pills is ~5.597 and the expected number of half pills is ~5.807.
To do this,
I just wrote a Python program that enumerates all the possible outcomes each day, along with the probability that each outcome would occur. To compute tomorrow's possible outcomes, you take each possible situation S from today and check each "branch" that can happen - selecting a whole or half pill. Each branch has a probability of occurring (based on how many of each are in S), and a resulting situation (one less half pill, or one less whole pill and one more half pill). You multiply the probability of being in S by the probability of taking the branch, and add that to tomorrow's probability for S', the new situation that we just created.
Finally,
For each day, you can compute the expected number of whole pills (just multiply the number of whole pills in each situation by the probability of the situation). The total expected whole pills for the day will be the sum of all of these values. The same can be done for the half pills (and if you want to check your work, 2*expected_whole + expected_half should equal (30 - day), since that's how many total half-pills you still have left).
I can give you the Python code if you want. Not sure it can be spoilered (I've never learned how to have multi-line spoilers).
Python Code
edited 5 hours ago
answered 7 hours ago
hdsdvhdsdv
3567 bronze badges
3567 bronze badges
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
add a comment |
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
2
2
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
$begingroup$
Rather than post code here, you should probably post it at (say) tio.run and link to it here - that way people can run it without having to download it and/or a python interpreter.
$endgroup$
– Rubio♦
6 hours ago
2
2
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
$begingroup$
Thanks for the suggestion! Done.
$endgroup$
– hdsdv
6 hours ago
add a comment |
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Puzzling Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f87023%2fbox-of-tablets-whole-or-broken-solution-required%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
Welcome to Puzzling! (Take the Tour!) I'm glad you’re interested in contributing this question here but I fear it likely falls on the wrong side of our policy on math problems vs puzzles — see Are math-textbook-style problems on topic? for some discussion. It’s an interesting question to want an answer to, but probably not enough on-topic to be here.
$endgroup$
– Rubio♦
6 hours ago
1
$begingroup$
@Rubio IMO this is on the fence, but I think it should be ok. It's definitely not a textbook question for sure, and I do find it quite an interesting problem. So, I personally have no problem with this question, but I'd like to know what everyone else thinks.
$endgroup$
– greenturtle3141
4 hours ago
$begingroup$
@greenturtle3141 The solution path is mechanical, the answer is pretty much what I'd expect, and there's no particular magic about the answer—those are pretty much the hallmarks of "problem". Having said that, I (like you) am on the fence enough that I feel I need to leave it up to the community to decide. :)
$endgroup$
– Rubio♦
3 hours ago