Positive solutions to a system of linear diophantine equations
$begingroup$
A system of equations is
$$x_1+x_2+x_3+x_4=b_1$$
$$x_1+x_5+x_6+x_7=b_2$$
$$x_2+x_5+x_7+x_8=b_3$$
$$x_3+x_6+x_8+x_{10}=b_4$$
$$x_4+x_7+x_9+x_{10}=b_5$$
$b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.
diophantine-equations systems-of-equations
$endgroup$
add a comment |
$begingroup$
A system of equations is
$$x_1+x_2+x_3+x_4=b_1$$
$$x_1+x_5+x_6+x_7=b_2$$
$$x_2+x_5+x_7+x_8=b_3$$
$$x_3+x_6+x_8+x_{10}=b_4$$
$$x_4+x_7+x_9+x_{10}=b_5$$
$b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.
diophantine-equations systems-of-equations
$endgroup$
add a comment |
$begingroup$
A system of equations is
$$x_1+x_2+x_3+x_4=b_1$$
$$x_1+x_5+x_6+x_7=b_2$$
$$x_2+x_5+x_7+x_8=b_3$$
$$x_3+x_6+x_8+x_{10}=b_4$$
$$x_4+x_7+x_9+x_{10}=b_5$$
$b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.
diophantine-equations systems-of-equations
$endgroup$
A system of equations is
$$x_1+x_2+x_3+x_4=b_1$$
$$x_1+x_5+x_6+x_7=b_2$$
$$x_2+x_5+x_7+x_8=b_3$$
$$x_3+x_6+x_8+x_{10}=b_4$$
$$x_4+x_7+x_9+x_{10}=b_5$$
$b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.
diophantine-equations systems-of-equations
diophantine-equations systems-of-equations
asked Jun 15 '15 at 7:38
Nicolai SchlageNicolai Schlage
132
132
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.
In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
begin{align*}
x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
x_3 & = b_4 - x_{10} - x_6 - x_8, \
x_4 & = b_5 - x_{10} - x_7 - x_9, \
x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
end{align*}
where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.
Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.
$endgroup$
add a comment |
Your Answer
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%2f1325855%2fpositive-solutions-to-a-system-of-linear-diophantine-equations%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$
There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.
In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
begin{align*}
x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
x_3 & = b_4 - x_{10} - x_6 - x_8, \
x_4 & = b_5 - x_{10} - x_7 - x_9, \
x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
end{align*}
where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.
Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.
$endgroup$
add a comment |
$begingroup$
There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.
In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
begin{align*}
x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
x_3 & = b_4 - x_{10} - x_6 - x_8, \
x_4 & = b_5 - x_{10} - x_7 - x_9, \
x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
end{align*}
where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.
Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.
$endgroup$
add a comment |
$begingroup$
There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.
In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
begin{align*}
x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
x_3 & = b_4 - x_{10} - x_6 - x_8, \
x_4 & = b_5 - x_{10} - x_7 - x_9, \
x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
end{align*}
where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.
Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.
$endgroup$
There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.
In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
begin{align*}
x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
x_3 & = b_4 - x_{10} - x_6 - x_8, \
x_4 & = b_5 - x_{10} - x_7 - x_9, \
x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
end{align*}
where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.
Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.
answered Jun 15 '15 at 8:24
Dietrich BurdeDietrich Burde
82.1k649107
82.1k649107
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%2f1325855%2fpositive-solutions-to-a-system-of-linear-diophantine-equations%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