Numbered balls in numbered boxes











up vote
0
down vote

favorite












There are 2n different balls so that each ball numbered from 1 to 2n.
There are 2n different boxes numbered from 1 to 2n.
How many ways are there so that there is a single even numbered ball in an
even numbered box(the box and the ball can have different numbers - example
ball number - 4, box number 6. they just have to both be even).



My solution for some reason isnt true -
Pick an even numbered box - n choices, to which we will place an even
numbered ball - n choices. Now to make sure the rest of even numbered boxes
get uneven numbered balls - we have n uneven balls so we pick a random
even box and have n choices, then n-1,..., and we get n!/2 choices
to stuff all n-1 even boxes with uneven numbered balls.
Now we have 1 uneven ball left and n-1 even balls, so n balls in total.
We can randomly distribute them. so n!.



So my answer is (nn(n!)^2)/2=n^3(n!)/2



Where did I go wrong?



The correct answer is n^4*((n-1)!)^2










share|cite|improve this question


















  • 2




    Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
    – JMoravitz
    Nov 17 at 20:09






  • 2




    As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
    – JMoravitz
    Nov 17 at 20:14










  • First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
    – Johnny
    Nov 17 at 20:25






  • 2




    For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
    – JMoravitz
    Nov 17 at 20:31






  • 2




    Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
    – JMoravitz
    Nov 17 at 20:49

















up vote
0
down vote

favorite












There are 2n different balls so that each ball numbered from 1 to 2n.
There are 2n different boxes numbered from 1 to 2n.
How many ways are there so that there is a single even numbered ball in an
even numbered box(the box and the ball can have different numbers - example
ball number - 4, box number 6. they just have to both be even).



My solution for some reason isnt true -
Pick an even numbered box - n choices, to which we will place an even
numbered ball - n choices. Now to make sure the rest of even numbered boxes
get uneven numbered balls - we have n uneven balls so we pick a random
even box and have n choices, then n-1,..., and we get n!/2 choices
to stuff all n-1 even boxes with uneven numbered balls.
Now we have 1 uneven ball left and n-1 even balls, so n balls in total.
We can randomly distribute them. so n!.



So my answer is (nn(n!)^2)/2=n^3(n!)/2



Where did I go wrong?



The correct answer is n^4*((n-1)!)^2










share|cite|improve this question


















  • 2




    Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
    – JMoravitz
    Nov 17 at 20:09






  • 2




    As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
    – JMoravitz
    Nov 17 at 20:14










  • First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
    – Johnny
    Nov 17 at 20:25






  • 2




    For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
    – JMoravitz
    Nov 17 at 20:31






  • 2




    Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
    – JMoravitz
    Nov 17 at 20:49















up vote
0
down vote

favorite









up vote
0
down vote

favorite











There are 2n different balls so that each ball numbered from 1 to 2n.
There are 2n different boxes numbered from 1 to 2n.
How many ways are there so that there is a single even numbered ball in an
even numbered box(the box and the ball can have different numbers - example
ball number - 4, box number 6. they just have to both be even).



My solution for some reason isnt true -
Pick an even numbered box - n choices, to which we will place an even
numbered ball - n choices. Now to make sure the rest of even numbered boxes
get uneven numbered balls - we have n uneven balls so we pick a random
even box and have n choices, then n-1,..., and we get n!/2 choices
to stuff all n-1 even boxes with uneven numbered balls.
Now we have 1 uneven ball left and n-1 even balls, so n balls in total.
We can randomly distribute them. so n!.



So my answer is (nn(n!)^2)/2=n^3(n!)/2



Where did I go wrong?



The correct answer is n^4*((n-1)!)^2










share|cite|improve this question













There are 2n different balls so that each ball numbered from 1 to 2n.
There are 2n different boxes numbered from 1 to 2n.
How many ways are there so that there is a single even numbered ball in an
even numbered box(the box and the ball can have different numbers - example
ball number - 4, box number 6. they just have to both be even).



