How many cookies does someone need to grab to be certain to obtain a flavor? The Next CEO of Stack OverflowTravellers across a desertThe Tricky Tunnels!100 chocolate bars!This ant sure is smart. But how fast is it?A jar of mixed coinsA Georgian-era riddleExpected value of a milion dollar (equal?) divisionHow many tries to roll a 6?Does the Answer Look Certain?Horror Episode #2: Not So Well

Why doesn't Shulchan Aruch include the laws of destroying fruit trees?

Can Sri Krishna be called 'a person'?

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Does int main() need a declaration on C++?

Find the majority element, which appears more than half the time

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

"Eavesdropping" vs "Listen in on"

Calculate the Mean mean of two numbers

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

Oldie but Goldie

Is a distribution that is normal, but highly skewed, considered Gaussian?

What is the difference between 'contrib' and 'non-free' packages repositories?

Masking layers by a vector polygon layer in QGIS

pgfplots: How to draw a tangent graph below two others?

Could a dragon use hot air to help it take off?

Does Germany produce more waste than the US?

How can I separate the number from the unit in argument?

Mathematica command that allows it to read my intentions

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Shortening a title without changing its meaning

Compensation for working overtime on Saturdays

Can you teleport closer to a creature you are Frightened of?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

Gödel's incompleteness theorems - what are the religious implications?



How many cookies does someone need to grab to be certain to obtain a flavor?



The Next CEO of Stack OverflowTravellers across a desertThe Tricky Tunnels!100 chocolate bars!This ant sure is smart. But how fast is it?A jar of mixed coinsA Georgian-era riddleExpected value of a milion dollar (equal?) divisionHow many tries to roll a 6?Does the Answer Look Certain?Horror Episode #2: Not So Well










5












$begingroup$


I often found this riddle in many exams but I got often confused on how to tackle it. While it involves maths. I wonder if there is a subtle or a more layman method to obtain an answer using common sense?.



The problem which I'm about to describe isn't a specific homework problem. Is just a situation which I had imagined just now based on the kind of situation which often gets me confused. Okay here it goes:




A toddler want to grab some strawberry cookies. However there are
three flavors of those cookies in a jar, which just happen to be atop
of a refrigerator. There is a ladder in the kitchen, but the height of
that ladder isn't bigger enough for him to tell the difference between
which flavor of the cookies is which, all he can do is extend his arm
and take out the cookies from the jar. The child knows from his mom
that she made 10 of those strawberry cookies in the morning. However
he knows that the jar also has leftovers which he spotted on the night
before and these were 6 of vanilla flavor and 5 of chocolate chips.




Okay now comes the part where I often got stuck at:



What is the least amount of cookies that he has to take out from the jar to be certain that he has 4 of chocolate chips, 5 of vanilla and 7 of of strawberries?.



Now a second question



What is the least amount that he has to take out to be certain that he has all the strawberries and all chocolate chips?



And finally the third one



What is the least amount that he has to take from the jar to be certain that he has 1 of each flavor.



What I do remember from this situation is that when solving this riddle you often consider the most difficult scenario, in other words. He needs to take out let's say 10 in this case so with that he is certain that has strawberries. However I'm not very sure if this reasoning is valid.



Can somebody give me some help with this?



I'm slow at catching up ideas so, I'd like the answer could show or include the most details as possible and explain why certain decision or argument is taken.










share|improve this question









$endgroup$







  • 6




    $begingroup$
    Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
    $endgroup$
    – Ian MacDonald
    Mar 25 at 13:29










  • $begingroup$
    Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
    $endgroup$
    – Rubio
    Mar 27 at 20:01










  • $begingroup$
    @IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:41










  • $begingroup$
    @Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:03
















5












$begingroup$


I often found this riddle in many exams but I got often confused on how to tackle it. While it involves maths. I wonder if there is a subtle or a more layman method to obtain an answer using common sense?.



The problem which I'm about to describe isn't a specific homework problem. Is just a situation which I had imagined just now based on the kind of situation which often gets me confused. Okay here it goes:




A toddler want to grab some strawberry cookies. However there are
three flavors of those cookies in a jar, which just happen to be atop
of a refrigerator. There is a ladder in the kitchen, but the height of
that ladder isn't bigger enough for him to tell the difference between
which flavor of the cookies is which, all he can do is extend his arm
and take out the cookies from the jar. The child knows from his mom
that she made 10 of those strawberry cookies in the morning. However
he knows that the jar also has leftovers which he spotted on the night
before and these were 6 of vanilla flavor and 5 of chocolate chips.




Okay now comes the part where I often got stuck at:



What is the least amount of cookies that he has to take out from the jar to be certain that he has 4 of chocolate chips, 5 of vanilla and 7 of of strawberries?.



Now a second question



What is the least amount that he has to take out to be certain that he has all the strawberries and all chocolate chips?



And finally the third one



What is the least amount that he has to take from the jar to be certain that he has 1 of each flavor.



What I do remember from this situation is that when solving this riddle you often consider the most difficult scenario, in other words. He needs to take out let's say 10 in this case so with that he is certain that has strawberries. However I'm not very sure if this reasoning is valid.



Can somebody give me some help with this?



I'm slow at catching up ideas so, I'd like the answer could show or include the most details as possible and explain why certain decision or argument is taken.










share|improve this question









$endgroup$







  • 6




    $begingroup$
    Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
    $endgroup$
    – Ian MacDonald
    Mar 25 at 13:29










  • $begingroup$
    Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
    $endgroup$
    – Rubio
    Mar 27 at 20:01










  • $begingroup$
    @IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:41










  • $begingroup$
    @Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:03














5












5








5





$begingroup$


I often found this riddle in many exams but I got often confused on how to tackle it. While it involves maths. I wonder if there is a subtle or a more layman method to obtain an answer using common sense?.



The problem which I'm about to describe isn't a specific homework problem. Is just a situation which I had imagined just now based on the kind of situation which often gets me confused. Okay here it goes:




A toddler want to grab some strawberry cookies. However there are
three flavors of those cookies in a jar, which just happen to be atop
of a refrigerator. There is a ladder in the kitchen, but the height of
that ladder isn't bigger enough for him to tell the difference between
which flavor of the cookies is which, all he can do is extend his arm
and take out the cookies from the jar. The child knows from his mom
that she made 10 of those strawberry cookies in the morning. However
he knows that the jar also has leftovers which he spotted on the night
before and these were 6 of vanilla flavor and 5 of chocolate chips.




Okay now comes the part where I often got stuck at:



What is the least amount of cookies that he has to take out from the jar to be certain that he has 4 of chocolate chips, 5 of vanilla and 7 of of strawberries?.



Now a second question



What is the least amount that he has to take out to be certain that he has all the strawberries and all chocolate chips?



And finally the third one



What is the least amount that he has to take from the jar to be certain that he has 1 of each flavor.



What I do remember from this situation is that when solving this riddle you often consider the most difficult scenario, in other words. He needs to take out let's say 10 in this case so with that he is certain that has strawberries. However I'm not very sure if this reasoning is valid.



Can somebody give me some help with this?



I'm slow at catching up ideas so, I'd like the answer could show or include the most details as possible and explain why certain decision or argument is taken.










share|improve this question









$endgroup$




I often found this riddle in many exams but I got often confused on how to tackle it. While it involves maths. I wonder if there is a subtle or a more layman method to obtain an answer using common sense?.



The problem which I'm about to describe isn't a specific homework problem. Is just a situation which I had imagined just now based on the kind of situation which often gets me confused. Okay here it goes:




A toddler want to grab some strawberry cookies. However there are
three flavors of those cookies in a jar, which just happen to be atop
of a refrigerator. There is a ladder in the kitchen, but the height of
that ladder isn't bigger enough for him to tell the difference between
which flavor of the cookies is which, all he can do is extend his arm
and take out the cookies from the jar. The child knows from his mom
that she made 10 of those strawberry cookies in the morning. However
he knows that the jar also has leftovers which he spotted on the night
before and these were 6 of vanilla flavor and 5 of chocolate chips.




Okay now comes the part where I often got stuck at:



What is the least amount of cookies that he has to take out from the jar to be certain that he has 4 of chocolate chips, 5 of vanilla and 7 of of strawberries?.



Now a second question



What is the least amount that he has to take out to be certain that he has all the strawberries and all chocolate chips?



And finally the third one



What is the least amount that he has to take from the jar to be certain that he has 1 of each flavor.



What I do remember from this situation is that when solving this riddle you often consider the most difficult scenario, in other words. He needs to take out let's say 10 in this case so with that he is certain that has strawberries. However I'm not very sure if this reasoning is valid.



Can somebody give me some help with this?



I'm slow at catching up ideas so, I'd like the answer could show or include the most details as possible and explain why certain decision or argument is taken.







riddle probability word-problem






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 8:33









Chris Steinbeck BellChris Steinbeck Bell

1514




1514







  • 6




    $begingroup$
    Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
    $endgroup$
    – Ian MacDonald
    Mar 25 at 13:29










  • $begingroup$
    Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
    $endgroup$
    – Rubio
    Mar 27 at 20:01










  • $begingroup$
    @IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:41










  • $begingroup$
    @Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:03













  • 6




    $begingroup$
    Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
    $endgroup$
    – Ian MacDonald
    Mar 25 at 13:29










  • $begingroup$
    Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
    $endgroup$
    – Rubio
    Mar 27 at 20:01










  • $begingroup$
    @IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:41










  • $begingroup$
    @Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:03








6




6




$begingroup$
Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
$endgroup$
– Ian MacDonald
Mar 25 at 13:29




$begingroup$
Okay, a few things. 1: if the cookies were made this morning, they are very likely on top of the other cookies within the jar, so the selection should be trivial. 2: Since when do toddlers take less than all of the cookies?
$endgroup$
– Ian MacDonald
Mar 25 at 13:29












$begingroup$
Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
$endgroup$
– Rubio
Mar 27 at 20:01




$begingroup$
Has a useful answer been given? If so, please don't forget to $colorgreencheckmark smalltextAccept$ it :)
$endgroup$
– Rubio
Mar 27 at 20:01












$begingroup$
@IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 20:41




$begingroup$
@IanMacDonald As I mentioned in the beginning this was a thought problem not likely a real scenario. But what might be missing is assuming that the kid would take less than all the cookies. Another aspect is also assuming that during the handling of the jar to be put back atop the fridge there might be some shacking and the cookies would be mixed altogether. Hence making sort of draw of lots.
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 20:41












$begingroup$
@Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 21:03





$begingroup$
@Rubio Thanks for the reminder, actually there are some unattended questions which I provided to the lonely answerer. I'm awaiting his response.
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 21:03











1 Answer
1






active

oldest

votes


















9












$begingroup$

Originally there are;




10 S, 6 V and 5C




For the first case where he wants to have 7 S, 5 V and , 4 C. (so we dont want to have 3S, 1V and 1C)



In the worst case scenario;




we need to think that he is very unlucky, while taking out cookies, he takes all strawberries first, where there are 10 of them, so extra 3 cookies, and etc.




so




He has to take out 10S+6V+4C = 20 cookies to guarantee he can have 7S, 5V and 4C. Put the extras back later.




I do not want to continue for the rest since the same methodology works for them too:




in the worst case scenario, take out first the type of cookie which has the most extras (number of cookies available - wanted amount of cookies), then second most and lastly the least one.




This will give you the number of cookies to guarantee to have some specific number of cookies.






share|improve this answer











$endgroup$












  • $begingroup$
    I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:57










  • $begingroup$
    and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:02










  • $begingroup$
    Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
    $endgroup$
    – Chris Steinbeck Bell
    yesterday










  • $begingroup$
    you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
    $endgroup$
    – Oray
    yesterday











Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f81006%2fhow-many-cookies-does-someone-need-to-grab-to-be-certain-to-obtain-a-flavor%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









9












$begingroup$

Originally there are;




10 S, 6 V and 5C




For the first case where he wants to have 7 S, 5 V and , 4 C. (so we dont want to have 3S, 1V and 1C)



In the worst case scenario;




we need to think that he is very unlucky, while taking out cookies, he takes all strawberries first, where there are 10 of them, so extra 3 cookies, and etc.




so




He has to take out 10S+6V+4C = 20 cookies to guarantee he can have 7S, 5V and 4C. Put the extras back later.




I do not want to continue for the rest since the same methodology works for them too:




in the worst case scenario, take out first the type of cookie which has the most extras (number of cookies available - wanted amount of cookies), then second most and lastly the least one.




This will give you the number of cookies to guarantee to have some specific number of cookies.






share|improve this answer











$endgroup$












  • $begingroup$
    I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:57










  • $begingroup$
    and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:02










  • $begingroup$
    Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
    $endgroup$
    – Chris Steinbeck Bell
    yesterday










  • $begingroup$
    you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
    $endgroup$
    – Oray
    yesterday















9












$begingroup$

Originally there are;




10 S, 6 V and 5C




For the first case where he wants to have 7 S, 5 V and , 4 C. (so we dont want to have 3S, 1V and 1C)



In the worst case scenario;




we need to think that he is very unlucky, while taking out cookies, he takes all strawberries first, where there are 10 of them, so extra 3 cookies, and etc.




so




He has to take out 10S+6V+4C = 20 cookies to guarantee he can have 7S, 5V and 4C. Put the extras back later.




I do not want to continue for the rest since the same methodology works for them too:




in the worst case scenario, take out first the type of cookie which has the most extras (number of cookies available - wanted amount of cookies), then second most and lastly the least one.




This will give you the number of cookies to guarantee to have some specific number of cookies.






share|improve this answer











$endgroup$












  • $begingroup$
    I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:57










  • $begingroup$
    and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:02










  • $begingroup$
    Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
    $endgroup$
    – Chris Steinbeck Bell
    yesterday










  • $begingroup$
    you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
    $endgroup$
    – Oray
    yesterday













9












9








9





$begingroup$

Originally there are;




10 S, 6 V and 5C




For the first case where he wants to have 7 S, 5 V and , 4 C. (so we dont want to have 3S, 1V and 1C)



In the worst case scenario;




we need to think that he is very unlucky, while taking out cookies, he takes all strawberries first, where there are 10 of them, so extra 3 cookies, and etc.




so




He has to take out 10S+6V+4C = 20 cookies to guarantee he can have 7S, 5V and 4C. Put the extras back later.




I do not want to continue for the rest since the same methodology works for them too:




in the worst case scenario, take out first the type of cookie which has the most extras (number of cookies available - wanted amount of cookies), then second most and lastly the least one.




This will give you the number of cookies to guarantee to have some specific number of cookies.






share|improve this answer











$endgroup$



Originally there are;




10 S, 6 V and 5C




For the first case where he wants to have 7 S, 5 V and , 4 C. (so we dont want to have 3S, 1V and 1C)



In the worst case scenario;




we need to think that he is very unlucky, while taking out cookies, he takes all strawberries first, where there are 10 of them, so extra 3 cookies, and etc.




so




He has to take out 10S+6V+4C = 20 cookies to guarantee he can have 7S, 5V and 4C. Put the extras back later.




I do not want to continue for the rest since the same methodology works for them too:




in the worst case scenario, take out first the type of cookie which has the most extras (number of cookies available - wanted amount of cookies), then second most and lastly the least one.




This will give you the number of cookies to guarantee to have some specific number of cookies.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 25 at 13:19

























answered Mar 25 at 9:01









OrayOray

16.2k437157




16.2k437157











  • $begingroup$
    I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:57










  • $begingroup$
    and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:02










  • $begingroup$
    Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
    $endgroup$
    – Chris Steinbeck Bell
    yesterday










  • $begingroup$
    you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
    $endgroup$
    – Oray
    yesterday
















  • $begingroup$
    I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 20:57










  • $begingroup$
    and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
    $endgroup$
    – Chris Steinbeck Bell
    Mar 27 at 21:02










  • $begingroup$
    Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
    $endgroup$
    – Chris Steinbeck Bell
    yesterday










  • $begingroup$
    you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
    $endgroup$
    – Oray
    yesterday















$begingroup$
I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 20:57




$begingroup$
I understood the part that he has to take all the 10 S. Then 6V as by this time he has ensured that has those 7S and 5V. Then in the jar the remaining cookies are just C. So he only has to take out 4C. Is this the reasoning correct?. In other words it would be meaningless if he wanted 3V or 4V in the end he would need to take out all of the vanilla cookies?. This is the part where I'm still stuck. If I understood correctly. The second situation is more extreme as I presume he has to take all the cookies from the jar to ensure he has all the S and all C., right?
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 20:57












$begingroup$
and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 21:02




$begingroup$
and finally for the third situation, it would be 10S+6V+1C or 17 cookies. Am I right?.As I mentioned I'm slow at catching up so I need some clarification about this. I was some confused about what you wrote on so we dont want to have 3S, 1V and 1C as I did not know what to do with those numbers, summing them to 7S, 5V and 4C or subtracting them from the quantities mentioned?. To coincide with what you wrote it seemed to me that I needed to sum the first two to the initial 7S and 5V and add the last one to get the answer. Maybe can you add some explanation of how you used those numbers?
$endgroup$
– Chris Steinbeck Bell
Mar 27 at 21:02












$begingroup$
Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
$endgroup$
– Chris Steinbeck Bell
yesterday




$begingroup$
Sorry, but mind if you take a look at some unattended questions?. I'm still stuck to know if what I wrote in the above comments are alright or not?.
$endgroup$
– Chris Steinbeck Bell
yesterday












$begingroup$
you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
$endgroup$
– Oray
yesterday




$begingroup$
you are right, it would be 10S+6V+1C for the last case, you got it right. the idea is simply to take them maximum number of cookies which will not satisfy the condition until it will be indifference whichever cookie you will take one more or in other word, with the worst case scenario to guarantee to hold the condition.
$endgroup$
– Oray
yesterday

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f81006%2fhow-many-cookies-does-someone-need-to-grab-to-be-certain-to-obtain-a-flavor%23new-answer', 'question_page');

);

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







Popular posts from this blog

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High