Solutions of $2^a+5^b=c^2$












10












$begingroup$


I tried to solve this question using this way:
$a$ must be even, because if it's odd the equation have no solution. Let $a=2n$, so
begin{align*}
2^{2n}+5^b &= c^2 \
(2^n)^2+5^b &= c^2 \
5^b &= c^2-(2^n)^2 \
5^b &= (c-2^n)(c+2^n)
end{align*}



Only one of $c-2^n$ and $c+2^n$ can be divided by 5, $c-2^n neq c+2^n$, so $c-2^n=1$ and $c+2^n=5^b$.
From this equations, I got $1+2^{n+1}=5^b$.
But I don't know how to continue.










share|cite|improve this question











$endgroup$












  • $begingroup$
    @Randall: If $a$ is odd, then the solution fails mod $4$.
    $endgroup$
    – JavaMan
    Jan 2 at 4:32






  • 1




    $begingroup$
    a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 4:32












  • $begingroup$
    Got it. My fault.
    $endgroup$
    – Randall
    Jan 2 at 4:33










  • $begingroup$
    @Randall: Took me a second to see it too!
    $endgroup$
    – JavaMan
    Jan 2 at 4:33








  • 6




    $begingroup$
    Well, you could use Mihăilescu's theorem.
    $endgroup$
    – Robert Israel
    Jan 2 at 4:38


















10












$begingroup$


I tried to solve this question using this way:
$a$ must be even, because if it's odd the equation have no solution. Let $a=2n$, so
begin{align*}
2^{2n}+5^b &= c^2 \
(2^n)^2+5^b &= c^2 \
5^b &= c^2-(2^n)^2 \
5^b &= (c-2^n)(c+2^n)
end{align*}



Only one of $c-2^n$ and $c+2^n$ can be divided by 5, $c-2^n neq c+2^n$, so $c-2^n=1$ and $c+2^n=5^b$.
From this equations, I got $1+2^{n+1}=5^b$.
But I don't know how to continue.










share|cite|improve this question











$endgroup$












  • $begingroup$
    @Randall: If $a$ is odd, then the solution fails mod $4$.
    $endgroup$
    – JavaMan
    Jan 2 at 4:32






  • 1




    $begingroup$
    a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 4:32












  • $begingroup$
    Got it. My fault.
    $endgroup$
    – Randall
    Jan 2 at 4:33










  • $begingroup$
    @Randall: Took me a second to see it too!
    $endgroup$
    – JavaMan
    Jan 2 at 4:33








  • 6




    $begingroup$
    Well, you could use Mihăilescu's theorem.
    $endgroup$
    – Robert Israel
    Jan 2 at 4:38
















10












10








10


5



$begingroup$


I tried to solve this question using this way:
$a$ must be even, because if it's odd the equation have no solution. Let $a=2n$, so
begin{align*}
2^{2n}+5^b &= c^2 \
(2^n)^2+5^b &= c^2 \
5^b &= c^2-(2^n)^2 \
5^b &= (c-2^n)(c+2^n)
end{align*}



Only one of $c-2^n$ and $c+2^n$ can be divided by 5, $c-2^n neq c+2^n$, so $c-2^n=1$ and $c+2^n=5^b$.
From this equations, I got $1+2^{n+1}=5^b$.
But I don't know how to continue.










share|cite|improve this question











$endgroup$




I tried to solve this question using this way:
$a$ must be even, because if it's odd the equation have no solution. Let $a=2n$, so
begin{align*}
2^{2n}+5^b &= c^2 \
(2^n)^2+5^b &= c^2 \
5^b &= c^2-(2^n)^2 \
5^b &= (c-2^n)(c+2^n)
end{align*}



Only one of $c-2^n$ and $c+2^n$ can be divided by 5, $c-2^n neq c+2^n$, so $c-2^n=1$ and $c+2^n=5^b$.
From this equations, I got $1+2^{n+1}=5^b$.
But I don't know how to continue.







number-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 2 at 4:39









Robert Israel

319k23209459




319k23209459










asked Jan 2 at 4:25









Agung Izzul HaqAgung Izzul Haq

563




563












  • $begingroup$
    @Randall: If $a$ is odd, then the solution fails mod $4$.
    $endgroup$
    – JavaMan
    Jan 2 at 4:32






  • 1




    $begingroup$
    a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 4:32












  • $begingroup$
    Got it. My fault.
    $endgroup$
    – Randall
    Jan 2 at 4:33










  • $begingroup$
    @Randall: Took me a second to see it too!
    $endgroup$
    – JavaMan
    Jan 2 at 4:33








  • 6




    $begingroup$
    Well, you could use Mihăilescu's theorem.
    $endgroup$
    – Robert Israel
    Jan 2 at 4:38




















  • $begingroup$
    @Randall: If $a$ is odd, then the solution fails mod $4$.
    $endgroup$
    – JavaMan
    Jan 2 at 4:32






  • 1




    $begingroup$
    a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 4:32












  • $begingroup$
    Got it. My fault.
    $endgroup$
    – Randall
    Jan 2 at 4:33










  • $begingroup$
    @Randall: Took me a second to see it too!
    $endgroup$
    – JavaMan
    Jan 2 at 4:33








  • 6




    $begingroup$
    Well, you could use Mihăilescu's theorem.
    $endgroup$
    – Robert Israel
    Jan 2 at 4:38


















$begingroup$
@Randall: If $a$ is odd, then the solution fails mod $4$.
$endgroup$
– JavaMan
Jan 2 at 4:32




$begingroup$
@Randall: If $a$ is odd, then the solution fails mod $4$.
$endgroup$
– JavaMan
Jan 2 at 4:32




1




1




$begingroup$
a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
$endgroup$
– Agung Izzul Haq
Jan 2 at 4:32






$begingroup$
a, b, and c are integers.If $a$ is odd, then the last digit of $2^a$ is 2 or 8. Added by 5, we got 7 or 3. There is no integer $c$ such that the last digit of $c^2$ is 7 or 3. I forgot to state that the solutions must be integer.
$endgroup$
– Agung Izzul Haq
Jan 2 at 4:32














$begingroup$
Got it. My fault.
$endgroup$
– Randall
Jan 2 at 4:33




$begingroup$
Got it. My fault.
$endgroup$
– Randall
Jan 2 at 4:33












$begingroup$
@Randall: Took me a second to see it too!
$endgroup$
– JavaMan
Jan 2 at 4:33






$begingroup$
@Randall: Took me a second to see it too!
$endgroup$
– JavaMan
Jan 2 at 4:33






6




6




$begingroup$
Well, you could use Mihăilescu's theorem.
$endgroup$
– Robert Israel
Jan 2 at 4:38






$begingroup$
Well, you could use Mihăilescu's theorem.
$endgroup$
– Robert Israel
Jan 2 at 4:38












1 Answer
1






active

oldest

votes


















3












$begingroup$

Continue from your work, we solve $$1+2^{n+1} = 5^b$$
This special case of Catalan equation is easy: $2$ is a primitive root of $25$, hence a primitive root for any $5^b$. Therefore
$$2^{n+1} equiv -1 pmod{5^b}$$
implies $n+1$ is divisible by $varphi(5^b)/2 = 2(5^{b-1})$, so $n+1 geq 2(5^{b-1})$.
Hence $$5^b geq 1+2^{2(5^{b-1})}$$
the RHS grows far faster than LHS, the inequality only holds when $b=1$.





Therefore all solution to your original equation $2^a+5^b=c^2$ is $(a,b,c)=(2,1,3)$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 9:00










  • $begingroup$
    @AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
    $endgroup$
    – pisco
    Jan 3 at 14:41











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3059139%2fsolutions-of-2a5b-c2%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









3












$begingroup$

Continue from your work, we solve $$1+2^{n+1} = 5^b$$
This special case of Catalan equation is easy: $2$ is a primitive root of $25$, hence a primitive root for any $5^b$. Therefore
$$2^{n+1} equiv -1 pmod{5^b}$$
implies $n+1$ is divisible by $varphi(5^b)/2 = 2(5^{b-1})$, so $n+1 geq 2(5^{b-1})$.
Hence $$5^b geq 1+2^{2(5^{b-1})}$$
the RHS grows far faster than LHS, the inequality only holds when $b=1$.





Therefore all solution to your original equation $2^a+5^b=c^2$ is $(a,b,c)=(2,1,3)$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 9:00










  • $begingroup$
    @AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
    $endgroup$
    – pisco
    Jan 3 at 14:41
















3












$begingroup$

Continue from your work, we solve $$1+2^{n+1} = 5^b$$
This special case of Catalan equation is easy: $2$ is a primitive root of $25$, hence a primitive root for any $5^b$. Therefore
$$2^{n+1} equiv -1 pmod{5^b}$$
implies $n+1$ is divisible by $varphi(5^b)/2 = 2(5^{b-1})$, so $n+1 geq 2(5^{b-1})$.
Hence $$5^b geq 1+2^{2(5^{b-1})}$$
the RHS grows far faster than LHS, the inequality only holds when $b=1$.





Therefore all solution to your original equation $2^a+5^b=c^2$ is $(a,b,c)=(2,1,3)$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 9:00










  • $begingroup$
    @AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
    $endgroup$
    – pisco
    Jan 3 at 14:41














3












3








3





$begingroup$

Continue from your work, we solve $$1+2^{n+1} = 5^b$$
This special case of Catalan equation is easy: $2$ is a primitive root of $25$, hence a primitive root for any $5^b$. Therefore
$$2^{n+1} equiv -1 pmod{5^b}$$
implies $n+1$ is divisible by $varphi(5^b)/2 = 2(5^{b-1})$, so $n+1 geq 2(5^{b-1})$.
Hence $$5^b geq 1+2^{2(5^{b-1})}$$
the RHS grows far faster than LHS, the inequality only holds when $b=1$.





Therefore all solution to your original equation $2^a+5^b=c^2$ is $(a,b,c)=(2,1,3)$.






share|cite|improve this answer









$endgroup$



Continue from your work, we solve $$1+2^{n+1} = 5^b$$
This special case of Catalan equation is easy: $2$ is a primitive root of $25$, hence a primitive root for any $5^b$. Therefore
$$2^{n+1} equiv -1 pmod{5^b}$$
implies $n+1$ is divisible by $varphi(5^b)/2 = 2(5^{b-1})$, so $n+1 geq 2(5^{b-1})$.
Hence $$5^b geq 1+2^{2(5^{b-1})}$$
the RHS grows far faster than LHS, the inequality only holds when $b=1$.





Therefore all solution to your original equation $2^a+5^b=c^2$ is $(a,b,c)=(2,1,3)$.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 2 at 6:32









piscopisco

11.6k21742




11.6k21742












  • $begingroup$
    Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 9:00










  • $begingroup$
    @AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
    $endgroup$
    – pisco
    Jan 3 at 14:41


















  • $begingroup$
    Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
    $endgroup$
    – Agung Izzul Haq
    Jan 2 at 9:00










  • $begingroup$
    @AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
    $endgroup$
    – pisco
    Jan 3 at 14:41
















$begingroup$
Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
$endgroup$
– Agung Izzul Haq
Jan 2 at 9:00




$begingroup$
Another approach. Thanks. But, could you explain why "$2$ is a primitive root of $25$" implies "$2$ is primitive root for any $5^b$"?
$endgroup$
– Agung Izzul Haq
Jan 2 at 9:00












$begingroup$
@AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
$endgroup$
– pisco
Jan 3 at 14:41




$begingroup$
@AgungIzzulHaq The following result is well-known: if $b$ is a primitive root for $p^2$, then $b$ is a primitive root for any $p^n$, $ngeq 2$.
$endgroup$
– pisco
Jan 3 at 14:41


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3059139%2fsolutions-of-2a5b-c2%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith