Variation of distributing $k$ balls into $n$ distinguishable boxes
$begingroup$
I am interested in understanding a variation problem of distributing balls into boxes. It seems to be not any of the individual case mentioned in twelvefold way classification.
The problem is described as follows:
In total there are $K$ balls, there are $I$ distinguishable groups by color, and in each color group the balls are indistinguishable with number to be $n_i$ where $i = 1, 2, ldots, I$. Meanwhile, we have $N$ distinguishable boxes where $N$ is always bigger than any $n_i$. Therefore, how many ways are there to distribute these $K$ balls into $N$ boxes, when no box can contain more than one ball from same indistinguishable color group and no empty boxes?
Any suggestion will be appreciated.
combinatorics discrete-mathematics
$endgroup$
add a comment |
$begingroup$
I am interested in understanding a variation problem of distributing balls into boxes. It seems to be not any of the individual case mentioned in twelvefold way classification.
The problem is described as follows:
In total there are $K$ balls, there are $I$ distinguishable groups by color, and in each color group the balls are indistinguishable with number to be $n_i$ where $i = 1, 2, ldots, I$. Meanwhile, we have $N$ distinguishable boxes where $N$ is always bigger than any $n_i$. Therefore, how many ways are there to distribute these $K$ balls into $N$ boxes, when no box can contain more than one ball from same indistinguishable color group and no empty boxes?
Any suggestion will be appreciated.
combinatorics discrete-mathematics
$endgroup$
add a comment |
$begingroup$
I am interested in understanding a variation problem of distributing balls into boxes. It seems to be not any of the individual case mentioned in twelvefold way classification.
The problem is described as follows:
In total there are $K$ balls, there are $I$ distinguishable groups by color, and in each color group the balls are indistinguishable with number to be $n_i$ where $i = 1, 2, ldots, I$. Meanwhile, we have $N$ distinguishable boxes where $N$ is always bigger than any $n_i$. Therefore, how many ways are there to distribute these $K$ balls into $N$ boxes, when no box can contain more than one ball from same indistinguishable color group and no empty boxes?
Any suggestion will be appreciated.
combinatorics discrete-mathematics
$endgroup$
I am interested in understanding a variation problem of distributing balls into boxes. It seems to be not any of the individual case mentioned in twelvefold way classification.
The problem is described as follows:
In total there are $K$ balls, there are $I$ distinguishable groups by color, and in each color group the balls are indistinguishable with number to be $n_i$ where $i = 1, 2, ldots, I$. Meanwhile, we have $N$ distinguishable boxes where $N$ is always bigger than any $n_i$. Therefore, how many ways are there to distribute these $K$ balls into $N$ boxes, when no box can contain more than one ball from same indistinguishable color group and no empty boxes?
Any suggestion will be appreciated.
combinatorics discrete-mathematics
combinatorics discrete-mathematics
edited Dec 3 '18 at 14:45
Björn Friedrich
2,63961831
2,63961831
asked Dec 3 '18 at 11:44
Shaohong BaiShaohong Bai
234
234
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
This is a straightforward application of the principle of inclusion-exclusion. First, count up all the ways to put all the balls into boxes, ignoring the condition that no box can be empty. This is simply
$$
prod_{i=1}^I binom{N}{n_i}
$$
Next, you have to subtract out the "bad" cases where some box is empty. For each of the $N$ boxes, there are $prod_{i=1}^I binom{N-1}{n_i}$ ways to place the balls where that box is empty, and you subtract this for each box, so we are left with
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}
$$
However, distributions with two empty boxes were subtracted out twice by the above formula, so they must be added back in. The result is
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}+binom{N}2prod_{i=1}^I binom{N-2}{n_i}
$$
The summation continues developing in this way. The end result is
$$
boxed{sum_{j=0}^N (-1)^jbinom{N}jprod_{i=1}^I binom{N-j}{n_i}.}
$$
$endgroup$
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
add a comment |
$begingroup$
I got $$P = prod_{i=1}^{I} {Nchoose n_i} - prod_{i=1}^{I} {{N-1}choose n_i}$$
The first part is obviously the combinations of "no box contains more than one ball of the color".
The second part is "no box contains more than one ball of the color AND there is at least one empty box".
This is the Venn diagram I was going by:
The pink part is what we're looking for.
$endgroup$
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
|
show 1 more comment
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
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023944%2fvariation-of-distributing-k-balls-into-n-distinguishable-boxes%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
$begingroup$
This is a straightforward application of the principle of inclusion-exclusion. First, count up all the ways to put all the balls into boxes, ignoring the condition that no box can be empty. This is simply
$$
prod_{i=1}^I binom{N}{n_i}
$$
Next, you have to subtract out the "bad" cases where some box is empty. For each of the $N$ boxes, there are $prod_{i=1}^I binom{N-1}{n_i}$ ways to place the balls where that box is empty, and you subtract this for each box, so we are left with
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}
$$
However, distributions with two empty boxes were subtracted out twice by the above formula, so they must be added back in. The result is
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}+binom{N}2prod_{i=1}^I binom{N-2}{n_i}
$$
The summation continues developing in this way. The end result is
$$
boxed{sum_{j=0}^N (-1)^jbinom{N}jprod_{i=1}^I binom{N-j}{n_i}.}
$$
$endgroup$
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
add a comment |
$begingroup$
This is a straightforward application of the principle of inclusion-exclusion. First, count up all the ways to put all the balls into boxes, ignoring the condition that no box can be empty. This is simply
$$
prod_{i=1}^I binom{N}{n_i}
$$
Next, you have to subtract out the "bad" cases where some box is empty. For each of the $N$ boxes, there are $prod_{i=1}^I binom{N-1}{n_i}$ ways to place the balls where that box is empty, and you subtract this for each box, so we are left with
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}
$$
However, distributions with two empty boxes were subtracted out twice by the above formula, so they must be added back in. The result is
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}+binom{N}2prod_{i=1}^I binom{N-2}{n_i}
$$
The summation continues developing in this way. The end result is
$$
boxed{sum_{j=0}^N (-1)^jbinom{N}jprod_{i=1}^I binom{N-j}{n_i}.}
$$
$endgroup$
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
add a comment |
$begingroup$
This is a straightforward application of the principle of inclusion-exclusion. First, count up all the ways to put all the balls into boxes, ignoring the condition that no box can be empty. This is simply
$$
prod_{i=1}^I binom{N}{n_i}
$$
Next, you have to subtract out the "bad" cases where some box is empty. For each of the $N$ boxes, there are $prod_{i=1}^I binom{N-1}{n_i}$ ways to place the balls where that box is empty, and you subtract this for each box, so we are left with
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}
$$
However, distributions with two empty boxes were subtracted out twice by the above formula, so they must be added back in. The result is
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}+binom{N}2prod_{i=1}^I binom{N-2}{n_i}
$$
The summation continues developing in this way. The end result is
$$
boxed{sum_{j=0}^N (-1)^jbinom{N}jprod_{i=1}^I binom{N-j}{n_i}.}
$$
$endgroup$
This is a straightforward application of the principle of inclusion-exclusion. First, count up all the ways to put all the balls into boxes, ignoring the condition that no box can be empty. This is simply
$$
prod_{i=1}^I binom{N}{n_i}
$$
Next, you have to subtract out the "bad" cases where some box is empty. For each of the $N$ boxes, there are $prod_{i=1}^I binom{N-1}{n_i}$ ways to place the balls where that box is empty, and you subtract this for each box, so we are left with
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}
$$
However, distributions with two empty boxes were subtracted out twice by the above formula, so they must be added back in. The result is
$$
prod_{i=1}^I binom{N}{n_i}-Ncdot prod_{i=1}^I binom{N-1}{n_i}+binom{N}2prod_{i=1}^I binom{N-2}{n_i}
$$
The summation continues developing in this way. The end result is
$$
boxed{sum_{j=0}^N (-1)^jbinom{N}jprod_{i=1}^I binom{N-j}{n_i}.}
$$
answered Dec 3 '18 at 16:09
Mike EarnestMike Earnest
21.3k11951
21.3k11951
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
add a comment |
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
$begingroup$
I think this is right answer, I did wrong due to the fact that ignoring the cases it subtracted twice. For other's information, $j$ is the number of empty boxes, where $max(j) = N - max(n_i)$
$endgroup$
– Shaohong Bai
Dec 3 '18 at 16:49
add a comment |
$begingroup$
I got $$P = prod_{i=1}^{I} {Nchoose n_i} - prod_{i=1}^{I} {{N-1}choose n_i}$$
The first part is obviously the combinations of "no box contains more than one ball of the color".
The second part is "no box contains more than one ball of the color AND there is at least one empty box".
This is the Venn diagram I was going by:
The pink part is what we're looking for.
$endgroup$
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
|
show 1 more comment
$begingroup$
I got $$P = prod_{i=1}^{I} {Nchoose n_i} - prod_{i=1}^{I} {{N-1}choose n_i}$$
The first part is obviously the combinations of "no box contains more than one ball of the color".
The second part is "no box contains more than one ball of the color AND there is at least one empty box".
This is the Venn diagram I was going by:
The pink part is what we're looking for.
$endgroup$
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
|
show 1 more comment
$begingroup$
I got $$P = prod_{i=1}^{I} {Nchoose n_i} - prod_{i=1}^{I} {{N-1}choose n_i}$$
The first part is obviously the combinations of "no box contains more than one ball of the color".
The second part is "no box contains more than one ball of the color AND there is at least one empty box".
This is the Venn diagram I was going by:
The pink part is what we're looking for.
$endgroup$
I got $$P = prod_{i=1}^{I} {Nchoose n_i} - prod_{i=1}^{I} {{N-1}choose n_i}$$
The first part is obviously the combinations of "no box contains more than one ball of the color".
The second part is "no box contains more than one ball of the color AND there is at least one empty box".
This is the Venn diagram I was going by:
The pink part is what we're looking for.
edited Dec 3 '18 at 15:07
answered Dec 3 '18 at 14:18
EvanHeheheEvanHehehe
1247
1247
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
|
show 1 more comment
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
I think you mean 'The second part is "at least one box contains more than one ball of the color AND there is at least one empty box"'?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:40
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Why would it be "at least one box contains more than one ball of the color"? The second part is distributing one color to $N-1$ boxes, doing it $I$ times.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:41
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
Understand what you try to remove from all possible cases. However, I thought the opposite cases to 'no box can contain more than one ball from same indistinguishable color group and no empty boxes' should be 'at least one box contains more than one ball of the color AND there is at least one empty box'. Otherwise, there are might still cases, where a box has multiple same colour balls while there is one or more empty boxes. Maybe you explain a bit more why you think the dropped cases cover all possibilities?
$endgroup$
– Shaohong Bai
Dec 3 '18 at 14:50
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
if you want to use opposite cases, it should be ALL$-$ OPPOSITE CASES. Which is The rectangle $-$ the white part in the Venn diagram.
$endgroup$
– EvanHehehe
Dec 3 '18 at 14:55
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
$begingroup$
I will use $C(A)$ to denote the number of combinations under condition $A$. So what you're trying to find has two conditions, call them $A$(**No box contains more than one ball of the same color**) and $! B$ (NO empty boxes), so the number of combinations is $C(Awedge ! B)$. The pink ellipse is $C(A)$ and the small white ellipse is $C(B)$, to get $C(Awedge !B)$ we can do $C(A) - C(B)$.
$endgroup$
– EvanHehehe
Dec 3 '18 at 15:04
|
show 1 more comment
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023944%2fvariation-of-distributing-k-balls-into-n-distinguishable-boxes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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