ordered pair of unequal positive integer solution of $x+y+z+w = 20$
$begingroup$
[1] Number of ordered pair of unequal positive integer solution of $x+y+z = 10$
[2] Number of ordered pair of unequal positive integer solution of $x+y+z+w = 20$
$bf{My; Try}::$ For $(1)$ one:: Here $x,y,z>0$ and $x,y,zin mathbb{Z^{+}}$
$bullet $ If $x=1$, Then $y+z=9$, So $(y,z) = (2,7);,(3,6);,(4,5);(5,4);,(6,3);,(7,2)$
$bullet $ If $x=2$ Then $y+z=8$, So $(y,z) = (1,7);,(3,5);,(5,3);(7,1)$
$bullet $ If $x=3$ Then $y+z=7$, So $(y,z) = (1,6);,(2,5);,(5,2);(6,1)$
$bullet $ If $x=4$ Then $y+z=6$, So $(y,z) = (1,5);,(5,1)$.
$bullet $ If $x=5$ Then $y+z=5$, So $(y,z) = (1,4);,(2,3);,(3,2);(4,1)$
$bullet $ If $x=6$ Then $y+z=4$, So $(y,z) = (1,3);,(3,1)$
$bullet $ If $x=7$ Then $y+z=3$, So $(y,z) = (1,2);,(2,1)$
So Total unordered pair is $ = 24$
My Question is , is there is any other Method to calculate the ordered pair in less complex way
because above is very Lengthy method
Help Required
Thanks.
algebra-precalculus number-theory
$endgroup$
add a comment |
$begingroup$
[1] Number of ordered pair of unequal positive integer solution of $x+y+z = 10$
[2] Number of ordered pair of unequal positive integer solution of $x+y+z+w = 20$
$bf{My; Try}::$ For $(1)$ one:: Here $x,y,z>0$ and $x,y,zin mathbb{Z^{+}}$
$bullet $ If $x=1$, Then $y+z=9$, So $(y,z) = (2,7);,(3,6);,(4,5);(5,4);,(6,3);,(7,2)$
$bullet $ If $x=2$ Then $y+z=8$, So $(y,z) = (1,7);,(3,5);,(5,3);(7,1)$
$bullet $ If $x=3$ Then $y+z=7$, So $(y,z) = (1,6);,(2,5);,(5,2);(6,1)$
$bullet $ If $x=4$ Then $y+z=6$, So $(y,z) = (1,5);,(5,1)$.
$bullet $ If $x=5$ Then $y+z=5$, So $(y,z) = (1,4);,(2,3);,(3,2);(4,1)$
$bullet $ If $x=6$ Then $y+z=4$, So $(y,z) = (1,3);,(3,1)$
$bullet $ If $x=7$ Then $y+z=3$, So $(y,z) = (1,2);,(2,1)$
So Total unordered pair is $ = 24$
My Question is , is there is any other Method to calculate the ordered pair in less complex way
because above is very Lengthy method
Help Required
Thanks.
algebra-precalculus number-theory
$endgroup$
add a comment |
$begingroup$
[1] Number of ordered pair of unequal positive integer solution of $x+y+z = 10$
[2] Number of ordered pair of unequal positive integer solution of $x+y+z+w = 20$
$bf{My; Try}::$ For $(1)$ one:: Here $x,y,z>0$ and $x,y,zin mathbb{Z^{+}}$
$bullet $ If $x=1$, Then $y+z=9$, So $(y,z) = (2,7);,(3,6);,(4,5);(5,4);,(6,3);,(7,2)$
$bullet $ If $x=2$ Then $y+z=8$, So $(y,z) = (1,7);,(3,5);,(5,3);(7,1)$
$bullet $ If $x=3$ Then $y+z=7$, So $(y,z) = (1,6);,(2,5);,(5,2);(6,1)$
$bullet $ If $x=4$ Then $y+z=6$, So $(y,z) = (1,5);,(5,1)$.
$bullet $ If $x=5$ Then $y+z=5$, So $(y,z) = (1,4);,(2,3);,(3,2);(4,1)$
$bullet $ If $x=6$ Then $y+z=4$, So $(y,z) = (1,3);,(3,1)$
$bullet $ If $x=7$ Then $y+z=3$, So $(y,z) = (1,2);,(2,1)$
So Total unordered pair is $ = 24$
My Question is , is there is any other Method to calculate the ordered pair in less complex way
because above is very Lengthy method
Help Required
Thanks.
algebra-precalculus number-theory
$endgroup$
[1] Number of ordered pair of unequal positive integer solution of $x+y+z = 10$
[2] Number of ordered pair of unequal positive integer solution of $x+y+z+w = 20$
$bf{My; Try}::$ For $(1)$ one:: Here $x,y,z>0$ and $x,y,zin mathbb{Z^{+}}$
$bullet $ If $x=1$, Then $y+z=9$, So $(y,z) = (2,7);,(3,6);,(4,5);(5,4);,(6,3);,(7,2)$
$bullet $ If $x=2$ Then $y+z=8$, So $(y,z) = (1,7);,(3,5);,(5,3);(7,1)$
$bullet $ If $x=3$ Then $y+z=7$, So $(y,z) = (1,6);,(2,5);,(5,2);(6,1)$
$bullet $ If $x=4$ Then $y+z=6$, So $(y,z) = (1,5);,(5,1)$.
$bullet $ If $x=5$ Then $y+z=5$, So $(y,z) = (1,4);,(2,3);,(3,2);(4,1)$
$bullet $ If $x=6$ Then $y+z=4$, So $(y,z) = (1,3);,(3,1)$
$bullet $ If $x=7$ Then $y+z=3$, So $(y,z) = (1,2);,(2,1)$
So Total unordered pair is $ = 24$
My Question is , is there is any other Method to calculate the ordered pair in less complex way
because above is very Lengthy method
Help Required
Thanks.
algebra-precalculus number-theory
algebra-precalculus number-theory
edited Jan 26 '14 at 1:42
Matthew Conroy
10.3k32836
10.3k32836
asked Jan 25 '14 at 18:09
juantheronjuantheron
34.3k1147142
34.3k1147142
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
For the first question, let's look at this for a general sum, $S$. We seek triples of unequal positive integers $(x,y,z)$ with $x+y+z=S$. We can count them by assuming $x<y<z$, and multiply the resulting count by $3!=6$.
Since we are assuming $x<y<z$, we must have
$$
x+(x+1)+(x+2) le S
$$
so $3x+3 le S$, i.e., $xle (S/3)-1$.
As well, $y+(y+1)le S-x$, i.e., $2y+1 le S-x$, i.e. $y le (S-x-1)/2.$
Once $x$ and $y$ are chosen, this forces the value of $z$, and so the quantity you seek is $6$ times
$$
f(S)=sum_{x:1 le x le frac{S}{3}-1} sum_{y:x+1le y le frac{S-x-1}{2}} 1
= sum_{x:1 le x le frac{S}{3}-1} left( leftlfloor frac{S-x-1}{2}rightrfloor -xright)
$$
Calculating this for various $S$, starting with $S=6$, we have the sequence
$$1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,40,44,... .$$
For your $S=10$, we get the value $4$, which when multiplied by $6$ yields your 24.
This sequence appears to be (a shift of) http://oeis.org/A001399, and from the entry there, it seems that $$f(S)=mathrm{round}left( frac{(S-3)^2}{12} right)$$
and I've verified that for $6le Sle 10000$, so it's pretty surely correct. A proof is probably among the many references at that OEIS entry.
$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%2f651099%2fordered-pair-of-unequal-positive-integer-solution-of-xyzw-20%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$
For the first question, let's look at this for a general sum, $S$. We seek triples of unequal positive integers $(x,y,z)$ with $x+y+z=S$. We can count them by assuming $x<y<z$, and multiply the resulting count by $3!=6$.
Since we are assuming $x<y<z$, we must have
$$
x+(x+1)+(x+2) le S
$$
so $3x+3 le S$, i.e., $xle (S/3)-1$.
As well, $y+(y+1)le S-x$, i.e., $2y+1 le S-x$, i.e. $y le (S-x-1)/2.$
Once $x$ and $y$ are chosen, this forces the value of $z$, and so the quantity you seek is $6$ times
$$
f(S)=sum_{x:1 le x le frac{S}{3}-1} sum_{y:x+1le y le frac{S-x-1}{2}} 1
= sum_{x:1 le x le frac{S}{3}-1} left( leftlfloor frac{S-x-1}{2}rightrfloor -xright)
$$
Calculating this for various $S$, starting with $S=6$, we have the sequence
$$1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,40,44,... .$$
For your $S=10$, we get the value $4$, which when multiplied by $6$ yields your 24.
This sequence appears to be (a shift of) http://oeis.org/A001399, and from the entry there, it seems that $$f(S)=mathrm{round}left( frac{(S-3)^2}{12} right)$$
and I've verified that for $6le Sle 10000$, so it's pretty surely correct. A proof is probably among the many references at that OEIS entry.
$endgroup$
add a comment |
$begingroup$
For the first question, let's look at this for a general sum, $S$. We seek triples of unequal positive integers $(x,y,z)$ with $x+y+z=S$. We can count them by assuming $x<y<z$, and multiply the resulting count by $3!=6$.
Since we are assuming $x<y<z$, we must have
$$
x+(x+1)+(x+2) le S
$$
so $3x+3 le S$, i.e., $xle (S/3)-1$.
As well, $y+(y+1)le S-x$, i.e., $2y+1 le S-x$, i.e. $y le (S-x-1)/2.$
Once $x$ and $y$ are chosen, this forces the value of $z$, and so the quantity you seek is $6$ times
$$
f(S)=sum_{x:1 le x le frac{S}{3}-1} sum_{y:x+1le y le frac{S-x-1}{2}} 1
= sum_{x:1 le x le frac{S}{3}-1} left( leftlfloor frac{S-x-1}{2}rightrfloor -xright)
$$
Calculating this for various $S$, starting with $S=6$, we have the sequence
$$1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,40,44,... .$$
For your $S=10$, we get the value $4$, which when multiplied by $6$ yields your 24.
This sequence appears to be (a shift of) http://oeis.org/A001399, and from the entry there, it seems that $$f(S)=mathrm{round}left( frac{(S-3)^2}{12} right)$$
and I've verified that for $6le Sle 10000$, so it's pretty surely correct. A proof is probably among the many references at that OEIS entry.
$endgroup$
add a comment |
$begingroup$
For the first question, let's look at this for a general sum, $S$. We seek triples of unequal positive integers $(x,y,z)$ with $x+y+z=S$. We can count them by assuming $x<y<z$, and multiply the resulting count by $3!=6$.
Since we are assuming $x<y<z$, we must have
$$
x+(x+1)+(x+2) le S
$$
so $3x+3 le S$, i.e., $xle (S/3)-1$.
As well, $y+(y+1)le S-x$, i.e., $2y+1 le S-x$, i.e. $y le (S-x-1)/2.$
Once $x$ and $y$ are chosen, this forces the value of $z$, and so the quantity you seek is $6$ times
$$
f(S)=sum_{x:1 le x le frac{S}{3}-1} sum_{y:x+1le y le frac{S-x-1}{2}} 1
= sum_{x:1 le x le frac{S}{3}-1} left( leftlfloor frac{S-x-1}{2}rightrfloor -xright)
$$
Calculating this for various $S$, starting with $S=6$, we have the sequence
$$1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,40,44,... .$$
For your $S=10$, we get the value $4$, which when multiplied by $6$ yields your 24.
This sequence appears to be (a shift of) http://oeis.org/A001399, and from the entry there, it seems that $$f(S)=mathrm{round}left( frac{(S-3)^2}{12} right)$$
and I've verified that for $6le Sle 10000$, so it's pretty surely correct. A proof is probably among the many references at that OEIS entry.
$endgroup$
For the first question, let's look at this for a general sum, $S$. We seek triples of unequal positive integers $(x,y,z)$ with $x+y+z=S$. We can count them by assuming $x<y<z$, and multiply the resulting count by $3!=6$.
Since we are assuming $x<y<z$, we must have
$$
x+(x+1)+(x+2) le S
$$
so $3x+3 le S$, i.e., $xle (S/3)-1$.
As well, $y+(y+1)le S-x$, i.e., $2y+1 le S-x$, i.e. $y le (S-x-1)/2.$
Once $x$ and $y$ are chosen, this forces the value of $z$, and so the quantity you seek is $6$ times
$$
f(S)=sum_{x:1 le x le frac{S}{3}-1} sum_{y:x+1le y le frac{S-x-1}{2}} 1
= sum_{x:1 le x le frac{S}{3}-1} left( leftlfloor frac{S-x-1}{2}rightrfloor -xright)
$$
Calculating this for various $S$, starting with $S=6$, we have the sequence
$$1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,40,44,... .$$
For your $S=10$, we get the value $4$, which when multiplied by $6$ yields your 24.
This sequence appears to be (a shift of) http://oeis.org/A001399, and from the entry there, it seems that $$f(S)=mathrm{round}left( frac{(S-3)^2}{12} right)$$
and I've verified that for $6le Sle 10000$, so it's pretty surely correct. A proof is probably among the many references at that OEIS entry.
edited Dec 7 '18 at 21:47
answered Jan 26 '14 at 1:38
Matthew ConroyMatthew Conroy
10.3k32836
10.3k32836
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%2f651099%2fordered-pair-of-unequal-positive-integer-solution-of-xyzw-20%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