My solution for some reason isnt true -
Pick an even numbered box - n choices, to which we will place an even
numbered ball - n choices. Now to make sure the rest of even numbered boxes
get uneven numbered balls - we have n uneven balls so we pick a random
even box and have n choices, then n-1,..., and we get n!/2 choices
to stuff all n-1 even boxes with uneven numbered balls.
Now we have 1 uneven ball left and n-1 even balls, so n balls in total.
We can randomly distribute them. so n!.



So my answer is (nn(n!)^2)/2=n^3(n!)/2



Where did I go wrong?



The correct answer is n^4*((n-1)!)^2







combinatorics






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 17 at 19:57









Johnny

175




175








  • 2




    Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
    – JMoravitz
    Nov 17 at 20:09






  • 2




    As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
    – JMoravitz
    Nov 17 at 20:14










  • First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
    – Johnny
    Nov 17 at 20:25






  • 2




    For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
    – JMoravitz
    Nov 17 at 20:31






  • 2




    Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
    – JMoravitz
    Nov 17 at 20:49
















  • 2




    Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
    – JMoravitz
    Nov 17 at 20:09






  • 2




    As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
    – JMoravitz
    Nov 17 at 20:14










  • First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
    – Johnny
    Nov 17 at 20:25






  • 2




    For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
    – JMoravitz
    Nov 17 at 20:31






  • 2




    Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
    – JMoravitz
    Nov 17 at 20:49










2




2




Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
– JMoravitz
Nov 17 at 20:09




Pick which even box is used to receive an even ball ($n$ options). Pick which even ball goes in said box ($n$ options). As the rest of the balls in the even boxes must be odd there will be exactly one odd ball used in an odd box. Pick which odd ball is used in an odd box and which odd box is used ($n$ options each). Now, arrange the remaining $n-1$ even balls among the remaining odd boxes ($(n-1)!$ options) and arrange the remaining $n-1$ odd balls among the even boxes ($(n-1)!$ options) giving the result.
– JMoravitz
Nov 17 at 20:09




2




2




As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
– JMoravitz
Nov 17 at 20:14




As for what you did wrong... you seem to have first chosen an even box and an even ball to go into it, then from left to right filled the remaining even boxes with odd balls, then when all even boxes are filled you took the remaining $n$ balls and arranged them. This is all well and good, however the number of ways to accomplish this is $frac{n!}{1} = n!$, not $frac{n!}{2}$. Indeed, making this correction you get $n^2(n!)^2$ which happens to equal $n^4((n-1)!)^2$
– JMoravitz
Nov 17 at 20:14












First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
– Johnny
Nov 17 at 20:25




First, thanks for the answer! About my solution: I got n!/2 from filling from left to right the remaining even boxes(not odd boxes). There are n-1 even boxes left and n odd balls, so for the first box I have n choices, second n-1, and the last box I still have 2 odd balls. Why is it incorrect?
– Johnny
Nov 17 at 20:25




2




2




For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
– JMoravitz
Nov 17 at 20:31




For the last even box you still have $2$ odd balls and this $2$ is still a part of the product that you take. For the $(n-1)$'st remaining even box you have $n$ odd balls to choose from. For the $(n-2)$'nd remaining even box you have $n-1$ odd balls to choose from, on up until for the $2$n'd remaining even box you have $3$ odd balls to choose from and for the final remaining even box you have $2$ odd balls to choose from. Multiplying the number of choices available for all of these (including the last one) you have $ncdot (n-1)cdots 3cdot 2$ ways you can do this.
– JMoravitz
Nov 17 at 20:31




2




2




Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
– JMoravitz
Nov 17 at 20:49






Yes, and notice that $ncdot ncdot (n!)cdot (n!) = ncdot ncdot ncdot (n-1)!cdot ncdot (n-1)! = n^4((n-1)!)^2$. Your only mistake can be attributed to an off-by-one error.
– JMoravitz
Nov 17 at 20:49

















active

oldest

votes











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: 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%2f3002745%2fnumbered-balls-in-numbered-boxes%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.


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%2f3002745%2fnumbered-balls-in-numbered-boxes%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

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents