The pigeonhole principle - 30 pens in a drawer











up vote
1
down vote

favorite












I need help with the following task. It needs to be solved using the pigeonhole principle.



There are 10 red, 8 blue, 8 purple and 4 yellow pens in a drawer. We pick them out, one by one, in the dark. What is the least number of pens that we need to pull out if we want to ensure that we have



a) at least 1 pen of each color



b) at least 6 blue pens?



I realize for example that if we want at lest 4 pens of each color, we need to pull out at least 11 ones, but I do not understand how to get one of each, or a specific number of a given color. I would solve this using statistics, but it has to be the principle.










share|cite|improve this question




















  • 1




    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
    – saulspatz
    Nov 18 at 18:06






  • 2




    Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
    – N. F. Taussig
    Nov 18 at 18:15










  • "I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
    – Henry
    Nov 18 at 18:20










  • At most $27$ and $28$ respectively in the worst case.
    – idea
    Nov 18 at 18:20










  • Half-duplicate of math.stackexchange.com/questions/1612271/…
    – Henry
    Nov 18 at 18:22















up vote
1
down vote

favorite












I need help with the following task. It needs to be solved using the pigeonhole principle.



There are 10 red, 8 blue, 8 purple and 4 yellow pens in a drawer. We pick them out, one by one, in the dark. What is the least number of pens that we need to pull out if we want to ensure that we have



a) at least 1 pen of each color



b) at least 6 blue pens?



I realize for example that if we want at lest 4 pens of each color, we need to pull out at least 11 ones, but I do not understand how to get one of each, or a specific number of a given color. I would solve this using statistics, but it has to be the principle.










share|cite|improve this question




















  • 1




    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
    – saulspatz
    Nov 18 at 18:06






  • 2




    Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
    – N. F. Taussig
    Nov 18 at 18:15










  • "I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
    – Henry
    Nov 18 at 18:20










  • At most $27$ and $28$ respectively in the worst case.
    – idea
    Nov 18 at 18:20










  • Half-duplicate of math.stackexchange.com/questions/1612271/…
    – Henry
    Nov 18 at 18:22













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I need help with the following task. It needs to be solved using the pigeonhole principle.



There are 10 red, 8 blue, 8 purple and 4 yellow pens in a drawer. We pick them out, one by one, in the dark. What is the least number of pens that we need to pull out if we want to ensure that we have



a) at least 1 pen of each color



b) at least 6 blue pens?



I realize for example that if we want at lest 4 pens of each color, we need to pull out at least 11 ones, but I do not understand how to get one of each, or a specific number of a given color. I would solve this using statistics, but it has to be the principle.










share|cite|improve this question















I need help with the following task. It needs to be solved using the pigeonhole principle.



There are 10 red, 8 blue, 8 purple and 4 yellow pens in a drawer. We pick them out, one by one, in the dark. What is the least number of pens that we need to pull out if we want to ensure that we have



a) at least 1 pen of each color



b) at least 6 blue pens?



I realize for example that if we want at lest 4 pens of each color, we need to pull out at least 11 ones, but I do not understand how to get one of each, or a specific number of a given color. I would solve this using statistics, but it has to be the principle.







combinatorics discrete-mathematics pigeonhole-principle






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 18 at 18:16

























asked Nov 18 at 18:05









Tam

63




63








  • 1




    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
    – saulspatz
    Nov 18 at 18:06






  • 2




    Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
    – N. F. Taussig
    Nov 18 at 18:15










  • "I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
    – Henry
    Nov 18 at 18:20










  • At most $27$ and $28$ respectively in the worst case.
    – idea
    Nov 18 at 18:20










  • Half-duplicate of math.stackexchange.com/questions/1612271/…
    – Henry
    Nov 18 at 18:22














  • 1




    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
    – saulspatz
    Nov 18 at 18:06






  • 2




    Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
    – N. F. Taussig
    Nov 18 at 18:15










  • "I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
    – Henry
    Nov 18 at 18:20










  • At most $27$ and $28$ respectively in the worst case.
    – idea
    Nov 18 at 18:20










  • Half-duplicate of math.stackexchange.com/questions/1612271/…
    – Henry
    Nov 18 at 18:22








1




1




Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
– saulspatz
Nov 18 at 18:06




Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close with reading the comments.
– saulspatz
Nov 18 at 18:06




2




2




Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
– N. F. Taussig
Nov 18 at 18:15




Think in terms of worst case scenarios. How many pens could you pull from the drawer before you finally obtain at least one pen of each color?
– N. F. Taussig
Nov 18 at 18:15












"I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
– Henry
Nov 18 at 18:20




"I realize for example that if we want at least 4 pens of each color, we need to pull out at least 11 ones" does not look correct. Did you mean "if we want pens with at least 2 colors, we need to pull out at least 11 pens"?
– Henry
Nov 18 at 18:20












At most $27$ and $28$ respectively in the worst case.
– idea
Nov 18 at 18:20




At most $27$ and $28$ respectively in the worst case.
– idea
Nov 18 at 18:20












Half-duplicate of math.stackexchange.com/questions/1612271/…
– Henry
Nov 18 at 18:22




Half-duplicate of math.stackexchange.com/questions/1612271/…
– Henry
Nov 18 at 18:22










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Think logically.

Since you are drawing pens in the dark, it is very much possible that you require the maximum possible number of draws, i.e.



For $1^{st}$ case:

You might start off with Red, then finish off all Reds, Blues and Purples, i.e. $10+8+8=26$ draws in the worst case. Now, only left with Yellow, just draw one.

So, at most you may need $27$ draws.

While, if lucky enough, you may grab $4$ different colors in just $4$ draws.

So, to be sure, you will need at least $27$ draws.



For $2^{nd}$ case:

Finish drawing all other colors, contributing to $10+8+4=22$ draws. Now, left with only Blues, just draw $6$, so at most $22+6=28$ draws in the worst-case.

Again, in the rarest case, you may need just $6$ draws; though its probability is quite less.

So, to be sure, you will need at least $28$ draws.



Try to convince yourself!






share|cite|improve this answer























    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: "69"
    };
    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',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fmath.stackexchange.com%2fquestions%2f3003884%2fthe-pigeonhole-principle-30-pens-in-a-drawer%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








    up vote
    0
    down vote













    Think logically.

    Since you are drawing pens in the dark, it is very much possible that you require the maximum possible number of draws, i.e.



    For $1^{st}$ case:

    You might start off with Red, then finish off all Reds, Blues and Purples, i.e. $10+8+8=26$ draws in the worst case. Now, only left with Yellow, just draw one.

    So, at most you may need $27$ draws.

    While, if lucky enough, you may grab $4$ different colors in just $4$ draws.

    So, to be sure, you will need at least $27$ draws.



    For $2^{nd}$ case:

    Finish drawing all other colors, contributing to $10+8+4=22$ draws. Now, left with only Blues, just draw $6$, so at most $22+6=28$ draws in the worst-case.

    Again, in the rarest case, you may need just $6$ draws; though its probability is quite less.

    So, to be sure, you will need at least $28$ draws.



    Try to convince yourself!






    share|cite|improve this answer



























      up vote
      0
      down vote













      Think logically.

      Since you are drawing pens in the dark, it is very much possible that you require the maximum possible number of draws, i.e.



      For $1^{st}$ case:

      You might start off with Red, then finish off all Reds, Blues and Purples, i.e. $10+8+8=26$ draws in the worst case. Now, only left with Yellow, just draw one.

      So, at most you may need $27$ draws.

      While, if lucky enough, you may grab $4$ different colors in just $4$ draws.

      So, to be sure, you will need at least $27$ draws.



      For $2^{nd}$ case:

      Finish drawing all other colors, contributing to $10+8+4=22$ draws. Now, left with only Blues, just draw $6$, so at most $22+6=28$ draws in the worst-case.

      Again, in the rarest case, you may need just $6$ draws; though its probability is quite less.

      So, to be sure, you will need at least $28$ draws.



      Try to convince yourself!






      share|cite|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        Think logically.

        Since you are drawing pens in the dark, it is very much possible that you require the maximum possible number of draws, i.e.



        For $1^{st}$ case:

        You might start off with Red, then finish off all Reds, Blues and Purples, i.e. $10+8+8=26$ draws in the worst case. Now, only left with Yellow, just draw one.

        So, at most you may need $27$ draws.

        While, if lucky enough, you may grab $4$ different colors in just $4$ draws.

        So, to be sure, you will need at least $27$ draws.



        For $2^{nd}$ case:

        Finish drawing all other colors, contributing to $10+8+4=22$ draws. Now, left with only Blues, just draw $6$, so at most $22+6=28$ draws in the worst-case.

        Again, in the rarest case, you may need just $6$ draws; though its probability is quite less.

        So, to be sure, you will need at least $28$ draws.



        Try to convince yourself!






        share|cite|improve this answer














        Think logically.

        Since you are drawing pens in the dark, it is very much possible that you require the maximum possible number of draws, i.e.



        For $1^{st}$ case:

        You might start off with Red, then finish off all Reds, Blues and Purples, i.e. $10+8+8=26$ draws in the worst case. Now, only left with Yellow, just draw one.

        So, at most you may need $27$ draws.

        While, if lucky enough, you may grab $4$ different colors in just $4$ draws.

        So, to be sure, you will need at least $27$ draws.



        For $2^{nd}$ case:

        Finish drawing all other colors, contributing to $10+8+4=22$ draws. Now, left with only Blues, just draw $6$, so at most $22+6=28$ draws in the worst-case.

        Again, in the rarest case, you may need just $6$ draws; though its probability is quite less.

        So, to be sure, you will need at least $28$ draws.



        Try to convince yourself!







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 18 at 18:35

























        answered Nov 18 at 18:29









        idea

        1,96231024




        1,96231024






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2fmath.stackexchange.com%2fquestions%2f3003884%2fthe-pigeonhole-principle-30-pens-in-a-drawer%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?