How many 5-digit zip codes can exist where the digits are nondecreasing?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I was reading over a combinatorics textbook and came across an example with a somewhat vague explanation:



$textitHow many 5-digit zip codes can exist where the digits are nondecreasing (like 12358 or 03399)?$



The solution provided was,



These are just the size-5 multisets of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. For example, the zip code 03399 is represented by the multiset 0, 3, 3, 9, 9, so the answer is $left(binom105right) = binom145 = 2002.$



My understanding of "multichoosing" is that it represents the number of ways to select $k$ indistinguishable objects amongst $n$ distinguishable ones. For instance, the number of ways to distribute $k$ identical candies to $n$ people is $left(binomnkright) = binomn+k-1k$.



How does this connect with the zip-code question? Wouldn't a zip code containing decreasing digits i.e. 30398 also be included as a size-5 multiset?



Thanks in advance for your help! I'd love to get some clarity on this issue.







share|cite|improve this question























    up vote
    1
    down vote

    favorite












    I was reading over a combinatorics textbook and came across an example with a somewhat vague explanation:



    $textitHow many 5-digit zip codes can exist where the digits are nondecreasing (like 12358 or 03399)?$



    The solution provided was,



    These are just the size-5 multisets of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. For example, the zip code 03399 is represented by the multiset 0, 3, 3, 9, 9, so the answer is $left(binom105right) = binom145 = 2002.$



    My understanding of "multichoosing" is that it represents the number of ways to select $k$ indistinguishable objects amongst $n$ distinguishable ones. For instance, the number of ways to distribute $k$ identical candies to $n$ people is $left(binomnkright) = binomn+k-1k$.



    How does this connect with the zip-code question? Wouldn't a zip code containing decreasing digits i.e. 30398 also be included as a size-5 multiset?



    Thanks in advance for your help! I'd love to get some clarity on this issue.







    share|cite|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I was reading over a combinatorics textbook and came across an example with a somewhat vague explanation:



      $textitHow many 5-digit zip codes can exist where the digits are nondecreasing (like 12358 or 03399)?$



      The solution provided was,



      These are just the size-5 multisets of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. For example, the zip code 03399 is represented by the multiset 0, 3, 3, 9, 9, so the answer is $left(binom105right) = binom145 = 2002.$



      My understanding of "multichoosing" is that it represents the number of ways to select $k$ indistinguishable objects amongst $n$ distinguishable ones. For instance, the number of ways to distribute $k$ identical candies to $n$ people is $left(binomnkright) = binomn+k-1k$.



      How does this connect with the zip-code question? Wouldn't a zip code containing decreasing digits i.e. 30398 also be included as a size-5 multiset?



      Thanks in advance for your help! I'd love to get some clarity on this issue.







      share|cite|improve this question











      I was reading over a combinatorics textbook and came across an example with a somewhat vague explanation:



      $textitHow many 5-digit zip codes can exist where the digits are nondecreasing (like 12358 or 03399)?$



      The solution provided was,



      These are just the size-5 multisets of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. For example, the zip code 03399 is represented by the multiset 0, 3, 3, 9, 9, so the answer is $left(binom105right) = binom145 = 2002.$



      My understanding of "multichoosing" is that it represents the number of ways to select $k$ indistinguishable objects amongst $n$ distinguishable ones. For instance, the number of ways to distribute $k$ identical candies to $n$ people is $left(binomnkright) = binomn+k-1k$.



      How does this connect with the zip-code question? Wouldn't a zip code containing decreasing digits i.e. 30398 also be included as a size-5 multiset?



      Thanks in advance for your help! I'd love to get some clarity on this issue.









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked Jul 22 at 3:10









      Alex J. Lim

      665




      665




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Multisets can have equal entries, but they have no order of the entries. The point is that given any multiset of digits you can find exactly one nondecreasing order of those digits. You do that by sorting them. Given the multiset $9,0,3,9,3$, which is the same as $0,3,3,9,9$, there is only one nondecreasing five digit sequence, which is $03399$, so if we can count the multisets we have a count of the nondecreasing zip codes.






          share|cite|improve this answer





















          • oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
            – Alex J. Lim
            Jul 22 at 3:18










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2859067%2fhow-many-5-digit-zip-codes-can-exist-where-the-digits-are-nondecreasing%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          Multisets can have equal entries, but they have no order of the entries. The point is that given any multiset of digits you can find exactly one nondecreasing order of those digits. You do that by sorting them. Given the multiset $9,0,3,9,3$, which is the same as $0,3,3,9,9$, there is only one nondecreasing five digit sequence, which is $03399$, so if we can count the multisets we have a count of the nondecreasing zip codes.






          share|cite|improve this answer





















          • oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
            – Alex J. Lim
            Jul 22 at 3:18














          up vote
          2
          down vote



          accepted










          Multisets can have equal entries, but they have no order of the entries. The point is that given any multiset of digits you can find exactly one nondecreasing order of those digits. You do that by sorting them. Given the multiset $9,0,3,9,3$, which is the same as $0,3,3,9,9$, there is only one nondecreasing five digit sequence, which is $03399$, so if we can count the multisets we have a count of the nondecreasing zip codes.






          share|cite|improve this answer





















          • oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
            – Alex J. Lim
            Jul 22 at 3:18












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Multisets can have equal entries, but they have no order of the entries. The point is that given any multiset of digits you can find exactly one nondecreasing order of those digits. You do that by sorting them. Given the multiset $9,0,3,9,3$, which is the same as $0,3,3,9,9$, there is only one nondecreasing five digit sequence, which is $03399$, so if we can count the multisets we have a count of the nondecreasing zip codes.






          share|cite|improve this answer













          Multisets can have equal entries, but they have no order of the entries. The point is that given any multiset of digits you can find exactly one nondecreasing order of those digits. You do that by sorting them. Given the multiset $9,0,3,9,3$, which is the same as $0,3,3,9,9$, there is only one nondecreasing five digit sequence, which is $03399$, so if we can count the multisets we have a count of the nondecreasing zip codes.







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 22 at 3:14









          Ross Millikan

          276k21186352




          276k21186352











          • oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
            – Alex J. Lim
            Jul 22 at 3:18
















          • oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
            – Alex J. Lim
            Jul 22 at 3:18















          oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
          – Alex J. Lim
          Jul 22 at 3:18




          oh wow. duh. i am an idiot. that makes so much sense! thanks so much for the help, Ross!
          – Alex J. Lim
          Jul 22 at 3:18












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2859067%2fhow-many-5-digit-zip-codes-can-exist-where-the-digits-are-nondecreasing%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Color the edges and diagonals of a regular polygon

          Relationship between determinant of matrix and determinant of adjoint?