Two ends are occupied by boys and no girls are adjacent.












2












$begingroup$


I am learning combinatorics from the book Principles and Techniques in Combinatorics.
I am having some trouble understanding why my solution to the following problem is incorrect:




Example 1.2.3. There are 7 boys and 3 girls in a gathering. In how
many ways can they be arranged in a row so that
(i) the 3 girls form a single block (i.e. there is no boy between any two of
the girls)?
(ii) the two end-positions are occupied by boys and no girls are adjacent?




The second part is what I am having trouble with.



I first arrange two boys in the two extreme positions. There are $P(7,2)$ ways of doing this. Then for the remaining eight positions, I calculate the number of permutations of the boys and girls in which the girls are not adjacent to each other like so $8!-6!times3!$.



Then by the multiplication principle, we have $P(7,2)times(8!-6!times3!)$ such arrangements.



Please note that I do understand the solution where the boys are arranged first and the girls are placed between them afterwards. I just want to know what is wrong with mine and what I can do prevent such a mistake from happening again.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
    $endgroup$
    – lulu
    Jan 18 at 15:00










  • $begingroup$
    I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
    $endgroup$
    – DS2830
    Jan 18 at 15:09












  • $begingroup$
    I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
    $endgroup$
    – lulu
    Jan 18 at 15:11












  • $begingroup$
    I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
    $endgroup$
    – DS2830
    Jan 18 at 15:19










  • $begingroup$
    Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
    $endgroup$
    – lulu
    Jan 18 at 15:20
















2












$begingroup$


I am learning combinatorics from the book Principles and Techniques in Combinatorics.
I am having some trouble understanding why my solution to the following problem is incorrect:




Example 1.2.3. There are 7 boys and 3 girls in a gathering. In how
many ways can they be arranged in a row so that
(i) the 3 girls form a single block (i.e. there is no boy between any two of
the girls)?
(ii) the two end-positions are occupied by boys and no girls are adjacent?




The second part is what I am having trouble with.



I first arrange two boys in the two extreme positions. There are $P(7,2)$ ways of doing this. Then for the remaining eight positions, I calculate the number of permutations of the boys and girls in which the girls are not adjacent to each other like so $8!-6!times3!$.



Then by the multiplication principle, we have $P(7,2)times(8!-6!times3!)$ such arrangements.



Please note that I do understand the solution where the boys are arranged first and the girls are placed between them afterwards. I just want to know what is wrong with mine and what I can do prevent such a mistake from happening again.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
    $endgroup$
    – lulu
    Jan 18 at 15:00










  • $begingroup$
    I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
    $endgroup$
    – DS2830
    Jan 18 at 15:09












  • $begingroup$
    I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
    $endgroup$
    – lulu
    Jan 18 at 15:11












  • $begingroup$
    I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
    $endgroup$
    – DS2830
    Jan 18 at 15:19










  • $begingroup$
    Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
    $endgroup$
    – lulu
    Jan 18 at 15:20














2












2








2





$begingroup$


I am learning combinatorics from the book Principles and Techniques in Combinatorics.
I am having some trouble understanding why my solution to the following problem is incorrect:




Example 1.2.3. There are 7 boys and 3 girls in a gathering. In how
many ways can they be arranged in a row so that
(i) the 3 girls form a single block (i.e. there is no boy between any two of
the girls)?
(ii) the two end-positions are occupied by boys and no girls are adjacent?




The second part is what I am having trouble with.



I first arrange two boys in the two extreme positions. There are $P(7,2)$ ways of doing this. Then for the remaining eight positions, I calculate the number of permutations of the boys and girls in which the girls are not adjacent to each other like so $8!-6!times3!$.



Then by the multiplication principle, we have $P(7,2)times(8!-6!times3!)$ such arrangements.



Please note that I do understand the solution where the boys are arranged first and the girls are placed between them afterwards. I just want to know what is wrong with mine and what I can do prevent such a mistake from happening again.










share|cite|improve this question











$endgroup$




I am learning combinatorics from the book Principles and Techniques in Combinatorics.
I am having some trouble understanding why my solution to the following problem is incorrect:




Example 1.2.3. There are 7 boys and 3 girls in a gathering. In how
many ways can they be arranged in a row so that
(i) the 3 girls form a single block (i.e. there is no boy between any two of
the girls)?
(ii) the two end-positions are occupied by boys and no girls are adjacent?




The second part is what I am having trouble with.



I first arrange two boys in the two extreme positions. There are $P(7,2)$ ways of doing this. Then for the remaining eight positions, I calculate the number of permutations of the boys and girls in which the girls are not adjacent to each other like so $8!-6!times3!$.



Then by the multiplication principle, we have $P(7,2)times(8!-6!times3!)$ such arrangements.



Please note that I do understand the solution where the boys are arranged first and the girls are placed between them afterwards. I just want to know what is wrong with mine and what I can do prevent such a mistake from happening again.







combinatorics






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 18 at 17:05









N. F. Taussig

44.5k103357




44.5k103357










asked Jan 18 at 14:47









DS2830DS2830

183




