Find integer solutions to the equation $2^x+3^y=z^2$
$begingroup$
Here's my approach:
Since $2^x$ is always even we can rewrite it as $2k$,
and similarly $3^y$ is always odd so we can write it as $2m+1$.
The sum is equated to a square so $z^2=4r+1$ (it is always an odd square since odd +even is always odd) but after this I do not know what to do.
number-theory
$endgroup$
add a comment |
$begingroup$
Here's my approach:
Since $2^x$ is always even we can rewrite it as $2k$,
and similarly $3^y$ is always odd so we can write it as $2m+1$.
The sum is equated to a square so $z^2=4r+1$ (it is always an odd square since odd +even is always odd) but after this I do not know what to do.
number-theory
$endgroup$
2
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
1
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07
add a comment |
$begingroup$
Here's my approach:
Since $2^x$ is always even we can rewrite it as $2k$,
and similarly $3^y$ is always odd so we can write it as $2m+1$.
The sum is equated to a square so $z^2=4r+1$ (it is always an odd square since odd +even is always odd) but after this I do not know what to do.
number-theory
$endgroup$
Here's my approach:
Since $2^x$ is always even we can rewrite it as $2k$,
and similarly $3^y$ is always odd so we can write it as $2m+1$.
The sum is equated to a square so $z^2=4r+1$ (it is always an odd square since odd +even is always odd) but after this I do not know what to do.
number-theory
number-theory
edited Dec 12 '18 at 17:08
eyeballfrog
6,228629
6,228629
asked Dec 12 '18 at 16:59
mtommtom
254
254
2
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
1
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07
add a comment |
2
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
1
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07
2
2
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
1
1
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Hint: Say $y>0$ then $3mid 3^y$, using $pmod 3$ we see that $x$ must be even so $x=2t$ and now we have $$3^y = (z-2^t)(z+2^t)$$
Now $z-2^t = 3^m$ and $z+2^t = 3^n$ so $$2^{t+1} = 3^m+3^n = 3^m(1+3^{n-m})$$
and so $m=0$ and so on...
$endgroup$
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
add a comment |
$begingroup$
First, deal with the small cases: $x=0, x=1$ or $y leq 2$.
Reduce the equation modulo some numbers to infer some properties of $x$ or $y$, eg if $x>1$, $y$ is even. Then you can factor $2^x=z^2-3^y$, and since it is a power of two the smallest factor must divide the other and must divide $2^x$. Then it is up to you.
$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%2f3036943%2ffind-integer-solutions-to-the-equation-2x3y-z2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Hint: Say $y>0$ then $3mid 3^y$, using $pmod 3$ we see that $x$ must be even so $x=2t$ and now we have $$3^y = (z-2^t)(z+2^t)$$
Now $z-2^t = 3^m$ and $z+2^t = 3^n$ so $$2^{t+1} = 3^m+3^n = 3^m(1+3^{n-m})$$
and so $m=0$ and so on...
$endgroup$
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
add a comment |
$begingroup$
Hint: Say $y>0$ then $3mid 3^y$, using $pmod 3$ we see that $x$ must be even so $x=2t$ and now we have $$3^y = (z-2^t)(z+2^t)$$
Now $z-2^t = 3^m$ and $z+2^t = 3^n$ so $$2^{t+1} = 3^m+3^n = 3^m(1+3^{n-m})$$
and so $m=0$ and so on...
$endgroup$
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
add a comment |
$begingroup$
Hint: Say $y>0$ then $3mid 3^y$, using $pmod 3$ we see that $x$ must be even so $x=2t$ and now we have $$3^y = (z-2^t)(z+2^t)$$
Now $z-2^t = 3^m$ and $z+2^t = 3^n$ so $$2^{t+1} = 3^m+3^n = 3^m(1+3^{n-m})$$
and so $m=0$ and so on...
$endgroup$
Hint: Say $y>0$ then $3mid 3^y$, using $pmod 3$ we see that $x$ must be even so $x=2t$ and now we have $$3^y = (z-2^t)(z+2^t)$$
Now $z-2^t = 3^m$ and $z+2^t = 3^n$ so $$2^{t+1} = 3^m+3^n = 3^m(1+3^{n-m})$$
and so $m=0$ and so on...
edited Dec 12 '18 at 17:10
answered Dec 12 '18 at 17:08
greedoidgreedoid
44.2k1155110
44.2k1155110
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
add a comment |
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
2
2
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
$begingroup$
Watch out for $2^3+3^0=3^2$ though.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:09
add a comment |
$begingroup$
First, deal with the small cases: $x=0, x=1$ or $y leq 2$.
Reduce the equation modulo some numbers to infer some properties of $x$ or $y$, eg if $x>1$, $y$ is even. Then you can factor $2^x=z^2-3^y$, and since it is a power of two the smallest factor must divide the other and must divide $2^x$. Then it is up to you.
$endgroup$
add a comment |
$begingroup$
First, deal with the small cases: $x=0, x=1$ or $y leq 2$.
Reduce the equation modulo some numbers to infer some properties of $x$ or $y$, eg if $x>1$, $y$ is even. Then you can factor $2^x=z^2-3^y$, and since it is a power of two the smallest factor must divide the other and must divide $2^x$. Then it is up to you.
$endgroup$
add a comment |
$begingroup$
First, deal with the small cases: $x=0, x=1$ or $y leq 2$.
Reduce the equation modulo some numbers to infer some properties of $x$ or $y$, eg if $x>1$, $y$ is even. Then you can factor $2^x=z^2-3^y$, and since it is a power of two the smallest factor must divide the other and must divide $2^x$. Then it is up to you.
$endgroup$
First, deal with the small cases: $x=0, x=1$ or $y leq 2$.
Reduce the equation modulo some numbers to infer some properties of $x$ or $y$, eg if $x>1$, $y$ is even. Then you can factor $2^x=z^2-3^y$, and since it is a power of two the smallest factor must divide the other and must divide $2^x$. Then it is up to you.
answered Dec 12 '18 at 17:11
MindlackMindlack
4,740210
4,740210
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%2f3036943%2ffind-integer-solutions-to-the-equation-2x3y-z2%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
2
$begingroup$
First thing that comes to my mind is difference of squares: If $x$ is even, say $x=2k$, then $3^y=z^2-2^{2k}=(z+2^k)(z-2^k)$ and it becomes a factoring problem. Using a modulo $3$ analysis, you can argue that $x$ must be even for $y>0$.
$endgroup$
– SmileyCraft
Dec 12 '18 at 17:06
1
$begingroup$
Please use mathjax the next time you write math.
$endgroup$
– harshit54
Dec 12 '18 at 17:07