Distinct prime number solution of an equation












1












$begingroup$


I am trying to solve the following question:



$$textrm{Find all distinct prime numbers } p, q textrm{ and } r textrm{ such that}$$
$$3p^4-5q^4-4r^2=26$$



Progress:



$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5, q = 3, r = 19$



My Attempt:



Let $p$ be a prime number. Then



$$p^4 equiv p^2 equiv 1(p geq 5), 3(p = 3), 4(p = 2) mod{6}$$



First notice in the equation, neither $p$ nor $q$ can be $2$ as $p$, $q$ and $r$ are distinct.
$$3times(1, 3)-5times(1, 3)-4times(1, 3, 4) equiv 2 mod{6}$$
Possible solutions would be
$$begin{align}
3times1-5times3-4times1&equiv\
3times1-5times3-4times4&equiv\
3times3-5times3-4times1&equiv\
3times3-5times3-4times4&equiv2mod{6}
end{align}$$

So $q equiv 3 mod{6} Rightarrow q = 3$
(And $p, r$ is not $3$)
Trying $p = 2$ and $r = 2$ shows that they don't work.
Therefore:
$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5$, $q = 3$, $r = 19$
And indeed a computer search agrees with this.



But how to proceed?

Please help, thank you for reading <3



Gareth










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    Try reducing the equation modulo $5$.
    $endgroup$
    – B. Goddard
    Jan 19 at 12:53










  • $begingroup$
    Do you want to answer it so you get the correct answer? Thanks a lot <3
    $endgroup$
    – Gareth Ma
    Jan 19 at 14:49
















1












$begingroup$


I am trying to solve the following question:



$$textrm{Find all distinct prime numbers } p, q textrm{ and } r textrm{ such that}$$
$$3p^4-5q^4-4r^2=26$$



Progress:



$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5, q = 3, r = 19$



My Attempt:



Let $p$ be a prime number. Then



$$p^4 equiv p^2 equiv 1(p geq 5), 3(p = 3), 4(p = 2) mod{6}$$



First notice in the equation, neither $p$ nor $q$ can be $2$ as $p$, $q$ and $r$ are distinct.
$$3times(1, 3)-5times(1, 3)-4times(1, 3, 4) equiv 2 mod{6}$$
Possible solutions would be
$$begin{align}
3times1-5times3-4times1&equiv\
3times1-5times3-4times4&equiv\
3times3-5times3-4times1&equiv\
3times3-5times3-4times4&equiv2mod{6}
end{align}$$

So $q equiv 3 mod{6} Rightarrow q = 3$
(And $p, r$ is not $3$)
Trying $p = 2$ and $r = 2$ shows that they don't work.
Therefore:
$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5$, $q = 3$, $r = 19$
And indeed a computer search agrees with this.



But how to proceed?

Please help, thank you for reading <3



Gareth










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    Try reducing the equation modulo $5$.
    $endgroup$
    – B. Goddard
    Jan 19 at 12:53










  • $begingroup$
    Do you want to answer it so you get the correct answer? Thanks a lot <3
    $endgroup$
    – Gareth Ma
    Jan 19 at 14:49














1












1








1





$begingroup$


I am trying to solve the following question:



$$textrm{Find all distinct prime numbers } p, q textrm{ and } r textrm{ such that}$$
$$3p^4-5q^4-4r^2=26$$



Progress:



$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5, q = 3, r = 19$



My Attempt:



Let $p$ be a prime number. Then



$$p^4 equiv p^2 equiv 1(p geq 5), 3(p = 3), 4(p = 2) mod{6}$$



First notice in the equation, neither $p$ nor $q$ can be $2$ as $p$, $q$ and $r$ are distinct.
$$3times(1, 3)-5times(1, 3)-4times(1, 3, 4) equiv 2 mod{6}$$
Possible solutions would be
$$begin{align}
3times1-5times3-4times1&equiv\
3times1-5times3-4times4&equiv\
3times3-5times3-4times1&equiv\
3times3-5times3-4times4&equiv2mod{6}
end{align}$$

So $q equiv 3 mod{6} Rightarrow q = 3$
(And $p, r$ is not $3$)
Trying $p = 2$ and $r = 2$ shows that they don't work.
Therefore:
$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5$, $q = 3$, $r = 19$
And indeed a computer search agrees with this.



But how to proceed?

Please help, thank you for reading <3



Gareth










share|cite|improve this question











$endgroup$




I am trying to solve the following question:



$$textrm{Find all distinct prime numbers } p, q textrm{ and } r textrm{ such that}$$
$$3p^4-5q^4-4r^2=26$$



Progress:



$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5, q = 3, r = 19$



My Attempt:



Let $p$ be a prime number. Then



$$p^4 equiv p^2 equiv 1(p geq 5), 3(p = 3), 4(p = 2) mod{6}$$



First notice in the equation, neither $p$ nor $q$ can be $2$ as $p$, $q$ and $r$ are distinct.
$$3times(1, 3)-5times(1, 3)-4times(1, 3, 4) equiv 2 mod{6}$$
Possible solutions would be
$$begin{align}
3times1-5times3-4times1&equiv\
3times1-5times3-4times4&equiv\
3times3-5times3-4times1&equiv\
3times3-5times3-4times4&equiv2mod{6}
end{align}$$

So $q equiv 3 mod{6} Rightarrow q = 3$
(And $p, r$ is not $3$)
Trying $p = 2$ and $r = 2$ shows that they don't work.
Therefore:
$$p geq 5, q = 3, r geq 5$$
With these constraints, I found a solution: $p = 5$, $q = 3$, $r = 19$
And indeed a computer search agrees with this.



But how to proceed?

Please help, thank you for reading <3



Gareth







elementary-number-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 19 at 12:44









mrtaurho

5,58051440




5,58051440










asked Jan 19 at 12:30









Gareth MaGareth Ma

526215




526215








  • 2




    $begingroup$
    Try reducing the equation modulo $5$.
    $endgroup$
    – B. Goddard
    Jan 19 at 12:53










  • $begingroup$
    Do you want to answer it so you get the correct answer? Thanks a lot <3
    $endgroup$
    – Gareth Ma
    Jan 19 at 14:49














  • 2




    $begingroup$
    Try reducing the equation modulo $5$.
    $endgroup$
    – B. Goddard
    Jan 19 at 12:53










  • $begingroup$
    Do you want to answer it so you get the correct answer? Thanks a lot <3
    $endgroup$
    – Gareth Ma
    Jan 19 at 14:49








2




2




$begingroup$
Try reducing the equation modulo $5$.
$endgroup$
– B. Goddard
Jan 19 at 12:53




$begingroup$
Try reducing the equation modulo $5$.
$endgroup$
– B. Goddard
Jan 19 at 12:53












$begingroup$
Do you want to answer it so you get the correct answer? Thanks a lot <3
$endgroup$
– Gareth Ma
Jan 19 at 14:49




$begingroup$
Do you want to answer it so you get the correct answer? Thanks a lot <3
$endgroup$
– Gareth Ma
Jan 19 at 14:49










2 Answers
2






active

oldest

votes


















1












$begingroup$

If $p$ is not $5$, then reducing the equation modulo $5$ gives (using Fermat's little theorem)



$$3+r^2 equiv 1 pmod{5}$$



or $$r^2 equiv -2 pmod{5}$$



which has no solution. So $p=5,$ and size considerations force $q<5$, so $q=2$ or $3$. If $q=2$ then $3p^4$ is forced to be even, which it isn't, so $q=3$. Now solve



$$3cdot 5^4-5cdot 3^4 -4r^2 = 26$$ to get $r=19.$






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    $$3p^4=5q^4+4r^2+26$$



    If $sne 5$ is an odd prime then $s^2$ ends with $1$ or $9$, and $s^4$ ends with $1.$



    If $r>5$ or $r=3$ then the right side ends with $0$ or $7$ (which is impossible) so $5mid 3p^4implies p=5$. So the left side is odd and thus right also. But this can be only if $q=2$. Then $$ 3cdot 5^4 -5cdot 2^4 -26= 4r^2implies r=...$$



    If $r=2$ we have $3p^4=5q^4+42 implies q=3 implies p=...$



    If $r=5$ we have $3p^4=5q^4+126 implies q=3 implies p=...$






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      "This can be only if q=2" I think it is the exact opposite?
      $endgroup$
      – Gareth Ma
      Jan 20 at 1:53













    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%2f3079310%2fdistinct-prime-number-solution-of-an-equation%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









    1












    $begingroup$

    If $p$ is not $5$, then reducing the equation modulo $5$ gives (using Fermat's little theorem)



    $$3+r^2 equiv 1 pmod{5}$$



    or $$r^2 equiv -2 pmod{5}$$



    which has no solution. So $p=5,$ and size considerations force $q<5$, so $q=2$ or $3$. If $q=2$ then $3p^4$ is forced to be even, which it isn't, so $q=3$. Now solve



    $$3cdot 5^4-5cdot 3^4 -4r^2 = 26$$ to get $r=19.$






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      If $p$ is not $5$, then reducing the equation modulo $5$ gives (using Fermat's little theorem)



      $$3+r^2 equiv 1 pmod{5}$$



      or $$r^2 equiv -2 pmod{5}$$



      which has no solution. So $p=5,$ and size considerations force $q<5$, so $q=2$ or $3$. If $q=2$ then $3p^4$ is forced to be even, which it isn't, so $q=3$. Now solve



      $$3cdot 5^4-5cdot 3^4 -4r^2 = 26$$ to get $r=19.$






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        If $p$ is not $5$, then reducing the equation modulo $5$ gives (using Fermat's little theorem)



        $$3+r^2 equiv 1 pmod{5}$$



        or $$r^2 equiv -2 pmod{5}$$



        which has no solution. So $p=5,$ and size considerations force $q<5$, so $q=2$ or $3$. If $q=2$ then $3p^4$ is forced to be even, which it isn't, so $q=3$. Now solve



        $$3cdot 5^4-5cdot 3^4 -4r^2 = 26$$ to get $r=19.$






        share|cite|improve this answer









        $endgroup$



        If $p$ is not $5$, then reducing the equation modulo $5$ gives (using Fermat's little theorem)



        $$3+r^2 equiv 1 pmod{5}$$



        or $$r^2 equiv -2 pmod{5}$$



        which has no solution. So $p=5,$ and size considerations force $q<5$, so $q=2$ or $3$. If $q=2$ then $3p^4$ is forced to be even, which it isn't, so $q=3$. Now solve



        $$3cdot 5^4-5cdot 3^4 -4r^2 = 26$$ to get $r=19.$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 19 at 15:11









        B. GoddardB. Goddard

        19.3k21441




        19.3k21441























            1












            $begingroup$

            $$3p^4=5q^4+4r^2+26$$



            If $sne 5$ is an odd prime then $s^2$ ends with $1$ or $9$, and $s^4$ ends with $1.$



            If $r>5$ or $r=3$ then the right side ends with $0$ or $7$ (which is impossible) so $5mid 3p^4implies p=5$. So the left side is odd and thus right also. But this can be only if $q=2$. Then $$ 3cdot 5^4 -5cdot 2^4 -26= 4r^2implies r=...$$



            If $r=2$ we have $3p^4=5q^4+42 implies q=3 implies p=...$



            If $r=5$ we have $3p^4=5q^4+126 implies q=3 implies p=...$






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              "This can be only if q=2" I think it is the exact opposite?
              $endgroup$
              – Gareth Ma
              Jan 20 at 1:53


















            1












            $begingroup$

            $$3p^4=5q^4+4r^2+26$$



            If $sne 5$ is an odd prime then $s^2$ ends with $1$ or $9$, and $s^4$ ends with $1.$



            If $r>5$ or $r=3$ then the right side ends with $0$ or $7$ (which is impossible) so $5mid 3p^4implies p=5$. So the left side is odd and thus right also. But this can be only if $q=2$. Then $$ 3cdot 5^4 -5cdot 2^4 -26= 4r^2implies r=...$$



            If $r=2$ we have $3p^4=5q^4+42 implies q=3 implies p=...$



            If $r=5$ we have $3p^4=5q^4+126 implies q=3 implies p=...$






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              "This can be only if q=2" I think it is the exact opposite?
              $endgroup$
              – Gareth Ma
              Jan 20 at 1:53
















            1












            1








            1





            $begingroup$

            $$3p^4=5q^4+4r^2+26$$



            If $sne 5$ is an odd prime then $s^2$ ends with $1$ or $9$, and $s^4$ ends with $1.$



            If $r>5$ or $r=3$ then the right side ends with $0$ or $7$ (which is impossible) so $5mid 3p^4implies p=5$. So the left side is odd and thus right also. But this can be only if $q=2$. Then $$ 3cdot 5^4 -5cdot 2^4 -26= 4r^2implies r=...$$



            If $r=2$ we have $3p^4=5q^4+42 implies q=3 implies p=...$



            If $r=5$ we have $3p^4=5q^4+126 implies q=3 implies p=...$






            share|cite|improve this answer









            $endgroup$



            $$3p^4=5q^4+4r^2+26$$



            If $sne 5$ is an odd prime then $s^2$ ends with $1$ or $9$, and $s^4$ ends with $1.$



            If $r>5$ or $r=3$ then the right side ends with $0$ or $7$ (which is impossible) so $5mid 3p^4implies p=5$. So the left side is odd and thus right also. But this can be only if $q=2$. Then $$ 3cdot 5^4 -5cdot 2^4 -26= 4r^2implies r=...$$



            If $r=2$ we have $3p^4=5q^4+42 implies q=3 implies p=...$



            If $r=5$ we have $3p^4=5q^4+126 implies q=3 implies p=...$







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 19 at 15:47









            greedoidgreedoid

            45k1157112




            45k1157112












            • $begingroup$
              "This can be only if q=2" I think it is the exact opposite?
              $endgroup$
              – Gareth Ma
              Jan 20 at 1:53




















            • $begingroup$
              "This can be only if q=2" I think it is the exact opposite?
              $endgroup$
              – Gareth Ma
              Jan 20 at 1:53


















            $begingroup$
            "This can be only if q=2" I think it is the exact opposite?
            $endgroup$
            – Gareth Ma
            Jan 20 at 1:53






            $begingroup$
            "This can be only if q=2" I think it is the exact opposite?
            $endgroup$
            – Gareth Ma
            Jan 20 at 1:53




















            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%2f3079310%2fdistinct-prime-number-solution-of-an-equation%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

            'app-layout' is not a known element: how to share Component with different Modules

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            WPF add header to Image with URL pettitions [duplicate]