183












  • $begingroup$
    Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
    $endgroup$
    – lulu
    Jan 18 at 15:00










  • $begingroup$
    I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
    $endgroup$
    – DS2830
    Jan 18 at 15:09












  • $begingroup$
    I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
    $endgroup$
    – lulu
    Jan 18 at 15:11












  • $begingroup$
    I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
    $endgroup$
    – DS2830
    Jan 18 at 15:19










  • $begingroup$
    Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
    $endgroup$
    – lulu
    Jan 18 at 15:20


















  • $begingroup$
    Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
    $endgroup$
    – lulu
    Jan 18 at 15:00










  • $begingroup$
    I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
    $endgroup$
    – DS2830
    Jan 18 at 15:09












  • $begingroup$
    I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
    $endgroup$
    – lulu
    Jan 18 at 15:11












  • $begingroup$
    I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
    $endgroup$
    – DS2830
    Jan 18 at 15:19










  • $begingroup$
    Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
    $endgroup$
    – lulu
    Jan 18 at 15:20
















$begingroup$
Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
$endgroup$
– lulu
Jan 18 at 15:00




$begingroup$
Your expression just counts the ways to do it so that the three girls aren't all together in a block. You could still have, e.g. $GGBGcdots$.
$endgroup$
– lulu
Jan 18 at 15:00












$begingroup$
I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
$endgroup$
– DS2830
Jan 18 at 15:09






$begingroup$
I see. Would using the inclusion-exclusion principle to calculate the permutations in which neither 2 nor 3 girls are together and then subtracting that from $8!$ work?
$endgroup$
– DS2830
Jan 18 at 15:09














$begingroup$
I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
$endgroup$
– lulu
Jan 18 at 15:11






$begingroup$
I prefer the stars and bars method. You have gaps around and between the girls, as $_G_G_G_$. You need to put at least one boy in each of the two middle gaps, but then you have $3$ boys left to distribute to $4$ gaps without restriction.
$endgroup$
– lulu
Jan 18 at 15:11














$begingroup$
I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
$endgroup$
– DS2830
Jan 18 at 15:19




$begingroup$
I see. I don't have much experience with the stars and bars method. However, I do know some inclusion-exclusion, would that be applicable here? If yes, I'm thinking of finding $|AUB|$ where $A,B$ represent the events of two and three girls being together respectively and then subtracting that from $8!$.
$endgroup$
– DS2830
Jan 18 at 15:19












$begingroup$
Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
$endgroup$
– lulu
Jan 18 at 15:20




$begingroup$
Yes, you could do it by inclusion exclusion. First subtract off the orders in which any specified pair of girls sit together. Then add back the orders in which all three sit together.
$endgroup$
– lulu
Jan 18 at 15:20










1 Answer
1






active

oldest

votes


















1












$begingroup$

Arrange the seven boys in a row, which can be done in $7!$ ways. Since boys must occupy both ends of the row, this creates six spaces in which the three girls can be placed.
$$B square B square B square B square B square B square B$$
To ensure that no two girls are adjacent, choose three of those six spaces in which to place a girl, which can be done in $binom{6}{3}$ ways. The three girls can be arranged in the selected spaces in $3!$ ways. Hence, the number of admissible arrangements is
$$7!binom{6}{3}3!$$






share|cite|improve this answer









$endgroup$













    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',
    autoActivateHeartbeat: false,
    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%2f3078334%2ftwo-ends-are-occupied-by-boys-and-no-girls-are-adjacent%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









    1












    $begingroup$

    Arrange the seven boys in a row, which can be done in $7!$ ways. Since boys must occupy both ends of the row, this creates six spaces in which the three girls can be placed.
    $$B square B square B square B square B square B square B$$
    To ensure that no two girls are adjacent, choose three of those six spaces in which to place a girl, which can be done in $binom{6}{3}$ ways. The three girls can be arranged in the selected spaces in $3!$ ways. Hence, the number of admissible arrangements is
    $$7!binom{6}{3}3!$$






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      Arrange the seven boys in a row, which can be done in $7!$ ways. Since boys must occupy both ends of the row, this creates six spaces in which the three girls can be placed.
      $$B square B square B square B square B square B square B$$
      To ensure that no two girls are adjacent, choose three of those six spaces in which to place a girl, which can be done in $binom{6}{3}$ ways. The three girls can be arranged in the selected spaces in $3!$ ways. Hence, the number of admissible arrangements is
      $$7!binom{6}{3}3!$$






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        Arrange the seven boys in a row, which can be done in $7!$ ways. Since boys must occupy both ends of the row, this creates six spaces in which the three girls can be placed.
        $$B square B square B square B square B square B square B$$
        To ensure that no two girls are adjacent, choose three of those six spaces in which to place a girl, which can be done in $binom{6}{3}$ ways. The three girls can be arranged in the selected spaces in $3!$ ways. Hence, the number of admissible arrangements is
        $$7!binom{6}{3}3!$$






        share|cite|improve this answer









        $endgroup$



        Arrange the seven boys in a row, which can be done in $7!$ ways. Since boys must occupy both ends of the row, this creates six spaces in which the three girls can be placed.
        $$B square B square B square B square B square B square B$$
        To ensure that no two girls are adjacent, choose three of those six spaces in which to place a girl, which can be done in $binom{6}{3}$ ways. The three girls can be arranged in the selected spaces in $3!$ ways. Hence, the number of admissible arrangements is
        $$7!binom{6}{3}3!$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 18 at 17:09









        N. F. TaussigN. F. Taussig

        44.5k103357




        44.5k103357






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3078334%2ftwo-ends-are-occupied-by-boys-and-no-girls-are-adjacent%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith