Solving Generating Function when there is condition on two variables.
$begingroup$
" Find the number of ways of giving 10 identical gift boxes to 6 people : A, B, C, D, E, F in such a way that total number of boxes given to A and B together does not exceed 4. "
I tried it in this way :
[$x^{10}$] $(1+x^{1}+...+x^{4})^{2}*( 1+x^{2}+....)^{4}$
But I am not sure if its right or not , can anyone help me with the condition on A and B i.e say $x_1+x_2leq 4$
generating-functions
$endgroup$
add a comment |
$begingroup$
" Find the number of ways of giving 10 identical gift boxes to 6 people : A, B, C, D, E, F in such a way that total number of boxes given to A and B together does not exceed 4. "
I tried it in this way :
[$x^{10}$] $(1+x^{1}+...+x^{4})^{2}*( 1+x^{2}+....)^{4}$
But I am not sure if its right or not , can anyone help me with the condition on A and B i.e say $x_1+x_2leq 4$
generating-functions
$endgroup$
add a comment |
$begingroup$
" Find the number of ways of giving 10 identical gift boxes to 6 people : A, B, C, D, E, F in such a way that total number of boxes given to A and B together does not exceed 4. "
I tried it in this way :
[$x^{10}$] $(1+x^{1}+...+x^{4})^{2}*( 1+x^{2}+....)^{4}$
But I am not sure if its right or not , can anyone help me with the condition on A and B i.e say $x_1+x_2leq 4$
generating-functions
$endgroup$
" Find the number of ways of giving 10 identical gift boxes to 6 people : A, B, C, D, E, F in such a way that total number of boxes given to A and B together does not exceed 4. "
I tried it in this way :
[$x^{10}$] $(1+x^{1}+...+x^{4})^{2}*( 1+x^{2}+....)^{4}$
But I am not sure if its right or not , can anyone help me with the condition on A and B i.e say $x_1+x_2leq 4$
generating-functions
generating-functions
edited Dec 22 '18 at 12:52
CHETAN RAJPUT
asked Dec 22 '18 at 12:40
CHETAN RAJPUTCHETAN RAJPUT
205
205
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
What you've to find is $x_1+x_2+x_3+x_4+x_5+x_6=10$ (I've replaced A-F by 1-6). Further, $x_igeq 0$ and $x_1+x_2leq 4$.
Required answer= $$sum_{i=0}^{4}(Coeff. of x^i in (x^0+x^1+cdots x^4)cdot (x^0+x^1+cdots x^4))cdot(Coeff. of x^{10-i} in (x^0+x^1+cdots x^{10})^4)$$
Can you solve it now?
In open form, it can also be written as:
$$(Coeff. of x^0 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{10} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^1 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{9} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^2 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{8} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^3 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{7} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^4 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{6} in (x^0+x^1+cdots x^{10})^4)$$
$endgroup$
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
|
show 9 more comments
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%2f3049420%2fsolving-generating-function-when-there-is-condition-on-two-variables%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
$begingroup$
What you've to find is $x_1+x_2+x_3+x_4+x_5+x_6=10$ (I've replaced A-F by 1-6). Further, $x_igeq 0$ and $x_1+x_2leq 4$.
Required answer= $$sum_{i=0}^{4}(Coeff. of x^i in (x^0+x^1+cdots x^4)cdot (x^0+x^1+cdots x^4))cdot(Coeff. of x^{10-i} in (x^0+x^1+cdots x^{10})^4)$$
Can you solve it now?
In open form, it can also be written as:
$$(Coeff. of x^0 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{10} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^1 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{9} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^2 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{8} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^3 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{7} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^4 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{6} in (x^0+x^1+cdots x^{10})^4)$$
$endgroup$
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
|
show 9 more comments
$begingroup$
What you've to find is $x_1+x_2+x_3+x_4+x_5+x_6=10$ (I've replaced A-F by 1-6). Further, $x_igeq 0$ and $x_1+x_2leq 4$.
Required answer= $$sum_{i=0}^{4}(Coeff. of x^i in (x^0+x^1+cdots x^4)cdot (x^0+x^1+cdots x^4))cdot(Coeff. of x^{10-i} in (x^0+x^1+cdots x^{10})^4)$$
Can you solve it now?
In open form, it can also be written as:
$$(Coeff. of x^0 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{10} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^1 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{9} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^2 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{8} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^3 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{7} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^4 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{6} in (x^0+x^1+cdots x^{10})^4)$$
$endgroup$
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
|
show 9 more comments
$begingroup$
What you've to find is $x_1+x_2+x_3+x_4+x_5+x_6=10$ (I've replaced A-F by 1-6). Further, $x_igeq 0$ and $x_1+x_2leq 4$.
Required answer= $$sum_{i=0}^{4}(Coeff. of x^i in (x^0+x^1+cdots x^4)cdot (x^0+x^1+cdots x^4))cdot(Coeff. of x^{10-i} in (x^0+x^1+cdots x^{10})^4)$$
Can you solve it now?
In open form, it can also be written as:
$$(Coeff. of x^0 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{10} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^1 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{9} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^2 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{8} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^3 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{7} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^4 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{6} in (x^0+x^1+cdots x^{10})^4)$$
$endgroup$
What you've to find is $x_1+x_2+x_3+x_4+x_5+x_6=10$ (I've replaced A-F by 1-6). Further, $x_igeq 0$ and $x_1+x_2leq 4$.
Required answer= $$sum_{i=0}^{4}(Coeff. of x^i in (x^0+x^1+cdots x^4)cdot (x^0+x^1+cdots x^4))cdot(Coeff. of x^{10-i} in (x^0+x^1+cdots x^{10})^4)$$
Can you solve it now?
In open form, it can also be written as:
$$(Coeff. of x^0 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{10} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^1 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{9} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^2 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{8} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^3 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{7} in (x^0+x^1+cdots x^{10})^4)$$$$+(Coeff. of x^4 in (x^0+x^1+cdots x^4)^2)cdot(Coeff. of x^{6} in (x^0+x^1+cdots x^{10})^4)$$
edited Dec 22 '18 at 13:18
answered Dec 22 '18 at 12:58
Ankit KumarAnkit Kumar
1,514221
1,514221
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
|
show 9 more comments
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
2
2
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
$begingroup$
Okay. I got that. I haven't came across this case so I am not fully getting it. I ll cross check the answer then analyse it. Thanx
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 13:25
1
1
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
$begingroup$
issuu.com/imsf/docs/mcs-033/25 It has unit 2, generating functions
$endgroup$
– Ankit Kumar
Dec 22 '18 at 13:37
2
2
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
$begingroup$
Thank you for sharing it. I got 2121 , check if its fine.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 15:03
1
1
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
$begingroup$
Thanx. answer is correct.
$endgroup$
– CHETAN RAJPUT
Dec 22 '18 at 16:39
1
1
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
$begingroup$
@CHETANRAJPUT you're welcome
$endgroup$
– Ankit Kumar
Dec 22 '18 at 16:52
|
show 9 more comments
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%2f3049420%2fsolving-generating-function-when-there-is-condition-on-two-variables%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