How many 5-digit zip codes can exist where the digits are nondecreasing?
Clash 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.
combinatorics discrete-mathematics
add a comment |Â
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.
combinatorics discrete-mathematics
add a comment |Â
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.
combinatorics discrete-mathematics
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.
combinatorics discrete-mathematics
asked Jul 22 at 3:10
Alex J. Lim
665
665
add a comment |Â
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password