A pizza parlor has 5 meat and 5 veggie toppings and 3 different sizes. How many pizzas are there with at...
Calculator final project in Python
How I can get glyphs from a fraktur font and use them as identifiers?
Why do remote US companies require working in the US?
Proper way to express "He disappeared them"
WOW air has ceased operation, can I get my tickets refunded?
Can this equation be simplified further?
Why do airplanes bank sharply to the right after air-to-air refueling?
Can I use the load factor to estimate the lift?
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
What happened in Rome, when the western empire "fell"?
Reference request: Grassmannian and Plucker coordinates in type B, C, D
Can you be charged for obstruction for refusing to answer questions?
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
RigExpert AA-35 - Interpreting The Information
Axiom Schema vs Axiom
Is micro rebar a better way to reinforce concrete than rebar?
Why the difference in type-inference over the as-pattern in two similar function definitions?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
Method for adding error messages to a dictionary given a key
Are police here, aren't itthey?
Is a distribution that is normal, but highly skewed considered Gaussian?
Legal workarounds for testamentary trust perceived as unfair
A pizza parlor has 5 meat and 5 veggie toppings and 3 different sizes. How many pizzas are there with at least 1 meat and at least 1 veggie topping?
The Next CEO of Stack OverflowHow many different possibilities are there?Discrete Math- How many pizzas can be ordered with at least one meat and one veggieHow many different ways are there to put $9$ coins in $9$ boxes if…How many different 7 card hands are there that contain two or more cards of the same rank?Combinations of pizza toppings with at least one vegetable and at least one meat.How many bits strings are there of length n consisting entirely of 1's?There is group a $S$ with $2n$ members $n$ of them are identical and $n$ of them are different, How many subsets are there?generating function: how many possibilities are there to throw 10 different dice so that their sum is 25How many ways are there to place nine different rings on four fingers?How many different tournament orderings are there?
$begingroup$
I managed to get
$$3(2^{10} -1) - 3(2^{5}-1) - 3(2^{5}-1) $$
or
$$3(2^{10} -1) - 3(2^{5} + 2^{5}-1) $$
However, I am a little confused why the answer isn't
$$3(2^{10} -1) - 3(2^{5}) - 3(2^{5}) $$
Why do we have to have $-1$ in all cases? Wouldn't it be enough to have $-1$ only once so we get rid of the empty case once?
combinatorics
$endgroup$
add a comment |
$begingroup$
I managed to get
$$3(2^{10} -1) - 3(2^{5}-1) - 3(2^{5}-1) $$
or
$$3(2^{10} -1) - 3(2^{5} + 2^{5}-1) $$
However, I am a little confused why the answer isn't
$$3(2^{10} -1) - 3(2^{5}) - 3(2^{5}) $$
Why do we have to have $-1$ in all cases? Wouldn't it be enough to have $-1$ only once so we get rid of the empty case once?
combinatorics
$endgroup$
add a comment |
$begingroup$
I managed to get
$$3(2^{10} -1) - 3(2^{5}-1) - 3(2^{5}-1) $$
or
$$3(2^{10} -1) - 3(2^{5} + 2^{5}-1) $$
However, I am a little confused why the answer isn't
$$3(2^{10} -1) - 3(2^{5}) - 3(2^{5}) $$
Why do we have to have $-1$ in all cases? Wouldn't it be enough to have $-1$ only once so we get rid of the empty case once?
combinatorics
$endgroup$
I managed to get
$$3(2^{10} -1) - 3(2^{5}-1) - 3(2^{5}-1) $$
or
$$3(2^{10} -1) - 3(2^{5} + 2^{5}-1) $$
However, I am a little confused why the answer isn't
$$3(2^{10} -1) - 3(2^{5}) - 3(2^{5}) $$
Why do we have to have $-1$ in all cases? Wouldn't it be enough to have $-1$ only once so we get rid of the empty case once?
combinatorics
combinatorics
asked Mar 17 at 7:26
ZakuZaku
1679
1679
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Let's use the Inclusion-Exclusion Principle to solve the problem.
There are $3$ ways to choose the size of the pizza and $2^{10}$ ways to choose which subset of toppings will be placed on the pizza. Hence, if there were no restrictions, we could select a pizza in $3 cdot 2^{10}$ ways.
From these, we must subtract those selections in which no meat toppings or no veggie toppings are selected.
No meat toppings: There are again $3$ ways to choose the size of the pizza. If there are no meat toppings, only the five veggie toppings can be selected. There are $2^5$ ways to choose a subset of the veggie toppings. Thus, there are $3 cdot 2^5$ ways to choose a pizza with no meat toppings.
No veggie toppings: By symmetry, there are $3 cdot 2^5$ ways to choose a pizza with no veggie toppings.
If we subtract the number of pizzas with no meat toppings and the number of pizzas with no veggie toppings from the total, we will have subtracted those pizzas with no meat and no veggie toppings twice. We only want to subtract them once, so we must add them back.
No meat and no veggie toppings: There are only three such pizzas, one of each size.
Total: There are $$3 cdot 2^{10} - 3 cdot 2^5 - 3 cdot 2^5 + 3 = 3(2^{10} - 2^5 - 2^5 + 1)$$
pizzas that have at least one meat topping and at least one veggie topping. Notice that
$$3(2^{10} - 2^5 - 2^5 + 1) = 3(2^{10} - 1) - 3(2^5 - 1) - 3(2^5 - 1)$$
Why should this be the case?
We want pizzas with at least one meat topping and at least one veggie topping. The term $3(2^{10} - 1)$ counts all pizzas with at least one topping. One of the terms $3(2^5 - 1)$ counts all pizzas with at least one topping that contain no meat toppings, and the other one counts all pizzas with at least one topping that contain no veggie toppings. The $2^5 - 1$ terms are necessary since you started by counting all pizzas with at least one topping. If you instead start with all possible pizzas, you arrive at the answer obtained above with the Inclusion-Exclusion Principle.
$endgroup$
add a comment |
$begingroup$
There are $2^5-1$ ways to choose at least one meat and similarly for veggies, and the answer is $3(2^5-1)^2$.
$endgroup$
add a comment |
$begingroup$
For one size, refer to the table ($0$ - absent, $1$ - present):
$$begin{array}{c|c|c}
text{Cases}&text{Meat}&text{Veggi}&text{All}&text{All but $00$}\
hline
(1)&0 text{or} 1&0 text{or} 1&00+01+10+11& 2^{10}-1\
(2)&0&0 text{or} 1&00+01& 2^{5}-1\
(3)&0 text{or} 1&0&00+10& 2^{5}-1\
hline
(1)-(2)-(3)&&&&(2^{10}-1)-(2^5-1)-(2^5-1)end{array}$$
For three sizes, it must be multiplied by $3$.
$endgroup$
add a 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%2f3151234%2fa-pizza-parlor-has-5-meat-and-5-veggie-toppings-and-3-different-sizes-how-many%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Let's use the Inclusion-Exclusion Principle to solve the problem.
There are $3$ ways to choose the size of the pizza and $2^{10}$ ways to choose which subset of toppings will be placed on the pizza. Hence, if there were no restrictions, we could select a pizza in $3 cdot 2^{10}$ ways.
From these, we must subtract those selections in which no meat toppings or no veggie toppings are selected.
No meat toppings: There are again $3$ ways to choose the size of the pizza. If there are no meat toppings, only the five veggie toppings can be selected. There are $2^5$ ways to choose a subset of the veggie toppings. Thus, there are $3 cdot 2^5$ ways to choose a pizza with no meat toppings.
No veggie toppings: By symmetry, there are $3 cdot 2^5$ ways to choose a pizza with no veggie toppings.
If we subtract the number of pizzas with no meat toppings and the number of pizzas with no veggie toppings from the total, we will have subtracted those pizzas with no meat and no veggie toppings twice. We only want to subtract them once, so we must add them back.
No meat and no veggie toppings: There are only three such pizzas, one of each size.
Total: There are $$3 cdot 2^{10} - 3 cdot 2^5 - 3 cdot 2^5 + 3 = 3(2^{10} - 2^5 - 2^5 + 1)$$
pizzas that have at least one meat topping and at least one veggie topping. Notice that
$$3(2^{10} - 2^5 - 2^5 + 1) = 3(2^{10} - 1) - 3(2^5 - 1) - 3(2^5 - 1)$$
Why should this be the case?
We want pizzas with at least one meat topping and at least one veggie topping. The term $3(2^{10} - 1)$ counts all pizzas with at least one topping. One of the terms $3(2^5 - 1)$ counts all pizzas with at least one topping that contain no meat toppings, and the other one counts all pizzas with at least one topping that contain no veggie toppings. The $2^5 - 1$ terms are necessary since you started by counting all pizzas with at least one topping. If you instead start with all possible pizzas, you arrive at the answer obtained above with the Inclusion-Exclusion Principle.
$endgroup$
add a comment |
$begingroup$
Let's use the Inclusion-Exclusion Principle to solve the problem.
There are $3$ ways to choose the size of the pizza and $2^{10}$ ways to choose which subset of toppings will be placed on the pizza. Hence, if there were no restrictions, we could select a pizza in $3 cdot 2^{10}$ ways.
From these, we must subtract those selections in which no meat toppings or no veggie toppings are selected.
No meat toppings: There are again $3$ ways to choose the size of the pizza. If there are no meat toppings, only the five veggie toppings can be selected. There are $2^5$ ways to choose a subset of the veggie toppings. Thus, there are $3 cdot 2^5$ ways to choose a pizza with no meat toppings.
No veggie toppings: By symmetry, there are $3 cdot 2^5$ ways to choose a pizza with no veggie toppings.
If we subtract the number of pizzas with no meat toppings and the number of pizzas with no veggie toppings from the total, we will have subtracted those pizzas with no meat and no veggie toppings twice. We only want to subtract them once, so we must add them back.
No meat and no veggie toppings: There are only three such pizzas, one of each size.
Total: There are $$3 cdot 2^{10} - 3 cdot 2^5 - 3 cdot 2^5 + 3 = 3(2^{10} - 2^5 - 2^5 + 1)$$
pizzas that have at least one meat topping and at least one veggie topping. Notice that
$$3(2^{10} - 2^5 - 2^5 + 1) = 3(2^{10} - 1) - 3(2^5 - 1) - 3(2^5 - 1)$$
Why should this be the case?
We want pizzas with at least one meat topping and at least one veggie topping. The term $3(2^{10} - 1)$ counts all pizzas with at least one topping. One of the terms $3(2^5 - 1)$ counts all pizzas with at least one topping that contain no meat toppings, and the other one counts all pizzas with at least one topping that contain no veggie toppings. The $2^5 - 1$ terms are necessary since you started by counting all pizzas with at least one topping. If you instead start with all possible pizzas, you arrive at the answer obtained above with the Inclusion-Exclusion Principle.
$endgroup$
add a comment |
$begingroup$
Let's use the Inclusion-Exclusion Principle to solve the problem.
There are $3$ ways to choose the size of the pizza and $2^{10}$ ways to choose which subset of toppings will be placed on the pizza. Hence, if there were no restrictions, we could select a pizza in $3 cdot 2^{10}$ ways.
From these, we must subtract those selections in which no meat toppings or no veggie toppings are selected.
No meat toppings: There are again $3$ ways to choose the size of the pizza. If there are no meat toppings, only the five veggie toppings can be selected. There are $2^5$ ways to choose a subset of the veggie toppings. Thus, there are $3 cdot 2^5$ ways to choose a pizza with no meat toppings.
No veggie toppings: By symmetry, there are $3 cdot 2^5$ ways to choose a pizza with no veggie toppings.
If we subtract the number of pizzas with no meat toppings and the number of pizzas with no veggie toppings from the total, we will have subtracted those pizzas with no meat and no veggie toppings twice. We only want to subtract them once, so we must add them back.
No meat and no veggie toppings: There are only three such pizzas, one of each size.
Total: There are $$3 cdot 2^{10} - 3 cdot 2^5 - 3 cdot 2^5 + 3 = 3(2^{10} - 2^5 - 2^5 + 1)$$
pizzas that have at least one meat topping and at least one veggie topping. Notice that
$$3(2^{10} - 2^5 - 2^5 + 1) = 3(2^{10} - 1) - 3(2^5 - 1) - 3(2^5 - 1)$$
Why should this be the case?
We want pizzas with at least one meat topping and at least one veggie topping. The term $3(2^{10} - 1)$ counts all pizzas with at least one topping. One of the terms $3(2^5 - 1)$ counts all pizzas with at least one topping that contain no meat toppings, and the other one counts all pizzas with at least one topping that contain no veggie toppings. The $2^5 - 1$ terms are necessary since you started by counting all pizzas with at least one topping. If you instead start with all possible pizzas, you arrive at the answer obtained above with the Inclusion-Exclusion Principle.
$endgroup$
Let's use the Inclusion-Exclusion Principle to solve the problem.
There are $3$ ways to choose the size of the pizza and $2^{10}$ ways to choose which subset of toppings will be placed on the pizza. Hence, if there were no restrictions, we could select a pizza in $3 cdot 2^{10}$ ways.
From these, we must subtract those selections in which no meat toppings or no veggie toppings are selected.
No meat toppings: There are again $3$ ways to choose the size of the pizza. If there are no meat toppings, only the five veggie toppings can be selected. There are $2^5$ ways to choose a subset of the veggie toppings. Thus, there are $3 cdot 2^5$ ways to choose a pizza with no meat toppings.
No veggie toppings: By symmetry, there are $3 cdot 2^5$ ways to choose a pizza with no veggie toppings.
If we subtract the number of pizzas with no meat toppings and the number of pizzas with no veggie toppings from the total, we will have subtracted those pizzas with no meat and no veggie toppings twice. We only want to subtract them once, so we must add them back.
No meat and no veggie toppings: There are only three such pizzas, one of each size.
Total: There are $$3 cdot 2^{10} - 3 cdot 2^5 - 3 cdot 2^5 + 3 = 3(2^{10} - 2^5 - 2^5 + 1)$$
pizzas that have at least one meat topping and at least one veggie topping. Notice that
$$3(2^{10} - 2^5 - 2^5 + 1) = 3(2^{10} - 1) - 3(2^5 - 1) - 3(2^5 - 1)$$
Why should this be the case?
We want pizzas with at least one meat topping and at least one veggie topping. The term $3(2^{10} - 1)$ counts all pizzas with at least one topping. One of the terms $3(2^5 - 1)$ counts all pizzas with at least one topping that contain no meat toppings, and the other one counts all pizzas with at least one topping that contain no veggie toppings. The $2^5 - 1$ terms are necessary since you started by counting all pizzas with at least one topping. If you instead start with all possible pizzas, you arrive at the answer obtained above with the Inclusion-Exclusion Principle.
answered Mar 17 at 11:04
N. F. TaussigN. F. Taussig
45k103358
45k103358
add a comment |
add a comment |
$begingroup$
There are $2^5-1$ ways to choose at least one meat and similarly for veggies, and the answer is $3(2^5-1)^2$.
$endgroup$
add a comment |
$begingroup$
There are $2^5-1$ ways to choose at least one meat and similarly for veggies, and the answer is $3(2^5-1)^2$.
$endgroup$
add a comment |
$begingroup$
There are $2^5-1$ ways to choose at least one meat and similarly for veggies, and the answer is $3(2^5-1)^2$.
$endgroup$
There are $2^5-1$ ways to choose at least one meat and similarly for veggies, and the answer is $3(2^5-1)^2$.
answered Mar 17 at 11:09
J.G.J.G.
32.5k23250
32.5k23250
add a comment |
add a comment |
$begingroup$
For one size, refer to the table ($0$ - absent, $1$ - present):
$$begin{array}{c|c|c}
text{Cases}&text{Meat}&text{Veggi}&text{All}&text{All but $00$}\
hline
(1)&0 text{or} 1&0 text{or} 1&00+01+10+11& 2^{10}-1\
(2)&0&0 text{or} 1&00+01& 2^{5}-1\
(3)&0 text{or} 1&0&00+10& 2^{5}-1\
hline
(1)-(2)-(3)&&&&(2^{10}-1)-(2^5-1)-(2^5-1)end{array}$$
For three sizes, it must be multiplied by $3$.
$endgroup$
add a comment |
$begingroup$
For one size, refer to the table ($0$ - absent, $1$ - present):
$$begin{array}{c|c|c}
text{Cases}&text{Meat}&text{Veggi}&text{All}&text{All but $00$}\
hline
(1)&0 text{or} 1&0 text{or} 1&00+01+10+11& 2^{10}-1\
(2)&0&0 text{or} 1&00+01& 2^{5}-1\
(3)&0 text{or} 1&0&00+10& 2^{5}-1\
hline
(1)-(2)-(3)&&&&(2^{10}-1)-(2^5-1)-(2^5-1)end{array}$$
For three sizes, it must be multiplied by $3$.
$endgroup$
add a comment |
$begingroup$
For one size, refer to the table ($0$ - absent, $1$ - present):
$$begin{array}{c|c|c}
text{Cases}&text{Meat}&text{Veggi}&text{All}&text{All but $00$}\
hline
(1)&0 text{or} 1&0 text{or} 1&00+01+10+11& 2^{10}-1\
(2)&0&0 text{or} 1&00+01& 2^{5}-1\
(3)&0 text{or} 1&0&00+10& 2^{5}-1\
hline
(1)-(2)-(3)&&&&(2^{10}-1)-(2^5-1)-(2^5-1)end{array}$$
For three sizes, it must be multiplied by $3$.
$endgroup$
For one size, refer to the table ($0$ - absent, $1$ - present):
$$begin{array}{c|c|c}
text{Cases}&text{Meat}&text{Veggi}&text{All}&text{All but $00$}\
hline
(1)&0 text{or} 1&0 text{or} 1&00+01+10+11& 2^{10}-1\
(2)&0&0 text{or} 1&00+01& 2^{5}-1\
(3)&0 text{or} 1&0&00+10& 2^{5}-1\
hline
(1)-(2)-(3)&&&&(2^{10}-1)-(2^5-1)-(2^5-1)end{array}$$
For three sizes, it must be multiplied by $3$.
answered Mar 17 at 12:09
farruhotafarruhota
21.7k2842
21.7k2842
add a comment |
add a 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%2f3151234%2fa-pizza-parlor-has-5-meat-and-5-veggie-toppings-and-3-different-sizes-how-many%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