Formula for Combinations With Replacement











up vote
9
down vote

favorite
4












I understand how combinations and permutations work (without replacement). I also see why a permutation of $n$ elements ordered $k$ at a time (with replacement) is equal to $n^{k}$. Through some browsing I've found that the number of combinations with replacement of $n$ items taken $k$ at a time can be expressed as $(binom{n}{k})$ [this "double" set of parentheses is the notation developed by Richard Stanley to convey the idea of combinations with replacement].



Alternatively, $(binom{n}{k})$ = $binom{n+k-1}{k}$. This is more familiar notation. Unfortunately, I have not found a clear explanation as to why the above formula applies to the combinations with replacement. Could anyone be so kind to explain how this formula was developed?










share|cite|improve this question




























    up vote
    9
    down vote

    favorite
    4












    I understand how combinations and permutations work (without replacement). I also see why a permutation of $n$ elements ordered $k$ at a time (with replacement) is equal to $n^{k}$. Through some browsing I've found that the number of combinations with replacement of $n$ items taken $k$ at a time can be expressed as $(binom{n}{k})$ [this "double" set of parentheses is the notation developed by Richard Stanley to convey the idea of combinations with replacement].



    Alternatively, $(binom{n}{k})$ = $binom{n+k-1}{k}$. This is more familiar notation. Unfortunately, I have not found a clear explanation as to why the above formula applies to the combinations with replacement. Could anyone be so kind to explain how this formula was developed?










    share|cite|improve this question


























      up vote
      9
      down vote

      favorite
      4









      up vote
      9
      down vote

      favorite
      4






      4





      I understand how combinations and permutations work (without replacement). I also see why a permutation of $n$ elements ordered $k$ at a time (with replacement) is equal to $n^{k}$. Through some browsing I've found that the number of combinations with replacement of $n$ items taken $k$ at a time can be expressed as $(binom{n}{k})$ [this "double" set of parentheses is the notation developed by Richard Stanley to convey the idea of combinations with replacement].



      Alternatively, $(binom{n}{k})$ = $binom{n+k-1}{k}$. This is more familiar notation. Unfortunately, I have not found a clear explanation as to why the above formula applies to the combinations with replacement. Could anyone be so kind to explain how this formula was developed?










      share|cite|improve this question















      I understand how combinations and permutations work (without replacement). I also see why a permutation of $n$ elements ordered $k$ at a time (with replacement) is equal to $n^{k}$. Through some browsing I've found that the number of combinations with replacement of $n$ items taken $k$ at a time can be expressed as $(binom{n}{k})$ [this "double" set of parentheses is the notation developed by Richard Stanley to convey the idea of combinations with replacement].



      Alternatively, $(binom{n}{k})$ = $binom{n+k-1}{k}$. This is more familiar notation. Unfortunately, I have not found a clear explanation as to why the above formula applies to the combinations with replacement. Could anyone be so kind to explain how this formula was developed?







      combinatorics combinations






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Aug 24 '13 at 2:26









      Alex

      14.2k42134




      14.2k42134










      asked Aug 24 '13 at 1:46









      Xoque55

      2,71631331




      2,71631331






















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          9
          down vote



          accepted










          http://www.mathsisfun.com/combinatorics/combinations-permutations.html



          First result on Google for 'combinations and permutations'. They give an explanation that anyone should be able to understand.






          share|cite|improve this answer

















          • 9




            umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
            – Pragy Agarwal
            Nov 27 '17 at 16:52






          • 1




            Not so. Observe that I suggested a different search query to that.
            – user85798
            Nov 27 '17 at 20:44






          • 4




            Downvoting this link-only answer.
            – Richard
            Jun 5 at 18:59


















          up vote
          3
          down vote













          Assume the question is about buying 6 cans of soda pop from 4 brands of soda. Of course, there is more than 6 cans of soda for each brand. The number of different combinations is $binom{4+6-1}{6} = 84. $



          Think of it this way: If you wanted 2 cans of soda pop from the 4 brands, the second can of pop can be the same as the first one. Therefore, the reason it is $binom{5}{2}$ is because one of the options out of the 5 is "duplicate" pop. If it is $binom{4}{2}$, it would not be combination with replacement.



          Therefore, in $binom{4+6-1}{6} $, the 6-1 pop (or k-1) is the "duplicate" pop meaning it can be one of the pop that has been picked.






          share|cite|improve this answer




























            up vote
            3
            down vote













            $defmultichoose#1#2{{left(kern-.3emleft(genfrac{}{}{0pt}{}{#1}{#2}right)kern-.3emright)}}$I really like one of the explanations within Wikipedia's article on multisets — in summary of that intuition: $multichoose{3}{5}$ is equivalent to counting the number of ways you can fill 3 distinct buckets with 5 (initially non-distinct) elements in total. This is one such filling:



            $$color{blue}{star star star} mid star mid color{red}{star} $$



            And a second such filling (buckets can be empty):



            $$color{blue}{star star} mid star star star mid$$



            The number of ways we can fill $n$ distinct buckets with $k$ elements total corresponds to the number of ways we can place $n-1$ (non-distinct) bars among $k$ stars, as illustrated above. That latter part can be rephrased as: the number of ways we can place $n-1$ bars into $(n-1) + k$ total characters, which brings us to:



            $$binom{(n-1)+k}{n-1} = binom{n+k-1}{k}$$






            The name of that graphical aid is "stars and bars" — that article also contains an explanation similar to the one above.



            The concept of "combinations with replacement" is also sometimes referred to as "multichoose". Wikipedia notes that this is additionally equivalent to counting multisets:




            The number of multisets of cardinality k, with elements taken from a finite set of cardinality n, is called the multiset coefficient or multiset number.







            share|cite|improve this answer






























              up vote
              0
              down vote













              I have been looking for the same answer and I finally found something I could understand and explain to my 10 year old.





              Benjamin & Quinn 2003, p. 71
              For example, if you have four types of donuts (n = 4) on a menu to choose from and you want three donuts (k = 3), the number of ways to choose the donuts with repetition can be calculated as



              This result can be verified by listing all the 3-multisubsets of the set S = {1,2,3,4}. This is displayed in the following table.



              No. 3-Multiset Eq. Solution
              1 {1,1,1} [3,0,0,0]

              2 {1,1,2} [2,1,0,0]

              3 {1,1,3} [2,0,1,0]

              4 {1,1,4} [2,0,0,1]

              5 {1,2,2} [1,2,0,0]

              6 {1,2,3} [1,1,1,0]

              7 {1,2,4} [1,1,0,1]

              8 {1,3,3} [1,0,2,0]

              9 {1,3,4} [1,0,1,1]

              10 {1,4,4} [1,0,0,2]

              11 {2,2,2} [0,3,0,0]

              12 {2,2,3} [0,2,1,0]

              13 {2,2,4} [0,2,0,1]

              14 {2,3,3} [0,1,2,0]

              15 {2,3,4} [0,1,1,1]

              16 {2,4,4} [0,1,0,2]

              17 {3,3,3} [0,0,3,0]

              18 {3,3,4} [0,0,2,1]

              19 {3,4,4} [0,0,1,2]

              20 {4,4,4} [0,0,0,3]






              share|cite|improve this answer




























                up vote
                0
                down vote













                Considering a multiset with $n$ distinct types of objects and at least $k$ of each type, we are interested in counting the number of submultisets of size $k$. If we have $x_i$ elements of the $i^{th}$ type, then the number of such multiset corresponds to the number of non-negative integer solutions of $x_1 + x_2 + cdots x_n = k$, and that is $binom{n+k-1}{k}$. To see that this formulation makes sense, considering the example of submultisets of size 3 taken from the mutiset with 4 types provided by HKA, note that the sums of the entries in the square brackets, which count the number of repetitions of each type of element, all sum to 3. The other argument, provided by braham_snyder, employing the filling of buckets as defined by spaces between dividers, may be used to prove that the number of non-negative integer solutions of the sum of $x_i$s equal to $k$ is the same expression, you essentially have $k$ ones you need to distribute amongst $n$ bins, allowing some bins to contain none. The $x_i$s count the number of ones in the $i^{th}$ bin.






                share|cite|improve this answer























                • Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                  – hardmath
                  Nov 19 at 6:21











                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%2f474741%2fformula-for-combinations-with-replacement%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                9
                down vote



                accepted










                http://www.mathsisfun.com/combinatorics/combinations-permutations.html



                First result on Google for 'combinations and permutations'. They give an explanation that anyone should be able to understand.






                share|cite|improve this answer

















                • 9




                  umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                  – Pragy Agarwal
                  Nov 27 '17 at 16:52






                • 1




                  Not so. Observe that I suggested a different search query to that.
                  – user85798
                  Nov 27 '17 at 20:44






                • 4




                  Downvoting this link-only answer.
                  – Richard
                  Jun 5 at 18:59















                up vote
                9
                down vote



                accepted










                http://www.mathsisfun.com/combinatorics/combinations-permutations.html



                First result on Google for 'combinations and permutations'. They give an explanation that anyone should be able to understand.






                share|cite|improve this answer

















                • 9




                  umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                  – Pragy Agarwal
                  Nov 27 '17 at 16:52






                • 1




                  Not so. Observe that I suggested a different search query to that.
                  – user85798
                  Nov 27 '17 at 20:44






                • 4




                  Downvoting this link-only answer.
                  – Richard
                  Jun 5 at 18:59













                up vote
                9
                down vote



                accepted







                up vote
                9
                down vote



                accepted






                http://www.mathsisfun.com/combinatorics/combinations-permutations.html



                First result on Google for 'combinations and permutations'. They give an explanation that anyone should be able to understand.






                share|cite|improve this answer












                http://www.mathsisfun.com/combinatorics/combinations-permutations.html



                First result on Google for 'combinations and permutations'. They give an explanation that anyone should be able to understand.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Nov 15 '13 at 23:08









                user85798

                1




                1








                • 9




                  umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                  – Pragy Agarwal
                  Nov 27 '17 at 16:52






                • 1




                  Not so. Observe that I suggested a different search query to that.
                  – user85798
                  Nov 27 '17 at 20:44






                • 4




                  Downvoting this link-only answer.
                  – Richard
                  Jun 5 at 18:59














                • 9




                  umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                  – Pragy Agarwal
                  Nov 27 '17 at 16:52






                • 1




                  Not so. Observe that I suggested a different search query to that.
                  – user85798
                  Nov 27 '17 at 20:44






                • 4




                  Downvoting this link-only answer.
                  – Richard
                  Jun 5 at 18:59








                9




                9




                umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                – Pragy Agarwal
                Nov 27 '17 at 16:52




                umm.. The first link on Google for "combinations with replacement" gives your answer. This seems to be an infinite recursion.
                – Pragy Agarwal
                Nov 27 '17 at 16:52




                1




                1




                Not so. Observe that I suggested a different search query to that.
                – user85798
                Nov 27 '17 at 20:44




                Not so. Observe that I suggested a different search query to that.
                – user85798
                Nov 27 '17 at 20:44




                4




                4




                Downvoting this link-only answer.
                – Richard
                Jun 5 at 18:59




                Downvoting this link-only answer.
                – Richard
                Jun 5 at 18:59










                up vote
                3
                down vote













                Assume the question is about buying 6 cans of soda pop from 4 brands of soda. Of course, there is more than 6 cans of soda for each brand. The number of different combinations is $binom{4+6-1}{6} = 84. $



                Think of it this way: If you wanted 2 cans of soda pop from the 4 brands, the second can of pop can be the same as the first one. Therefore, the reason it is $binom{5}{2}$ is because one of the options out of the 5 is "duplicate" pop. If it is $binom{4}{2}$, it would not be combination with replacement.



                Therefore, in $binom{4+6-1}{6} $, the 6-1 pop (or k-1) is the "duplicate" pop meaning it can be one of the pop that has been picked.






                share|cite|improve this answer

























                  up vote
                  3
                  down vote













                  Assume the question is about buying 6 cans of soda pop from 4 brands of soda. Of course, there is more than 6 cans of soda for each brand. The number of different combinations is $binom{4+6-1}{6} = 84. $



                  Think of it this way: If you wanted 2 cans of soda pop from the 4 brands, the second can of pop can be the same as the first one. Therefore, the reason it is $binom{5}{2}$ is because one of the options out of the 5 is "duplicate" pop. If it is $binom{4}{2}$, it would not be combination with replacement.



                  Therefore, in $binom{4+6-1}{6} $, the 6-1 pop (or k-1) is the "duplicate" pop meaning it can be one of the pop that has been picked.






                  share|cite|improve this answer























                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    Assume the question is about buying 6 cans of soda pop from 4 brands of soda. Of course, there is more than 6 cans of soda for each brand. The number of different combinations is $binom{4+6-1}{6} = 84. $



                    Think of it this way: If you wanted 2 cans of soda pop from the 4 brands, the second can of pop can be the same as the first one. Therefore, the reason it is $binom{5}{2}$ is because one of the options out of the 5 is "duplicate" pop. If it is $binom{4}{2}$, it would not be combination with replacement.



                    Therefore, in $binom{4+6-1}{6} $, the 6-1 pop (or k-1) is the "duplicate" pop meaning it can be one of the pop that has been picked.






                    share|cite|improve this answer












                    Assume the question is about buying 6 cans of soda pop from 4 brands of soda. Of course, there is more than 6 cans of soda for each brand. The number of different combinations is $binom{4+6-1}{6} = 84. $



                    Think of it this way: If you wanted 2 cans of soda pop from the 4 brands, the second can of pop can be the same as the first one. Therefore, the reason it is $binom{5}{2}$ is because one of the options out of the 5 is "duplicate" pop. If it is $binom{4}{2}$, it would not be combination with replacement.



                    Therefore, in $binom{4+6-1}{6} $, the 6-1 pop (or k-1) is the "duplicate" pop meaning it can be one of the pop that has been picked.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Oct 11 '13 at 18:12









                    Richard

                    827




                    827






















                        up vote
                        3
                        down vote













                        $defmultichoose#1#2{{left(kern-.3emleft(genfrac{}{}{0pt}{}{#1}{#2}right)kern-.3emright)}}$I really like one of the explanations within Wikipedia's article on multisets — in summary of that intuition: $multichoose{3}{5}$ is equivalent to counting the number of ways you can fill 3 distinct buckets with 5 (initially non-distinct) elements in total. This is one such filling:



                        $$color{blue}{star star star} mid star mid color{red}{star} $$



                        And a second such filling (buckets can be empty):



                        $$color{blue}{star star} mid star star star mid$$



                        The number of ways we can fill $n$ distinct buckets with $k$ elements total corresponds to the number of ways we can place $n-1$ (non-distinct) bars among $k$ stars, as illustrated above. That latter part can be rephrased as: the number of ways we can place $n-1$ bars into $(n-1) + k$ total characters, which brings us to:



                        $$binom{(n-1)+k}{n-1} = binom{n+k-1}{k}$$






                        The name of that graphical aid is "stars and bars" — that article also contains an explanation similar to the one above.



                        The concept of "combinations with replacement" is also sometimes referred to as "multichoose". Wikipedia notes that this is additionally equivalent to counting multisets:




                        The number of multisets of cardinality k, with elements taken from a finite set of cardinality n, is called the multiset coefficient or multiset number.







                        share|cite|improve this answer



























                          up vote
                          3
                          down vote













                          $defmultichoose#1#2{{left(kern-.3emleft(genfrac{}{}{0pt}{}{#1}{#2}right)kern-.3emright)}}$I really like one of the explanations within Wikipedia's article on multisets — in summary of that intuition: $multichoose{3}{5}$ is equivalent to counting the number of ways you can fill 3 distinct buckets with 5 (initially non-distinct) elements in total. This is one such filling:



                          $$color{blue}{star star star} mid star mid color{red}{star} $$



                          And a second such filling (buckets can be empty):



                          $$color{blue}{star star} mid star star star mid$$



                          The number of ways we can fill $n$ distinct buckets with $k$ elements total corresponds to the number of ways we can place $n-1$ (non-distinct) bars among $k$ stars, as illustrated above. That latter part can be rephrased as: the number of ways we can place $n-1$ bars into $(n-1) + k$ total characters, which brings us to:



                          $$binom{(n-1)+k}{n-1} = binom{n+k-1}{k}$$






                          The name of that graphical aid is "stars and bars" — that article also contains an explanation similar to the one above.



                          The concept of "combinations with replacement" is also sometimes referred to as "multichoose". Wikipedia notes that this is additionally equivalent to counting multisets:




                          The number of multisets of cardinality k, with elements taken from a finite set of cardinality n, is called the multiset coefficient or multiset number.







                          share|cite|improve this answer

























                            up vote
                            3
                            down vote










                            up vote
                            3
                            down vote









                            $defmultichoose#1#2{{left(kern-.3emleft(genfrac{}{}{0pt}{}{#1}{#2}right)kern-.3emright)}}$I really like one of the explanations within Wikipedia's article on multisets — in summary of that intuition: $multichoose{3}{5}$ is equivalent to counting the number of ways you can fill 3 distinct buckets with 5 (initially non-distinct) elements in total. This is one such filling:



                            $$color{blue}{star star star} mid star mid color{red}{star} $$



                            And a second such filling (buckets can be empty):



                            $$color{blue}{star star} mid star star star mid$$



                            The number of ways we can fill $n$ distinct buckets with $k$ elements total corresponds to the number of ways we can place $n-1$ (non-distinct) bars among $k$ stars, as illustrated above. That latter part can be rephrased as: the number of ways we can place $n-1$ bars into $(n-1) + k$ total characters, which brings us to:



                            $$binom{(n-1)+k}{n-1} = binom{n+k-1}{k}$$






                            The name of that graphical aid is "stars and bars" — that article also contains an explanation similar to the one above.



                            The concept of "combinations with replacement" is also sometimes referred to as "multichoose". Wikipedia notes that this is additionally equivalent to counting multisets:




                            The number of multisets of cardinality k, with elements taken from a finite set of cardinality n, is called the multiset coefficient or multiset number.







                            share|cite|improve this answer














                            $defmultichoose#1#2{{left(kern-.3emleft(genfrac{}{}{0pt}{}{#1}{#2}right)kern-.3emright)}}$I really like one of the explanations within Wikipedia's article on multisets — in summary of that intuition: $multichoose{3}{5}$ is equivalent to counting the number of ways you can fill 3 distinct buckets with 5 (initially non-distinct) elements in total. This is one such filling:



                            $$color{blue}{star star star} mid star mid color{red}{star} $$



                            And a second such filling (buckets can be empty):



                            $$color{blue}{star star} mid star star star mid$$



                            The number of ways we can fill $n$ distinct buckets with $k$ elements total corresponds to the number of ways we can place $n-1$ (non-distinct) bars among $k$ stars, as illustrated above. That latter part can be rephrased as: the number of ways we can place $n-1$ bars into $(n-1) + k$ total characters, which brings us to:



                            $$binom{(n-1)+k}{n-1} = binom{n+k-1}{k}$$






                            The name of that graphical aid is "stars and bars" — that article also contains an explanation similar to the one above.



                            The concept of "combinations with replacement" is also sometimes referred to as "multichoose". Wikipedia notes that this is additionally equivalent to counting multisets:




                            The number of multisets of cardinality k, with elements taken from a finite set of cardinality n, is called the multiset coefficient or multiset number.








                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Aug 10 at 3:55

























                            answered Apr 5 at 0:13









                            braham-snyder

                            313




                            313






















                                up vote
                                0
                                down vote













                                I have been looking for the same answer and I finally found something I could understand and explain to my 10 year old.





                                Benjamin & Quinn 2003, p. 71
                                For example, if you have four types of donuts (n = 4) on a menu to choose from and you want three donuts (k = 3), the number of ways to choose the donuts with repetition can be calculated as



                                This result can be verified by listing all the 3-multisubsets of the set S = {1,2,3,4}. This is displayed in the following table.



                                No. 3-Multiset Eq. Solution
                                1 {1,1,1} [3,0,0,0]

                                2 {1,1,2} [2,1,0,0]

                                3 {1,1,3} [2,0,1,0]

                                4 {1,1,4} [2,0,0,1]

                                5 {1,2,2} [1,2,0,0]

                                6 {1,2,3} [1,1,1,0]

                                7 {1,2,4} [1,1,0,1]

                                8 {1,3,3} [1,0,2,0]

                                9 {1,3,4} [1,0,1,1]

                                10 {1,4,4} [1,0,0,2]

                                11 {2,2,2} [0,3,0,0]

                                12 {2,2,3} [0,2,1,0]

                                13 {2,2,4} [0,2,0,1]

                                14 {2,3,3} [0,1,2,0]

                                15 {2,3,4} [0,1,1,1]

                                16 {2,4,4} [0,1,0,2]

                                17 {3,3,3} [0,0,3,0]

                                18 {3,3,4} [0,0,2,1]

                                19 {3,4,4} [0,0,1,2]

                                20 {4,4,4} [0,0,0,3]






                                share|cite|improve this answer

























                                  up vote
                                  0
                                  down vote













                                  I have been looking for the same answer and I finally found something I could understand and explain to my 10 year old.





                                  Benjamin & Quinn 2003, p. 71
                                  For example, if you have four types of donuts (n = 4) on a menu to choose from and you want three donuts (k = 3), the number of ways to choose the donuts with repetition can be calculated as



                                  This result can be verified by listing all the 3-multisubsets of the set S = {1,2,3,4}. This is displayed in the following table.



                                  No. 3-Multiset Eq. Solution
                                  1 {1,1,1} [3,0,0,0]

                                  2 {1,1,2} [2,1,0,0]

                                  3 {1,1,3} [2,0,1,0]

                                  4 {1,1,4} [2,0,0,1]

                                  5 {1,2,2} [1,2,0,0]

                                  6 {1,2,3} [1,1,1,0]

                                  7 {1,2,4} [1,1,0,1]

                                  8 {1,3,3} [1,0,2,0]

                                  9 {1,3,4} [1,0,1,1]

                                  10 {1,4,4} [1,0,0,2]

                                  11 {2,2,2} [0,3,0,0]

                                  12 {2,2,3} [0,2,1,0]

                                  13 {2,2,4} [0,2,0,1]

                                  14 {2,3,3} [0,1,2,0]

                                  15 {2,3,4} [0,1,1,1]

                                  16 {2,4,4} [0,1,0,2]

                                  17 {3,3,3} [0,0,3,0]

                                  18 {3,3,4} [0,0,2,1]

                                  19 {3,4,4} [0,0,1,2]

                                  20 {4,4,4} [0,0,0,3]






                                  share|cite|improve this answer























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I have been looking for the same answer and I finally found something I could understand and explain to my 10 year old.





                                    Benjamin & Quinn 2003, p. 71
                                    For example, if you have four types of donuts (n = 4) on a menu to choose from and you want three donuts (k = 3), the number of ways to choose the donuts with repetition can be calculated as



                                    This result can be verified by listing all the 3-multisubsets of the set S = {1,2,3,4}. This is displayed in the following table.



                                    No. 3-Multiset Eq. Solution
                                    1 {1,1,1} [3,0,0,0]

                                    2 {1,1,2} [2,1,0,0]

                                    3 {1,1,3} [2,0,1,0]

                                    4 {1,1,4} [2,0,0,1]

                                    5 {1,2,2} [1,2,0,0]

                                    6 {1,2,3} [1,1,1,0]

                                    7 {1,2,4} [1,1,0,1]

                                    8 {1,3,3} [1,0,2,0]

                                    9 {1,3,4} [1,0,1,1]

                                    10 {1,4,4} [1,0,0,2]

                                    11 {2,2,2} [0,3,0,0]

                                    12 {2,2,3} [0,2,1,0]

                                    13 {2,2,4} [0,2,0,1]

                                    14 {2,3,3} [0,1,2,0]

                                    15 {2,3,4} [0,1,1,1]

                                    16 {2,4,4} [0,1,0,2]

                                    17 {3,3,3} [0,0,3,0]

                                    18 {3,3,4} [0,0,2,1]

                                    19 {3,4,4} [0,0,1,2]

                                    20 {4,4,4} [0,0,0,3]






                                    share|cite|improve this answer












                                    I have been looking for the same answer and I finally found something I could understand and explain to my 10 year old.





                                    Benjamin & Quinn 2003, p. 71
                                    For example, if you have four types of donuts (n = 4) on a menu to choose from and you want three donuts (k = 3), the number of ways to choose the donuts with repetition can be calculated as



                                    This result can be verified by listing all the 3-multisubsets of the set S = {1,2,3,4}. This is displayed in the following table.



                                    No. 3-Multiset Eq. Solution
                                    1 {1,1,1} [3,0,0,0]

                                    2 {1,1,2} [2,1,0,0]

                                    3 {1,1,3} [2,0,1,0]

                                    4 {1,1,4} [2,0,0,1]

                                    5 {1,2,2} [1,2,0,0]

                                    6 {1,2,3} [1,1,1,0]

                                    7 {1,2,4} [1,1,0,1]

                                    8 {1,3,3} [1,0,2,0]

                                    9 {1,3,4} [1,0,1,1]

                                    10 {1,4,4} [1,0,0,2]

                                    11 {2,2,2} [0,3,0,0]

                                    12 {2,2,3} [0,2,1,0]

                                    13 {2,2,4} [0,2,0,1]

                                    14 {2,3,3} [0,1,2,0]

                                    15 {2,3,4} [0,1,1,1]

                                    16 {2,4,4} [0,1,0,2]

                                    17 {3,3,3} [0,0,3,0]

                                    18 {3,3,4} [0,0,2,1]

                                    19 {3,4,4} [0,0,1,2]

                                    20 {4,4,4} [0,0,0,3]







                                    share|cite|improve this answer












                                    share|cite|improve this answer



                                    share|cite|improve this answer










                                    answered May 31 '15 at 2:19









                                    HKA

                                    11




                                    11






















                                        up vote
                                        0
                                        down vote













                                        Considering a multiset with $n$ distinct types of objects and at least $k$ of each type, we are interested in counting the number of submultisets of size $k$. If we have $x_i$ elements of the $i^{th}$ type, then the number of such multiset corresponds to the number of non-negative integer solutions of $x_1 + x_2 + cdots x_n = k$, and that is $binom{n+k-1}{k}$. To see that this formulation makes sense, considering the example of submultisets of size 3 taken from the mutiset with 4 types provided by HKA, note that the sums of the entries in the square brackets, which count the number of repetitions of each type of element, all sum to 3. The other argument, provided by braham_snyder, employing the filling of buckets as defined by spaces between dividers, may be used to prove that the number of non-negative integer solutions of the sum of $x_i$s equal to $k$ is the same expression, you essentially have $k$ ones you need to distribute amongst $n$ bins, allowing some bins to contain none. The $x_i$s count the number of ones in the $i^{th}$ bin.






                                        share|cite|improve this answer























                                        • Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                          – hardmath
                                          Nov 19 at 6:21















                                        up vote
                                        0
                                        down vote













                                        Considering a multiset with $n$ distinct types of objects and at least $k$ of each type, we are interested in counting the number of submultisets of size $k$. If we have $x_i$ elements of the $i^{th}$ type, then the number of such multiset corresponds to the number of non-negative integer solutions of $x_1 + x_2 + cdots x_n = k$, and that is $binom{n+k-1}{k}$. To see that this formulation makes sense, considering the example of submultisets of size 3 taken from the mutiset with 4 types provided by HKA, note that the sums of the entries in the square brackets, which count the number of repetitions of each type of element, all sum to 3. The other argument, provided by braham_snyder, employing the filling of buckets as defined by spaces between dividers, may be used to prove that the number of non-negative integer solutions of the sum of $x_i$s equal to $k$ is the same expression, you essentially have $k$ ones you need to distribute amongst $n$ bins, allowing some bins to contain none. The $x_i$s count the number of ones in the $i^{th}$ bin.






                                        share|cite|improve this answer























                                        • Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                          – hardmath
                                          Nov 19 at 6:21













                                        up vote
                                        0
                                        down vote










                                        up vote
                                        0
                                        down vote









                                        Considering a multiset with $n$ distinct types of objects and at least $k$ of each type, we are interested in counting the number of submultisets of size $k$. If we have $x_i$ elements of the $i^{th}$ type, then the number of such multiset corresponds to the number of non-negative integer solutions of $x_1 + x_2 + cdots x_n = k$, and that is $binom{n+k-1}{k}$. To see that this formulation makes sense, considering the example of submultisets of size 3 taken from the mutiset with 4 types provided by HKA, note that the sums of the entries in the square brackets, which count the number of repetitions of each type of element, all sum to 3. The other argument, provided by braham_snyder, employing the filling of buckets as defined by spaces between dividers, may be used to prove that the number of non-negative integer solutions of the sum of $x_i$s equal to $k$ is the same expression, you essentially have $k$ ones you need to distribute amongst $n$ bins, allowing some bins to contain none. The $x_i$s count the number of ones in the $i^{th}$ bin.






                                        share|cite|improve this answer














                                        Considering a multiset with $n$ distinct types of objects and at least $k$ of each type, we are interested in counting the number of submultisets of size $k$. If we have $x_i$ elements of the $i^{th}$ type, then the number of such multiset corresponds to the number of non-negative integer solutions of $x_1 + x_2 + cdots x_n = k$, and that is $binom{n+k-1}{k}$. To see that this formulation makes sense, considering the example of submultisets of size 3 taken from the mutiset with 4 types provided by HKA, note that the sums of the entries in the square brackets, which count the number of repetitions of each type of element, all sum to 3. The other argument, provided by braham_snyder, employing the filling of buckets as defined by spaces between dividers, may be used to prove that the number of non-negative integer solutions of the sum of $x_i$s equal to $k$ is the same expression, you essentially have $k$ ones you need to distribute amongst $n$ bins, allowing some bins to contain none. The $x_i$s count the number of ones in the $i^{th}$ bin.







                                        share|cite|improve this answer














                                        share|cite|improve this answer



                                        share|cite|improve this answer








                                        edited Nov 19 at 5:59

























                                        answered Nov 19 at 5:50









                                        Brian Kettlewell

                                        11




                                        11












                                        • Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                          – hardmath
                                          Nov 19 at 6:21


















                                        • Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                          – hardmath
                                          Nov 19 at 6:21
















                                        Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                        – hardmath
                                        Nov 19 at 6:21




                                        Welcome to Math.SE. You've chosen an old (5+ years) Question (with Accepted and upvoted answers) to respond to, and while this is not necessarily a poor use of your time, there is no need to rush out a response. The Question asks for an explanation of "how this formula was developed". There might well be an opportunity to improve on what others have written, but you seem merely to assert that the formula is correct after restating it in terms of counting non-negative integer solutions. I don't know what HKA stands for.
                                        – hardmath
                                        Nov 19 at 6:21


















                                        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%2f474741%2fformula-for-combinations-with-replacement%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

                                        mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                                        How to change which sound is reproduced for terminal bell?

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