Inclusion Exclusion Principle with mixed lower and upper bounds











up vote
1
down vote

favorite
1












I know how to solve most types of these problems, but this one is a bit different.



Problem:



John is getting his friend some balloons for his birthday. He can have 4 types of colors (red, blue, green, yellow) for a total of 25 balloons.



• between 1 and 7 red, • between 2 and 11 blue, • at least 4 green, • at most 6 yellow.



How many combinations of balloons satisfy these conditions?



The green balloons throws me off. I know we can adjust the lower bounds for all colors to 0, and subtract from the total number needed because we know we need at least that initial lower bound. So the conditions become:



0 $le$ red $le$ 6



0 $le$ blue $le$ 9



0 $le$ green



0 $le$ yellow $le$ 6



And the sum is now red + green + blue + yellow = 18



If green had an upper bound, I would solve as follows:



(red $le$ 6 $cap$ blue $le$ 9 $cap$ green $le$ upper bound $cap$ yellow $le$ 6) = $S_{total}$ - (red $ge$ 7 $cup$ blue $ge$ 10 $cup$ green $ge$ upper bound + 1 $cup$ yellow $ge$ 7)



And apply inclusion-exclusion principle to the last portion.. But I don't know the upper bound for green.



Does anyone know how I solve this as is?










share|cite|improve this question




















  • 1




    I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
    – Tusky
    Nov 21 at 6:06










  • @Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
    – Mr.Mips
    Nov 21 at 6:17










  • I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
    – N. F. Taussig
    Nov 24 at 12:49

















up vote
1
down vote

favorite
1












I know how to solve most types of these problems, but this one is a bit different.



Problem:



John is getting his friend some balloons for his birthday. He can have 4 types of colors (red, blue, green, yellow) for a total of 25 balloons.



• between 1 and 7 red, • between 2 and 11 blue, • at least 4 green, • at most 6 yellow.



How many combinations of balloons satisfy these conditions?



The green balloons throws me off. I know we can adjust the lower bounds for all colors to 0, and subtract from the total number needed because we know we need at least that initial lower bound. So the conditions become:



0 $le$ red $le$ 6



0 $le$ blue $le$ 9



0 $le$ green



0 $le$ yellow $le$ 6



And the sum is now red + green + blue + yellow = 18



If green had an upper bound, I would solve as follows:



(red $le$ 6 $cap$ blue $le$ 9 $cap$ green $le$ upper bound $cap$ yellow $le$ 6) = $S_{total}$ - (red $ge$ 7 $cup$ blue $ge$ 10 $cup$ green $ge$ upper bound + 1 $cup$ yellow $ge$ 7)



And apply inclusion-exclusion principle to the last portion.. But I don't know the upper bound for green.



Does anyone know how I solve this as is?










share|cite|improve this question




















  • 1




    I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
    – Tusky
    Nov 21 at 6:06










  • @Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
    – Mr.Mips
    Nov 21 at 6:17










  • I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
    – N. F. Taussig
    Nov 24 at 12:49















up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I know how to solve most types of these problems, but this one is a bit different.



Problem:



John is getting his friend some balloons for his birthday. He can have 4 types of colors (red, blue, green, yellow) for a total of 25 balloons.



• between 1 and 7 red, • between 2 and 11 blue, • at least 4 green, • at most 6 yellow.



How many combinations of balloons satisfy these conditions?



The green balloons throws me off. I know we can adjust the lower bounds for all colors to 0, and subtract from the total number needed because we know we need at least that initial lower bound. So the conditions become:



0 $le$ red $le$ 6



0 $le$ blue $le$ 9



0 $le$ green



0 $le$ yellow $le$ 6



And the sum is now red + green + blue + yellow = 18



If green had an upper bound, I would solve as follows:



(red $le$ 6 $cap$ blue $le$ 9 $cap$ green $le$ upper bound $cap$ yellow $le$ 6) = $S_{total}$ - (red $ge$ 7 $cup$ blue $ge$ 10 $cup$ green $ge$ upper bound + 1 $cup$ yellow $ge$ 7)



And apply inclusion-exclusion principle to the last portion.. But I don't know the upper bound for green.



Does anyone know how I solve this as is?










share|cite|improve this question















I know how to solve most types of these problems, but this one is a bit different.



Problem:



John is getting his friend some balloons for his birthday. He can have 4 types of colors (red, blue, green, yellow) for a total of 25 balloons.



• between 1 and 7 red, • between 2 and 11 blue, • at least 4 green, • at most 6 yellow.



How many combinations of balloons satisfy these conditions?



The green balloons throws me off. I know we can adjust the lower bounds for all colors to 0, and subtract from the total number needed because we know we need at least that initial lower bound. So the conditions become:



0 $le$ red $le$ 6



0 $le$ blue $le$ 9



0 $le$ green



0 $le$ yellow $le$ 6



And the sum is now red + green + blue + yellow = 18



If green had an upper bound, I would solve as follows:



(red $le$ 6 $cap$ blue $le$ 9 $cap$ green $le$ upper bound $cap$ yellow $le$ 6) = $S_{total}$ - (red $ge$ 7 $cup$ blue $ge$ 10 $cup$ green $ge$ upper bound + 1 $cup$ yellow $ge$ 7)



And apply inclusion-exclusion principle to the last portion.. But I don't know the upper bound for green.



Does anyone know how I solve this as is?







combinatorics inclusion-exclusion






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 24 at 12:46









N. F. Taussig

42.9k93254




42.9k93254










asked Nov 21 at 5:58









Mr.Mips

64




64








  • 1




    I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
    – Tusky
    Nov 21 at 6:06










  • @Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
    – Mr.Mips
    Nov 21 at 6:17










  • I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
    – N. F. Taussig
    Nov 24 at 12:49
















  • 1




    I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
    – Tusky
    Nov 21 at 6:06










  • @Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
    – Mr.Mips
    Nov 21 at 6:17










  • I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
    – N. F. Taussig
    Nov 24 at 12:49










1




1




I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
– Tusky
Nov 21 at 6:06




I think you should try using the multinomial theorem for these questions. I have seen people use it to solve these combinatorics kind of questions.
– Tusky
Nov 21 at 6:06












@Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
– Mr.Mips
Nov 21 at 6:17




@Tusky I have to use the method I'm trying to use (using inclusion-exclusion)
– Mr.Mips
Nov 21 at 6:17












I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
– N. F. Taussig
Nov 24 at 12:49






I added the tag combinatorics since inclusion-exclusion principle problems fall into that broader category. Adding the combinatorics tag will make your question more likely to be seen since there are more combinatorics questions than inclusion-exclusion principle questions.
– N. F. Taussig
Nov 24 at 12:49












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Assume John has already selected $2$ blue balloons, $4$ green balloons, and $1$ red balloon. Then he must select $18$ more balloons, of which at most $9$ are blue, at most $6$ are red, and at most $6$ are yellow. Since John can only select $18$ more balloons, at most $18$ are green. We do not need to concern ourselves with this restriction since John can use as many green balloons as he likes.



If we let $b$, $g$, $r$, and $y$ denote the number of additional balloons John selects, then we need to find the number of solutions of the equation
$$b + g + r + y = 18 tag{1}$$
in the nonnegative integers subject to the restrictions $b leq 9$, $r leq 6$, $y leq 6$. While we could impose the restriction $g leq 18$ as well, the number of distributions in which $g geq 19$ is zero.



Can you proceed?






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%2f3007323%2finclusion-exclusion-principle-with-mixed-lower-and-upper-bounds%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













    Assume John has already selected $2$ blue balloons, $4$ green balloons, and $1$ red balloon. Then he must select $18$ more balloons, of which at most $9$ are blue, at most $6$ are red, and at most $6$ are yellow. Since John can only select $18$ more balloons, at most $18$ are green. We do not need to concern ourselves with this restriction since John can use as many green balloons as he likes.



    If we let $b$, $g$, $r$, and $y$ denote the number of additional balloons John selects, then we need to find the number of solutions of the equation
    $$b + g + r + y = 18 tag{1}$$
    in the nonnegative integers subject to the restrictions $b leq 9$, $r leq 6$, $y leq 6$. While we could impose the restriction $g leq 18$ as well, the number of distributions in which $g geq 19$ is zero.



    Can you proceed?






    share|cite|improve this answer

























      up vote
      0
      down vote













      Assume John has already selected $2$ blue balloons, $4$ green balloons, and $1$ red balloon. Then he must select $18$ more balloons, of which at most $9$ are blue, at most $6$ are red, and at most $6$ are yellow. Since John can only select $18$ more balloons, at most $18$ are green. We do not need to concern ourselves with this restriction since John can use as many green balloons as he likes.



      If we let $b$, $g$, $r$, and $y$ denote the number of additional balloons John selects, then we need to find the number of solutions of the equation
      $$b + g + r + y = 18 tag{1}$$
      in the nonnegative integers subject to the restrictions $b leq 9$, $r leq 6$, $y leq 6$. While we could impose the restriction $g leq 18$ as well, the number of distributions in which $g geq 19$ is zero.



      Can you proceed?






      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Assume John has already selected $2$ blue balloons, $4$ green balloons, and $1$ red balloon. Then he must select $18$ more balloons, of which at most $9$ are blue, at most $6$ are red, and at most $6$ are yellow. Since John can only select $18$ more balloons, at most $18$ are green. We do not need to concern ourselves with this restriction since John can use as many green balloons as he likes.



        If we let $b$, $g$, $r$, and $y$ denote the number of additional balloons John selects, then we need to find the number of solutions of the equation
        $$b + g + r + y = 18 tag{1}$$
        in the nonnegative integers subject to the restrictions $b leq 9$, $r leq 6$, $y leq 6$. While we could impose the restriction $g leq 18$ as well, the number of distributions in which $g geq 19$ is zero.



        Can you proceed?






        share|cite|improve this answer












        Assume John has already selected $2$ blue balloons, $4$ green balloons, and $1$ red balloon. Then he must select $18$ more balloons, of which at most $9$ are blue, at most $6$ are red, and at most $6$ are yellow. Since John can only select $18$ more balloons, at most $18$ are green. We do not need to concern ourselves with this restriction since John can use as many green balloons as he likes.



        If we let $b$, $g$, $r$, and $y$ denote the number of additional balloons John selects, then we need to find the number of solutions of the equation
        $$b + g + r + y = 18 tag{1}$$
        in the nonnegative integers subject to the restrictions $b leq 9$, $r leq 6$, $y leq 6$. While we could impose the restriction $g leq 18$ as well, the number of distributions in which $g geq 19$ is zero.



        Can you proceed?







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 24 at 12:45









        N. F. Taussig

        42.9k93254




        42.9k93254






























            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%2f3007323%2finclusion-exclusion-principle-with-mixed-lower-and-upper-bounds%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

            Bundesstraße 106

            Verónica Boquete

            Ida-Boy-Ed-Garten