Solve equation in prime numbers












2















Solve the equation in prime number $$p^3+q^3+1=p^2 q^2.$$




I have found the solutions $(2,3), (3,2)$ and need to prove that there are no other solutions. I think that there is an inequality $p^3+q^3+1leq p^2 q^2$ for $p,q >2 $ but how to prove it.










share|cite|improve this question




















  • 2




    your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
    – dyf
    Nov 9 '18 at 20:36
















2















Solve the equation in prime number $$p^3+q^3+1=p^2 q^2.$$




I have found the solutions $(2,3), (3,2)$ and need to prove that there are no other solutions. I think that there is an inequality $p^3+q^3+1leq p^2 q^2$ for $p,q >2 $ but how to prove it.










share|cite|improve this question




















  • 2




    your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
    – dyf
    Nov 9 '18 at 20:36














2












2








2


1






Solve the equation in prime number $$p^3+q^3+1=p^2 q^2.$$




I have found the solutions $(2,3), (3,2)$ and need to prove that there are no other solutions. I think that there is an inequality $p^3+q^3+1leq p^2 q^2$ for $p,q >2 $ but how to prove it.










share|cite|improve this question
















Solve the equation in prime number $$p^3+q^3+1=p^2 q^2.$$




I have found the solutions $(2,3), (3,2)$ and need to prove that there are no other solutions. I think that there is an inequality $p^3+q^3+1leq p^2 q^2$ for $p,q >2 $ but how to prove it.







elementary-number-theory prime-numbers diophantine-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 4 at 21:49









greedoid

38.6k114797




38.6k114797










asked Nov 9 '18 at 20:29









LeoxLeox

5,2431423




5,2431423








  • 2




    your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
    – dyf
    Nov 9 '18 at 20:36














  • 2




    your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
    – dyf
    Nov 9 '18 at 20:36








2




2




your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
– dyf
Nov 9 '18 at 20:36




your inequality is not right when $p>q^2$, for then $p^3 > p^2 q^2$.
– dyf
Nov 9 '18 at 20:36










2 Answers
2






active

oldest

votes


















6














If $p=q$ we get $2p^3+1=p^4$ so $pmid 1$ which is impossible. So we can assume $pne q$.



Because of simmetry we can also assume that $p>q$.



Now we have $$p^2mid q^3+1 = (q+1)(q^2-q+1)$$



Case 1: $pnot{mid};q+1$, then $$p^2mid q^2-q+1implies p^2leq q^2-q+1<q^2$$
so $p<q$, a contradiction.



Case 2: $pmid q+1$ then $pleq q+1$ so $p=q+1$ (remember that $p>q$, so $pgeq q+1$). So $p$ and $q$ are consecutive primes so one is even, so $q=2$ and $p=3$.






share|cite|improve this answer































    0














    My solution



    Case 1. Let $p mod 3=q mod 3=1$. Then $p^3+q^3+1=3=0 mod 3 neq p^2 q^2=1 mod 3$



    Case 2 $p mod 3=q mod 3=2$. Then $p^3+q^3+1=2+2+1=2 mod 3 neq p^2 q^2=1 mod 3$



    Сase 3. $p mod 3=1, q mod 3=2$. Then $p^3+q^3+1=1+2+1=1 mod 3 neq p^2 q^2=1 cdot 2 =2 mod 3$



    So, must be, say $p=0 mod 3 implies p=3$. We get the equation $q^3+28=9 q^2 $ or $q^3-9 q^2+28=left( q-2 right) left( {q}^{2}-7,q-14 right) $ and $q=2.$ By symmetry another solution is $p=2, q=3.$






    share|cite|improve this answer

















    • 1




      you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
      – Will Jagy
      Nov 9 '18 at 23:14











    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%2f2991909%2fsolve-equation-in-prime-numbers%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









    6














    If $p=q$ we get $2p^3+1=p^4$ so $pmid 1$ which is impossible. So we can assume $pne q$.



    Because of simmetry we can also assume that $p>q$.



    Now we have $$p^2mid q^3+1 = (q+1)(q^2-q+1)$$



    Case 1: $pnot{mid};q+1$, then $$p^2mid q^2-q+1implies p^2leq q^2-q+1<q^2$$
    so $p<q$, a contradiction.



    Case 2: $pmid q+1$ then $pleq q+1$ so $p=q+1$ (remember that $p>q$, so $pgeq q+1$). So $p$ and $q$ are consecutive primes so one is even, so $q=2$ and $p=3$.






    share|cite|improve this answer




























      6














      If $p=q$ we get $2p^3+1=p^4$ so $pmid 1$ which is impossible. So we can assume $pne q$.



      Because of simmetry we can also assume that $p>q$.



      Now we have $$p^2mid q^3+1 = (q+1)(q^2-q+1)$$



      Case 1: $pnot{mid};q+1$, then $$p^2mid q^2-q+1implies p^2leq q^2-q+1<q^2$$
      so $p<q$, a contradiction.



      Case 2: $pmid q+1$ then $pleq q+1$ so $p=q+1$ (remember that $p>q$, so $pgeq q+1$). So $p$ and $q$ are consecutive primes so one is even, so $q=2$ and $p=3$.






      share|cite|improve this answer


























        6












        6








        6






        If $p=q$ we get $2p^3+1=p^4$ so $pmid 1$ which is impossible. So we can assume $pne q$.



        Because of simmetry we can also assume that $p>q$.



        Now we have $$p^2mid q^3+1 = (q+1)(q^2-q+1)$$



        Case 1: $pnot{mid};q+1$, then $$p^2mid q^2-q+1implies p^2leq q^2-q+1<q^2$$
        so $p<q$, a contradiction.



        Case 2: $pmid q+1$ then $pleq q+1$ so $p=q+1$ (remember that $p>q$, so $pgeq q+1$). So $p$ and $q$ are consecutive primes so one is even, so $q=2$ and $p=3$.






        share|cite|improve this answer














        If $p=q$ we get $2p^3+1=p^4$ so $pmid 1$ which is impossible. So we can assume $pne q$.



        Because of simmetry we can also assume that $p>q$.



        Now we have $$p^2mid q^3+1 = (q+1)(q^2-q+1)$$



        Case 1: $pnot{mid};q+1$, then $$p^2mid q^2-q+1implies p^2leq q^2-q+1<q^2$$
        so $p<q$, a contradiction.



        Case 2: $pmid q+1$ then $pleq q+1$ so $p=q+1$ (remember that $p>q$, so $pgeq q+1$). So $p$ and $q$ are consecutive primes so one is even, so $q=2$ and $p=3$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 9 '18 at 21:26

























        answered Nov 9 '18 at 21:20









        greedoidgreedoid

        38.6k114797




        38.6k114797























            0














            My solution



            Case 1. Let $p mod 3=q mod 3=1$. Then $p^3+q^3+1=3=0 mod 3 neq p^2 q^2=1 mod 3$



            Case 2 $p mod 3=q mod 3=2$. Then $p^3+q^3+1=2+2+1=2 mod 3 neq p^2 q^2=1 mod 3$



            Сase 3. $p mod 3=1, q mod 3=2$. Then $p^3+q^3+1=1+2+1=1 mod 3 neq p^2 q^2=1 cdot 2 =2 mod 3$



            So, must be, say $p=0 mod 3 implies p=3$. We get the equation $q^3+28=9 q^2 $ or $q^3-9 q^2+28=left( q-2 right) left( {q}^{2}-7,q-14 right) $ and $q=2.$ By symmetry another solution is $p=2, q=3.$






            share|cite|improve this answer

















            • 1




              you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
              – Will Jagy
              Nov 9 '18 at 23:14
















            0














            My solution



            Case 1. Let $p mod 3=q mod 3=1$. Then $p^3+q^3+1=3=0 mod 3 neq p^2 q^2=1 mod 3$



            Case 2 $p mod 3=q mod 3=2$. Then $p^3+q^3+1=2+2+1=2 mod 3 neq p^2 q^2=1 mod 3$



            Сase 3. $p mod 3=1, q mod 3=2$. Then $p^3+q^3+1=1+2+1=1 mod 3 neq p^2 q^2=1 cdot 2 =2 mod 3$



            So, must be, say $p=0 mod 3 implies p=3$. We get the equation $q^3+28=9 q^2 $ or $q^3-9 q^2+28=left( q-2 right) left( {q}^{2}-7,q-14 right) $ and $q=2.$ By symmetry another solution is $p=2, q=3.$






            share|cite|improve this answer

















            • 1




              you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
              – Will Jagy
              Nov 9 '18 at 23:14














            0












            0








            0






            My solution



            Case 1. Let $p mod 3=q mod 3=1$. Then $p^3+q^3+1=3=0 mod 3 neq p^2 q^2=1 mod 3$



            Case 2 $p mod 3=q mod 3=2$. Then $p^3+q^3+1=2+2+1=2 mod 3 neq p^2 q^2=1 mod 3$



            Сase 3. $p mod 3=1, q mod 3=2$. Then $p^3+q^3+1=1+2+1=1 mod 3 neq p^2 q^2=1 cdot 2 =2 mod 3$



            So, must be, say $p=0 mod 3 implies p=3$. We get the equation $q^3+28=9 q^2 $ or $q^3-9 q^2+28=left( q-2 right) left( {q}^{2}-7,q-14 right) $ and $q=2.$ By symmetry another solution is $p=2, q=3.$






            share|cite|improve this answer












            My solution



            Case 1. Let $p mod 3=q mod 3=1$. Then $p^3+q^3+1=3=0 mod 3 neq p^2 q^2=1 mod 3$



            Case 2 $p mod 3=q mod 3=2$. Then $p^3+q^3+1=2+2+1=2 mod 3 neq p^2 q^2=1 mod 3$



            Сase 3. $p mod 3=1, q mod 3=2$. Then $p^3+q^3+1=1+2+1=1 mod 3 neq p^2 q^2=1 cdot 2 =2 mod 3$



            So, must be, say $p=0 mod 3 implies p=3$. We get the equation $q^3+28=9 q^2 $ or $q^3-9 q^2+28=left( q-2 right) left( {q}^{2}-7,q-14 right) $ and $q=2.$ By symmetry another solution is $p=2, q=3.$







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Nov 9 '18 at 21:59









            LeoxLeox

            5,2431423




            5,2431423








            • 1




              you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
              – Will Jagy
              Nov 9 '18 at 23:14














            • 1




              you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
              – Will Jagy
              Nov 9 '18 at 23:14








            1




            1




            you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
            – Will Jagy
            Nov 9 '18 at 23:14




            you have an important error, in Case 3, actually both $p^2, q^2 equiv 1 pmod 3, $ therefore $p^2 q^2 equiv 1 pmod 3, $
            – Will Jagy
            Nov 9 '18 at 23:14


















            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%2f2991909%2fsolve-equation-in-prime-numbers%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

            1300-talet

            1300-talet

            Display a custom attribute below product name in the front-end Magento 1.9.3.8