How to find all positive integer solutions of a Diophantine equation?
$begingroup$
Here is the equation
$$
6a+9b+20c=16
$$
To solve this, i follow the below steps :
$gcd(6,9)(2a+3b)+20c = 16$
let, $w = 2a+3b$
So, $3w+20c =16$
then, specific solution of $w = 112+20n$, $c = -16-3n$ ; where $n in mathbb{Z}$.
After that,
$w = 2a+3b$
So, $2a+3b = 112+20n$, I need to solve this equ. To find the solution of $a$ and $b$.
Finally I got,
$$
A = -(112+20n)+3m \
B = 112+20n-2m \
C = -16-3n
$$
I tried to do above by Euclidean algorithm.
Now, my question is, is it ok or the solving is right?
and how do i got the positive ans for $a,b,c$ ?
If there's any wrong in solving process , please explain me that.
diophantine-equations linear-diophantine-equations
$endgroup$
add a comment |
$begingroup$
Here is the equation
$$
6a+9b+20c=16
$$
To solve this, i follow the below steps :
$gcd(6,9)(2a+3b)+20c = 16$
let, $w = 2a+3b$
So, $3w+20c =16$
then, specific solution of $w = 112+20n$, $c = -16-3n$ ; where $n in mathbb{Z}$.
After that,
$w = 2a+3b$
So, $2a+3b = 112+20n$, I need to solve this equ. To find the solution of $a$ and $b$.
Finally I got,
$$
A = -(112+20n)+3m \
B = 112+20n-2m \
C = -16-3n
$$
I tried to do above by Euclidean algorithm.
Now, my question is, is it ok or the solving is right?
and how do i got the positive ans for $a,b,c$ ?
If there's any wrong in solving process , please explain me that.
diophantine-equations linear-diophantine-equations
$endgroup$
1
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03
add a comment |
$begingroup$
Here is the equation
$$
6a+9b+20c=16
$$
To solve this, i follow the below steps :
$gcd(6,9)(2a+3b)+20c = 16$
let, $w = 2a+3b$
So, $3w+20c =16$
then, specific solution of $w = 112+20n$, $c = -16-3n$ ; where $n in mathbb{Z}$.
After that,
$w = 2a+3b$
So, $2a+3b = 112+20n$, I need to solve this equ. To find the solution of $a$ and $b$.
Finally I got,
$$
A = -(112+20n)+3m \
B = 112+20n-2m \
C = -16-3n
$$
I tried to do above by Euclidean algorithm.
Now, my question is, is it ok or the solving is right?
and how do i got the positive ans for $a,b,c$ ?
If there's any wrong in solving process , please explain me that.
diophantine-equations linear-diophantine-equations
$endgroup$
Here is the equation
$$
6a+9b+20c=16
$$
To solve this, i follow the below steps :
$gcd(6,9)(2a+3b)+20c = 16$
let, $w = 2a+3b$
So, $3w+20c =16$
then, specific solution of $w = 112+20n$, $c = -16-3n$ ; where $n in mathbb{Z}$.
After that,
$w = 2a+3b$
So, $2a+3b = 112+20n$, I need to solve this equ. To find the solution of $a$ and $b$.
Finally I got,
$$
A = -(112+20n)+3m \
B = 112+20n-2m \
C = -16-3n
$$
I tried to do above by Euclidean algorithm.
Now, my question is, is it ok or the solving is right?
and how do i got the positive ans for $a,b,c$ ?
If there's any wrong in solving process , please explain me that.
diophantine-equations linear-diophantine-equations
diophantine-equations linear-diophantine-equations
edited Oct 6 '16 at 4:14
J. M. is not a mathematician
61.4k5152290
61.4k5152290
asked Jun 13 '16 at 11:36


Tanzir UddinTanzir Uddin
923
923
1
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03
add a comment |
1
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03
1
1
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Consider $6a + 9b + 20c = 16$ as the equation of a plane, in $a,b,c$.
Once that you know three points in it, with integer coordinates, ${bf v}_{bf 0},{bf v}_{bf 1},{bf v}_{bf 2} $, from ${bf v}_{bf 1}-{bf v}_{bf 0}$ and ${bf v}_{bf 2}-{bf v}_{bf 0}$ you can determine two vectors ${bf u}_{bf 1},{bf u}_{bf 2} $ having components with $gcd=1$.
Then all the solutions will be given by
$$
{bf v} = {bf v}_{bf 0} + n,{bf u}_{bf 1} + m,{bf u}_2 quad left| {;{rm integers};n,m} right.
$$
The ${bf u}$ vectors can be more easily determined considering the parallel plane through the origin (the "homogeneous" solution).
Therefore consider
$$
6a + 9b + 20c = 0
$$
here ${bf v}_0 = left( {0,0,0} right)$ and ${bf u}_{bf 1} = left( {3, - 2,0} right)quad {bf u}_{bf 2} = left( {10,0, - 3} right)$ follow immediately by putting one of the variables at zero.
Then we can easily find a "particular" solution by putting, e.g., $b=0$ and achieving
$$
6a + 9b + 20c = 16quad to quad 6a + 0 + 20c = 16quad to quad 3a + 0 + 10c = 8quad to quad {bf v}_{bf p} = left( {6,0, - 1} right)
$$
The solution is therefore
${bf v} = {bf v}_{bf p} + n,{bf u}_{bf 1} + m,{bf u}_2quad$ that is: $quad
left{ matrix{
a = 6 + 3n + 10m hfill cr
b = - 2n hfill cr
c = - 1 - 3m hfill cr} right.$
In fact: $quad16 = 6a + 9b + 20c = 16 + 0n + 0m$
$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%2f1824353%2fhow-to-find-all-positive-integer-solutions-of-a-diophantine-equation%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$
Consider $6a + 9b + 20c = 16$ as the equation of a plane, in $a,b,c$.
Once that you know three points in it, with integer coordinates, ${bf v}_{bf 0},{bf v}_{bf 1},{bf v}_{bf 2} $, from ${bf v}_{bf 1}-{bf v}_{bf 0}$ and ${bf v}_{bf 2}-{bf v}_{bf 0}$ you can determine two vectors ${bf u}_{bf 1},{bf u}_{bf 2} $ having components with $gcd=1$.
Then all the solutions will be given by
$$
{bf v} = {bf v}_{bf 0} + n,{bf u}_{bf 1} + m,{bf u}_2 quad left| {;{rm integers};n,m} right.
$$
The ${bf u}$ vectors can be more easily determined considering the parallel plane through the origin (the "homogeneous" solution).
Therefore consider
$$
6a + 9b + 20c = 0
$$
here ${bf v}_0 = left( {0,0,0} right)$ and ${bf u}_{bf 1} = left( {3, - 2,0} right)quad {bf u}_{bf 2} = left( {10,0, - 3} right)$ follow immediately by putting one of the variables at zero.
Then we can easily find a "particular" solution by putting, e.g., $b=0$ and achieving
$$
6a + 9b + 20c = 16quad to quad 6a + 0 + 20c = 16quad to quad 3a + 0 + 10c = 8quad to quad {bf v}_{bf p} = left( {6,0, - 1} right)
$$
The solution is therefore
${bf v} = {bf v}_{bf p} + n,{bf u}_{bf 1} + m,{bf u}_2quad$ that is: $quad
left{ matrix{
a = 6 + 3n + 10m hfill cr
b = - 2n hfill cr
c = - 1 - 3m hfill cr} right.$
In fact: $quad16 = 6a + 9b + 20c = 16 + 0n + 0m$
$endgroup$
add a comment |
$begingroup$
Consider $6a + 9b + 20c = 16$ as the equation of a plane, in $a,b,c$.
Once that you know three points in it, with integer coordinates, ${bf v}_{bf 0},{bf v}_{bf 1},{bf v}_{bf 2} $, from ${bf v}_{bf 1}-{bf v}_{bf 0}$ and ${bf v}_{bf 2}-{bf v}_{bf 0}$ you can determine two vectors ${bf u}_{bf 1},{bf u}_{bf 2} $ having components with $gcd=1$.
Then all the solutions will be given by
$$
{bf v} = {bf v}_{bf 0} + n,{bf u}_{bf 1} + m,{bf u}_2 quad left| {;{rm integers};n,m} right.
$$
The ${bf u}$ vectors can be more easily determined considering the parallel plane through the origin (the "homogeneous" solution).
Therefore consider
$$
6a + 9b + 20c = 0
$$
here ${bf v}_0 = left( {0,0,0} right)$ and ${bf u}_{bf 1} = left( {3, - 2,0} right)quad {bf u}_{bf 2} = left( {10,0, - 3} right)$ follow immediately by putting one of the variables at zero.
Then we can easily find a "particular" solution by putting, e.g., $b=0$ and achieving
$$
6a + 9b + 20c = 16quad to quad 6a + 0 + 20c = 16quad to quad 3a + 0 + 10c = 8quad to quad {bf v}_{bf p} = left( {6,0, - 1} right)
$$
The solution is therefore
${bf v} = {bf v}_{bf p} + n,{bf u}_{bf 1} + m,{bf u}_2quad$ that is: $quad
left{ matrix{
a = 6 + 3n + 10m hfill cr
b = - 2n hfill cr
c = - 1 - 3m hfill cr} right.$
In fact: $quad16 = 6a + 9b + 20c = 16 + 0n + 0m$
$endgroup$
add a comment |
$begingroup$
Consider $6a + 9b + 20c = 16$ as the equation of a plane, in $a,b,c$.
Once that you know three points in it, with integer coordinates, ${bf v}_{bf 0},{bf v}_{bf 1},{bf v}_{bf 2} $, from ${bf v}_{bf 1}-{bf v}_{bf 0}$ and ${bf v}_{bf 2}-{bf v}_{bf 0}$ you can determine two vectors ${bf u}_{bf 1},{bf u}_{bf 2} $ having components with $gcd=1$.
Then all the solutions will be given by
$$
{bf v} = {bf v}_{bf 0} + n,{bf u}_{bf 1} + m,{bf u}_2 quad left| {;{rm integers};n,m} right.
$$
The ${bf u}$ vectors can be more easily determined considering the parallel plane through the origin (the "homogeneous" solution).
Therefore consider
$$
6a + 9b + 20c = 0
$$
here ${bf v}_0 = left( {0,0,0} right)$ and ${bf u}_{bf 1} = left( {3, - 2,0} right)quad {bf u}_{bf 2} = left( {10,0, - 3} right)$ follow immediately by putting one of the variables at zero.
Then we can easily find a "particular" solution by putting, e.g., $b=0$ and achieving
$$
6a + 9b + 20c = 16quad to quad 6a + 0 + 20c = 16quad to quad 3a + 0 + 10c = 8quad to quad {bf v}_{bf p} = left( {6,0, - 1} right)
$$
The solution is therefore
${bf v} = {bf v}_{bf p} + n,{bf u}_{bf 1} + m,{bf u}_2quad$ that is: $quad
left{ matrix{
a = 6 + 3n + 10m hfill cr
b = - 2n hfill cr
c = - 1 - 3m hfill cr} right.$
In fact: $quad16 = 6a + 9b + 20c = 16 + 0n + 0m$
$endgroup$
Consider $6a + 9b + 20c = 16$ as the equation of a plane, in $a,b,c$.
Once that you know three points in it, with integer coordinates, ${bf v}_{bf 0},{bf v}_{bf 1},{bf v}_{bf 2} $, from ${bf v}_{bf 1}-{bf v}_{bf 0}$ and ${bf v}_{bf 2}-{bf v}_{bf 0}$ you can determine two vectors ${bf u}_{bf 1},{bf u}_{bf 2} $ having components with $gcd=1$.
Then all the solutions will be given by
$$
{bf v} = {bf v}_{bf 0} + n,{bf u}_{bf 1} + m,{bf u}_2 quad left| {;{rm integers};n,m} right.
$$
The ${bf u}$ vectors can be more easily determined considering the parallel plane through the origin (the "homogeneous" solution).
Therefore consider
$$
6a + 9b + 20c = 0
$$
here ${bf v}_0 = left( {0,0,0} right)$ and ${bf u}_{bf 1} = left( {3, - 2,0} right)quad {bf u}_{bf 2} = left( {10,0, - 3} right)$ follow immediately by putting one of the variables at zero.
Then we can easily find a "particular" solution by putting, e.g., $b=0$ and achieving
$$
6a + 9b + 20c = 16quad to quad 6a + 0 + 20c = 16quad to quad 3a + 0 + 10c = 8quad to quad {bf v}_{bf p} = left( {6,0, - 1} right)
$$
The solution is therefore
${bf v} = {bf v}_{bf p} + n,{bf u}_{bf 1} + m,{bf u}_2quad$ that is: $quad
left{ matrix{
a = 6 + 3n + 10m hfill cr
b = - 2n hfill cr
c = - 1 - 3m hfill cr} right.$
In fact: $quad16 = 6a + 9b + 20c = 16 + 0n + 0m$
answered Jun 13 '16 at 14:32
G CabG Cab
20.4k31341
20.4k31341
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%2f1824353%2fhow-to-find-all-positive-integer-solutions-of-a-diophantine-equation%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
1
$begingroup$
I didn't read your solution but it came to me that since the coefficient of $c$ is 20, a, b, c, can not all be positive. If they were all positive integers, $a, b, cgeq 1$ which means, $6a+9b+20c geq 35>20$.
$endgroup$
– zxcvber
Jun 13 '16 at 11:40
$begingroup$
See here for a solution (replace $16$ by $-2$).
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:42
$begingroup$
@zxcvber The OP asked "how do i got the positive ans", which I think means "how can I get the solutions, in case the answer to solvability is positive". So we may be looking at integer solutions.
$endgroup$
– Dietrich Burde
Jun 13 '16 at 11:48
$begingroup$
I have no better idea than to determine the solution over $mathbb{Z}^3$ and then restricting to $(a,b,c) > 0$.
$endgroup$
– mvw
Jun 13 '16 at 12:03
$begingroup$
Have you inserted your solution into the original equation to verify it?
$endgroup$
– mvw
Jun 13 '16 at 12:03