Discrete Math: Combination with Repetitions












1














QUESTION: During a period of 7 days, Charles eats a total of
25 donuts. A donut schedule is a sequence of 7 numbers, whose sum is equal to 25, and whose numbers indicate the number of donuts that Charles eats on each day. Three examples of such schedules are (3; 2; 7; 4; 1; 3; 5), (2; 3; 7; 4; 1; 3; 5), and (3; 0; 9; 4; 1; 0; 8). How many donut schedules are there?
Answer: 31C6



ATTEMPT: I realized that this is a combination with repetition problem. I used the formula (r+n-1)! / r! * (n-1)! where r is the number of slots and n is the number of options. I used 7 as the number of slots and 25 as the number of options to get my answer to be 31C7. Don't know what I have missed accounting here.










share|cite|improve this question



























    1














    QUESTION: During a period of 7 days, Charles eats a total of
    25 donuts. A donut schedule is a sequence of 7 numbers, whose sum is equal to 25, and whose numbers indicate the number of donuts that Charles eats on each day. Three examples of such schedules are (3; 2; 7; 4; 1; 3; 5), (2; 3; 7; 4; 1; 3; 5), and (3; 0; 9; 4; 1; 0; 8). How many donut schedules are there?
    Answer: 31C6



    ATTEMPT: I realized that this is a combination with repetition problem. I used the formula (r+n-1)! / r! * (n-1)! where r is the number of slots and n is the number of options. I used 7 as the number of slots and 25 as the number of options to get my answer to be 31C7. Don't know what I have missed accounting here.










    share|cite|improve this question

























      1












      1








      1







      QUESTION: During a period of 7 days, Charles eats a total of
      25 donuts. A donut schedule is a sequence of 7 numbers, whose sum is equal to 25, and whose numbers indicate the number of donuts that Charles eats on each day. Three examples of such schedules are (3; 2; 7; 4; 1; 3; 5), (2; 3; 7; 4; 1; 3; 5), and (3; 0; 9; 4; 1; 0; 8). How many donut schedules are there?
      Answer: 31C6



      ATTEMPT: I realized that this is a combination with repetition problem. I used the formula (r+n-1)! / r! * (n-1)! where r is the number of slots and n is the number of options. I used 7 as the number of slots and 25 as the number of options to get my answer to be 31C7. Don't know what I have missed accounting here.










      share|cite|improve this question













      QUESTION: During a period of 7 days, Charles eats a total of
      25 donuts. A donut schedule is a sequence of 7 numbers, whose sum is equal to 25, and whose numbers indicate the number of donuts that Charles eats on each day. Three examples of such schedules are (3; 2; 7; 4; 1; 3; 5), (2; 3; 7; 4; 1; 3; 5), and (3; 0; 9; 4; 1; 0; 8). How many donut schedules are there?
      Answer: 31C6



      ATTEMPT: I realized that this is a combination with repetition problem. I used the formula (r+n-1)! / r! * (n-1)! where r is the number of slots and n is the number of options. I used 7 as the number of slots and 25 as the number of options to get my answer to be 31C7. Don't know what I have missed accounting here.







      combinatorics






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Nov 25 at 5:24









      Toby

      1577




      1577






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Imagine you have $25$ donuts line up, then you want to make cuts to the line of donuts to divide the donuts into $7$ parts. You need $6$ cuts to divide a line into $7$ parts. So imagine $25+6$ position on a line where you can either place a cut or a donuts, you have to choose 6 out of the 31 positions to place the cuts. So that is $binom{25+6}{6}$ ways to do it. Is this correct?



          So here is an example of how to relate a sequence of donuts and cuts to a schedule: Here I'll use D to denote donuts and c to denote cut.



          ccdddddddddddddddddddddddddcccc correspond to $(0,0,25,0,0,0,0)$.



          cddccddddddddddddddddddddddcdcc correspond to $(0,2,0,22,1,0,0)$.



          So you see you are choosing 6 position to put cuts in 31 position and the rest to put donuts. 6 cuts because 6 cuts divide a line into 7 parts.






          share|cite|improve this answer























          • Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
            – Toby
            Nov 25 at 5:49











          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%2f3012469%2fdiscrete-math-combination-with-repetitions%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














          Imagine you have $25$ donuts line up, then you want to make cuts to the line of donuts to divide the donuts into $7$ parts. You need $6$ cuts to divide a line into $7$ parts. So imagine $25+6$ position on a line where you can either place a cut or a donuts, you have to choose 6 out of the 31 positions to place the cuts. So that is $binom{25+6}{6}$ ways to do it. Is this correct?



          So here is an example of how to relate a sequence of donuts and cuts to a schedule: Here I'll use D to denote donuts and c to denote cut.



          ccdddddddddddddddddddddddddcccc correspond to $(0,0,25,0,0,0,0)$.



          cddccddddddddddddddddddddddcdcc correspond to $(0,2,0,22,1,0,0)$.



          So you see you are choosing 6 position to put cuts in 31 position and the rest to put donuts. 6 cuts because 6 cuts divide a line into 7 parts.






          share|cite|improve this answer























          • Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
            – Toby
            Nov 25 at 5:49
















          1














          Imagine you have $25$ donuts line up, then you want to make cuts to the line of donuts to divide the donuts into $7$ parts. You need $6$ cuts to divide a line into $7$ parts. So imagine $25+6$ position on a line where you can either place a cut or a donuts, you have to choose 6 out of the 31 positions to place the cuts. So that is $binom{25+6}{6}$ ways to do it. Is this correct?



          So here is an example of how to relate a sequence of donuts and cuts to a schedule: Here I'll use D to denote donuts and c to denote cut.



          ccdddddddddddddddddddddddddcccc correspond to $(0,0,25,0,0,0,0)$.



          cddccddddddddddddddddddddddcdcc correspond to $(0,2,0,22,1,0,0)$.



          So you see you are choosing 6 position to put cuts in 31 position and the rest to put donuts. 6 cuts because 6 cuts divide a line into 7 parts.






          share|cite|improve this answer























          • Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
            – Toby
            Nov 25 at 5:49














          1












          1








          1






          Imagine you have $25$ donuts line up, then you want to make cuts to the line of donuts to divide the donuts into $7$ parts. You need $6$ cuts to divide a line into $7$ parts. So imagine $25+6$ position on a line where you can either place a cut or a donuts, you have to choose 6 out of the 31 positions to place the cuts. So that is $binom{25+6}{6}$ ways to do it. Is this correct?



          So here is an example of how to relate a sequence of donuts and cuts to a schedule: Here I'll use D to denote donuts and c to denote cut.



          ccdddddddddddddddddddddddddcccc correspond to $(0,0,25,0,0,0,0)$.



          cddccddddddddddddddddddddddcdcc correspond to $(0,2,0,22,1,0,0)$.



          So you see you are choosing 6 position to put cuts in 31 position and the rest to put donuts. 6 cuts because 6 cuts divide a line into 7 parts.






          share|cite|improve this answer














          Imagine you have $25$ donuts line up, then you want to make cuts to the line of donuts to divide the donuts into $7$ parts. You need $6$ cuts to divide a line into $7$ parts. So imagine $25+6$ position on a line where you can either place a cut or a donuts, you have to choose 6 out of the 31 positions to place the cuts. So that is $binom{25+6}{6}$ ways to do it. Is this correct?



          So here is an example of how to relate a sequence of donuts and cuts to a schedule: Here I'll use D to denote donuts and c to denote cut.



          ccdddddddddddddddddddddddddcccc correspond to $(0,0,25,0,0,0,0)$.



          cddccddddddddddddddddddddddcdcc correspond to $(0,2,0,22,1,0,0)$.



          So you see you are choosing 6 position to put cuts in 31 position and the rest to put donuts. 6 cuts because 6 cuts divide a line into 7 parts.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 25 at 6:07

























          answered Nov 25 at 5:35









          mathnoob

          1,794422




          1,794422












          • Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
            – Toby
            Nov 25 at 5:49


















          • Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
            – Toby
            Nov 25 at 5:49
















          Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
          – Toby
          Nov 25 at 5:49




          Yes, the answer you got is correct. I am still confused on how you got the 6 position part, like the placing a cut or donut part. What part of the question should I be analyzing that I can draw the conclusion that even though it says 7 number sequence, by considering drawing lines it should actually be 6?
          – Toby
          Nov 25 at 5:49


















          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%2f3012469%2fdiscrete-math-combination-with-repetitions%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

          Plaza Victoria

          Puebla de Zaragoza

          Musa