How many ways are there to split $n$ students into groups of size $x$ OR $y$ ($50$ students into groups of...












1












$begingroup$



How many ways are there to split $n$ students into groups of size $x$ OR $y$ ($50$ students into groups of $5$ or $6$)?




I understand there might not be an equation in general but is there an algorithm for finding the answer that I could follow?










share|cite|improve this question











$endgroup$

















    1












    $begingroup$



    How many ways are there to split $n$ students into groups of size $x$ OR $y$ ($50$ students into groups of $5$ or $6$)?




    I understand there might not be an equation in general but is there an algorithm for finding the answer that I could follow?










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$



      How many ways are there to split $n$ students into groups of size $x$ OR $y$ ($50$ students into groups of $5$ or $6$)?




      I understand there might not be an equation in general but is there an algorithm for finding the answer that I could follow?










      share|cite|improve this question











      $endgroup$





      How many ways are there to split $n$ students into groups of size $x$ OR $y$ ($50$ students into groups of $5$ or $6$)?




      I understand there might not be an equation in general but is there an algorithm for finding the answer that I could follow?







      combinatorics permutations combinations






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Sep 8 '15 at 23:23







      user147263

















      asked Sep 8 '15 at 18:48









      Kyle O.Kyle O.

      133




      133






















          2 Answers
          2






          active

          oldest

          votes


















          1












          $begingroup$

          If you specify how many of each size you want it is easy.



          For example, splitting $50$ students into groups of sizes $5,5,5,5,6,6,6,6,6$ can be don in $dfrac{30!}{5!^4 6!^5 4! 3!}$ ways.



          In general if you have $n$ students and you split them into $a$ groups of size $x$ and $b$ groups of size $y$ there are $frac{n!}{x!^ay!^b b!a!}$ ways to do it.



          So one way to solve the problem is to calculate the number of ways for each possible way to add up to $n$ using groups of $x$ and $y$. Luckily the non-negative solutions to $ax+by=n$ can be found easily.






          share|cite|improve this answer











          $endgroup$





















            0












            $begingroup$

            First, you need to determine the different ways you can split up the group without leaving anyone out. In your example of 50 people in groups of 5 or 6 there are only two possibilities. I could have 10 groups of 5, or 5 groups of 6 and 4 groups of 5. From there, it's just matter of calculating possible combinations.



            Considering first the 10 groups of 5, there are 50C5 ways to pick the first group, 45C5 ways to choose the second group, 40C5 ways to choose the third, etc.



            Multiplying all these possibilities, we find that there are around 4.9*10^43 ways to choose 10 groups of 5.



            For the second case, involving groups of both 5 and 6, the calculation is very similar.



            (50C5)(45C5)(40C5)(35C5)(30C6)(24C6)(18C6)(12C6)(6C6)= around 7.58*10^41



            Note that i could have started with the groups of 6 in my calculation and gotten the same answer.



            The last step is just to add the two combination totals together, giving a final answer of around 5*10^43 possible ways to split up the students.






            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%2f1427033%2fhow-many-ways-are-there-to-split-n-students-into-groups-of-size-x-or-y-5%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1












              $begingroup$

              If you specify how many of each size you want it is easy.



              For example, splitting $50$ students into groups of sizes $5,5,5,5,6,6,6,6,6$ can be don in $dfrac{30!}{5!^4 6!^5 4! 3!}$ ways.



              In general if you have $n$ students and you split them into $a$ groups of size $x$ and $b$ groups of size $y$ there are $frac{n!}{x!^ay!^b b!a!}$ ways to do it.



              So one way to solve the problem is to calculate the number of ways for each possible way to add up to $n$ using groups of $x$ and $y$. Luckily the non-negative solutions to $ax+by=n$ can be found easily.






              share|cite|improve this answer











              $endgroup$


















                1












                $begingroup$

                If you specify how many of each size you want it is easy.



                For example, splitting $50$ students into groups of sizes $5,5,5,5,6,6,6,6,6$ can be don in $dfrac{30!}{5!^4 6!^5 4! 3!}$ ways.



                In general if you have $n$ students and you split them into $a$ groups of size $x$ and $b$ groups of size $y$ there are $frac{n!}{x!^ay!^b b!a!}$ ways to do it.



                So one way to solve the problem is to calculate the number of ways for each possible way to add up to $n$ using groups of $x$ and $y$. Luckily the non-negative solutions to $ax+by=n$ can be found easily.






                share|cite|improve this answer











                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  If you specify how many of each size you want it is easy.



                  For example, splitting $50$ students into groups of sizes $5,5,5,5,6,6,6,6,6$ can be don in $dfrac{30!}{5!^4 6!^5 4! 3!}$ ways.



                  In general if you have $n$ students and you split them into $a$ groups of size $x$ and $b$ groups of size $y$ there are $frac{n!}{x!^ay!^b b!a!}$ ways to do it.



                  So one way to solve the problem is to calculate the number of ways for each possible way to add up to $n$ using groups of $x$ and $y$. Luckily the non-negative solutions to $ax+by=n$ can be found easily.






                  share|cite|improve this answer











                  $endgroup$



                  If you specify how many of each size you want it is easy.



                  For example, splitting $50$ students into groups of sizes $5,5,5,5,6,6,6,6,6$ can be don in $dfrac{30!}{5!^4 6!^5 4! 3!}$ ways.



                  In general if you have $n$ students and you split them into $a$ groups of size $x$ and $b$ groups of size $y$ there are $frac{n!}{x!^ay!^b b!a!}$ ways to do it.



                  So one way to solve the problem is to calculate the number of ways for each possible way to add up to $n$ using groups of $x$ and $y$. Luckily the non-negative solutions to $ax+by=n$ can be found easily.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Feb 1 at 16:27









                  kyrill

                  1032




                  1032










                  answered Sep 8 '15 at 21:12









                  Jorge Fernández HidalgoJorge Fernández Hidalgo

                  77.1k1394195




                  77.1k1394195























                      0












                      $begingroup$

                      First, you need to determine the different ways you can split up the group without leaving anyone out. In your example of 50 people in groups of 5 or 6 there are only two possibilities. I could have 10 groups of 5, or 5 groups of 6 and 4 groups of 5. From there, it's just matter of calculating possible combinations.



                      Considering first the 10 groups of 5, there are 50C5 ways to pick the first group, 45C5 ways to choose the second group, 40C5 ways to choose the third, etc.



                      Multiplying all these possibilities, we find that there are around 4.9*10^43 ways to choose 10 groups of 5.



                      For the second case, involving groups of both 5 and 6, the calculation is very similar.



                      (50C5)(45C5)(40C5)(35C5)(30C6)(24C6)(18C6)(12C6)(6C6)= around 7.58*10^41



                      Note that i could have started with the groups of 6 in my calculation and gotten the same answer.



                      The last step is just to add the two combination totals together, giving a final answer of around 5*10^43 possible ways to split up the students.






                      share|cite|improve this answer









                      $endgroup$


















                        0












                        $begingroup$

                        First, you need to determine the different ways you can split up the group without leaving anyone out. In your example of 50 people in groups of 5 or 6 there are only two possibilities. I could have 10 groups of 5, or 5 groups of 6 and 4 groups of 5. From there, it's just matter of calculating possible combinations.



                        Considering first the 10 groups of 5, there are 50C5 ways to pick the first group, 45C5 ways to choose the second group, 40C5 ways to choose the third, etc.



                        Multiplying all these possibilities, we find that there are around 4.9*10^43 ways to choose 10 groups of 5.



                        For the second case, involving groups of both 5 and 6, the calculation is very similar.



                        (50C5)(45C5)(40C5)(35C5)(30C6)(24C6)(18C6)(12C6)(6C6)= around 7.58*10^41



                        Note that i could have started with the groups of 6 in my calculation and gotten the same answer.



                        The last step is just to add the two combination totals together, giving a final answer of around 5*10^43 possible ways to split up the students.






                        share|cite|improve this answer









                        $endgroup$
















                          0












                          0








                          0





                          $begingroup$

                          First, you need to determine the different ways you can split up the group without leaving anyone out. In your example of 50 people in groups of 5 or 6 there are only two possibilities. I could have 10 groups of 5, or 5 groups of 6 and 4 groups of 5. From there, it's just matter of calculating possible combinations.



                          Considering first the 10 groups of 5, there are 50C5 ways to pick the first group, 45C5 ways to choose the second group, 40C5 ways to choose the third, etc.



                          Multiplying all these possibilities, we find that there are around 4.9*10^43 ways to choose 10 groups of 5.



                          For the second case, involving groups of both 5 and 6, the calculation is very similar.



                          (50C5)(45C5)(40C5)(35C5)(30C6)(24C6)(18C6)(12C6)(6C6)= around 7.58*10^41



                          Note that i could have started with the groups of 6 in my calculation and gotten the same answer.



                          The last step is just to add the two combination totals together, giving a final answer of around 5*10^43 possible ways to split up the students.






                          share|cite|improve this answer









                          $endgroup$



                          First, you need to determine the different ways you can split up the group without leaving anyone out. In your example of 50 people in groups of 5 or 6 there are only two possibilities. I could have 10 groups of 5, or 5 groups of 6 and 4 groups of 5. From there, it's just matter of calculating possible combinations.



                          Considering first the 10 groups of 5, there are 50C5 ways to pick the first group, 45C5 ways to choose the second group, 40C5 ways to choose the third, etc.



                          Multiplying all these possibilities, we find that there are around 4.9*10^43 ways to choose 10 groups of 5.



                          For the second case, involving groups of both 5 and 6, the calculation is very similar.



                          (50C5)(45C5)(40C5)(35C5)(30C6)(24C6)(18C6)(12C6)(6C6)= around 7.58*10^41



                          Note that i could have started with the groups of 6 in my calculation and gotten the same answer.



                          The last step is just to add the two combination totals together, giving a final answer of around 5*10^43 possible ways to split up the students.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Sep 8 '15 at 19:05









                          LemurLemur

                          1




                          1






























                              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%2f1427033%2fhow-many-ways-are-there-to-split-n-students-into-groups-of-size-x-or-y-5%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