Combination with partial constraint












0












$begingroup$


We have a group of 15 people and want to find out how many possibilities there are to choose a subgroup of 5 people. This is pretty easy, we can just calculate $15 choose 5$.



But now suppose we have a constraint where two people don't want to be in the subgroup together. My first guess would have been to calculate how many possibilities there are that these two are in the same subgroup (which would be $15 choose 3$, right?) and then subtract that, so my solution to this problem would look like this:



${15 choose 5} - {15 choose 3} = 3003 - 455 = 2548$



Is this the correct way to approach this problem? If now, what would be the right answer?










share|cite|improve this question









$endgroup$












  • $begingroup$
    The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
    $endgroup$
    – user289143
    Jan 20 at 11:21
















0












$begingroup$


We have a group of 15 people and want to find out how many possibilities there are to choose a subgroup of 5 people. This is pretty easy, we can just calculate $15 choose 5$.



But now suppose we have a constraint where two people don't want to be in the subgroup together. My first guess would have been to calculate how many possibilities there are that these two are in the same subgroup (which would be $15 choose 3$, right?) and then subtract that, so my solution to this problem would look like this:



${15 choose 5} - {15 choose 3} = 3003 - 455 = 2548$



Is this the correct way to approach this problem? If now, what would be the right answer?










share|cite|improve this question









$endgroup$












  • $begingroup$
    The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
    $endgroup$
    – user289143
    Jan 20 at 11:21














0












0








0





$begingroup$


We have a group of 15 people and want to find out how many possibilities there are to choose a subgroup of 5 people. This is pretty easy, we can just calculate $15 choose 5$.



But now suppose we have a constraint where two people don't want to be in the subgroup together. My first guess would have been to calculate how many possibilities there are that these two are in the same subgroup (which would be $15 choose 3$, right?) and then subtract that, so my solution to this problem would look like this:



${15 choose 5} - {15 choose 3} = 3003 - 455 = 2548$



Is this the correct way to approach this problem? If now, what would be the right answer?










share|cite|improve this question









$endgroup$




We have a group of 15 people and want to find out how many possibilities there are to choose a subgroup of 5 people. This is pretty easy, we can just calculate $15 choose 5$.



But now suppose we have a constraint where two people don't want to be in the subgroup together. My first guess would have been to calculate how many possibilities there are that these two are in the same subgroup (which would be $15 choose 3$, right?) and then subtract that, so my solution to this problem would look like this:



${15 choose 5} - {15 choose 3} = 3003 - 455 = 2548$



Is this the correct way to approach this problem? If now, what would be the right answer?







combinatorics






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 20 at 11:06









Simon SchillerSimon Schiller

1033




1033












  • $begingroup$
    The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
    $endgroup$
    – user289143
    Jan 20 at 11:21


















  • $begingroup$
    The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
    $endgroup$
    – user289143
    Jan 20 at 11:21
















$begingroup$
The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
$endgroup$
– user289143
Jan 20 at 11:21




$begingroup$
The negation of two people being in the subgroup together is that at least one of them is not in the subgroup, not that neither of them are in the subgroup
$endgroup$
– user289143
Jan 20 at 11:21










1 Answer
1






active

oldest

votes


















1












$begingroup$

There are three possible types of subgroups:

a) None of the two persons are in the subgroup

b) Only the first one is in the subgroup

c) Only the second one is in the subgroup



For a) is the same to choose $5$ people out of $13$, i.e. ${13}choose{5}$



For b) is the same to choose $4$ people out of $13$ (because you have already one and you don't want the other), i.e. ${13}choose {4}$



For c) is the same as b)



Thus the solution is ${13}choose {5}$ +$2 $${13}choose{4}$ $=1287+2 cdot 715=1287+1430=2717$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
    $endgroup$
    – Simon Schiller
    Jan 20 at 11: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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3080442%2fcombination-with-partial-constraint%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

There are three possible types of subgroups:

a) None of the two persons are in the subgroup

b) Only the first one is in the subgroup

c) Only the second one is in the subgroup



For a) is the same to choose $5$ people out of $13$, i.e. ${13}choose{5}$



For b) is the same to choose $4$ people out of $13$ (because you have already one and you don't want the other), i.e. ${13}choose {4}$



For c) is the same as b)



Thus the solution is ${13}choose {5}$ +$2 $${13}choose{4}$ $=1287+2 cdot 715=1287+1430=2717$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
    $endgroup$
    – Simon Schiller
    Jan 20 at 11:21


















1












$begingroup$

There are three possible types of subgroups:

a) None of the two persons are in the subgroup

b) Only the first one is in the subgroup

c) Only the second one is in the subgroup



For a) is the same to choose $5$ people out of $13$, i.e. ${13}choose{5}$



For b) is the same to choose $4$ people out of $13$ (because you have already one and you don't want the other), i.e. ${13}choose {4}$



For c) is the same as b)



Thus the solution is ${13}choose {5}$ +$2 $${13}choose{4}$ $=1287+2 cdot 715=1287+1430=2717$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
    $endgroup$
    – Simon Schiller
    Jan 20 at 11:21
















1












1








1





$begingroup$

There are three possible types of subgroups:

a) None of the two persons are in the subgroup

b) Only the first one is in the subgroup

c) Only the second one is in the subgroup



For a) is the same to choose $5$ people out of $13$, i.e. ${13}choose{5}$



For b) is the same to choose $4$ people out of $13$ (because you have already one and you don't want the other), i.e. ${13}choose {4}$



For c) is the same as b)



Thus the solution is ${13}choose {5}$ +$2 $${13}choose{4}$ $=1287+2 cdot 715=1287+1430=2717$






share|cite|improve this answer









$endgroup$



There are three possible types of subgroups:

a) None of the two persons are in the subgroup

b) Only the first one is in the subgroup

c) Only the second one is in the subgroup



For a) is the same to choose $5$ people out of $13$, i.e. ${13}choose{5}$



For b) is the same to choose $4$ people out of $13$ (because you have already one and you don't want the other), i.e. ${13}choose {4}$



For c) is the same as b)



Thus the solution is ${13}choose {5}$ +$2 $${13}choose{4}$ $=1287+2 cdot 715=1287+1430=2717$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 20 at 11:13









user289143user289143

1,002313




1,002313












  • $begingroup$
    Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
    $endgroup$
    – Simon Schiller
    Jan 20 at 11:21




















  • $begingroup$
    Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
    $endgroup$
    – Simon Schiller
    Jan 20 at 11:21


















$begingroup$
Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
$endgroup$
– Simon Schiller
Jan 20 at 11:21






$begingroup$
Okay, so my mistake was that I calculated $15 choose 3$, I should have done $13 choose 3$ because I already have two people. Then I get to the same result as you did. So ${15 choose 5} - {13 choose 3}$ works out as well. Thank you very much.
$endgroup$
– Simon Schiller
Jan 20 at 11: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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3080442%2fcombination-with-partial-constraint%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

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith