Find $p$ if $2p-1$ is a perfect square












0












$begingroup$


I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
    $endgroup$
    – anomaly
    Jan 9 at 5:09










  • $begingroup$
    Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
    $endgroup$
    – John Omielan
    Jan 9 at 5:09






  • 1




    $begingroup$
    This is oeis.org/A027862
    $endgroup$
    – Ross Millikan
    Jan 9 at 5:15
















0












$begingroup$


I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
    $endgroup$
    – anomaly
    Jan 9 at 5:09










  • $begingroup$
    Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
    $endgroup$
    – John Omielan
    Jan 9 at 5:09






  • 1




    $begingroup$
    This is oeis.org/A027862
    $endgroup$
    – Ross Millikan
    Jan 9 at 5:15














0












0








0





$begingroup$


I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.










share|cite|improve this question









$endgroup$




I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.







number-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 9 at 5:01









YellowYellow

16011




16011








  • 1




    $begingroup$
    And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
    $endgroup$
    – anomaly
    Jan 9 at 5:09










  • $begingroup$
    Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
    $endgroup$
    – John Omielan
    Jan 9 at 5:09






  • 1




    $begingroup$
    This is oeis.org/A027862
    $endgroup$
    – Ross Millikan
    Jan 9 at 5:15














  • 1




    $begingroup$
    And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
    $endgroup$
    – anomaly
    Jan 9 at 5:09










  • $begingroup$
    Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
    $endgroup$
    – John Omielan
    Jan 9 at 5:09






  • 1




    $begingroup$
    This is oeis.org/A027862
    $endgroup$
    – Ross Millikan
    Jan 9 at 5:15








1




1




$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09




$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09












$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09




$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09




1




1




$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15




$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15










2 Answers
2






active

oldest

votes


















1












$begingroup$

OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:



    $$2(6k+1)-1=12k+1$$
    This leads to $$12k=m^2-1$$
    $$12k=(m+1)(m-1)$$
    $$to m+1=12a, m-1=frac ka$$
    Or vice versa, subject to $a,k in Bbb Z, a|k$



    Now use:
    $$2(6k-1)-1=12k-3$$
    $$to 12k-4=m^2-1$$
    $$to 4(3k-1)=(m+1)(m-1)$$
    Go from there.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Excluding 2. And 3.
      $endgroup$
      – Lucas Henrique
      Jan 9 at 5:36










    • $begingroup$
      I'm stupid. Thanks
      $endgroup$
      – Rhys Hughes
      Jan 9 at 5:42












    Your Answer








    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%2f3067090%2ffind-p-if-2p-1-is-a-perfect-square%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$

    OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$






        share|cite|improve this answer









        $endgroup$



        OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 9 at 5:36









        Ross MillikanRoss Millikan

        301k24200375




        301k24200375























            1












            $begingroup$

            All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:



            $$2(6k+1)-1=12k+1$$
            This leads to $$12k=m^2-1$$
            $$12k=(m+1)(m-1)$$
            $$to m+1=12a, m-1=frac ka$$
            Or vice versa, subject to $a,k in Bbb Z, a|k$



            Now use:
            $$2(6k-1)-1=12k-3$$
            $$to 12k-4=m^2-1$$
            $$to 4(3k-1)=(m+1)(m-1)$$
            Go from there.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              Excluding 2. And 3.
              $endgroup$
              – Lucas Henrique
              Jan 9 at 5:36










            • $begingroup$
              I'm stupid. Thanks
              $endgroup$
              – Rhys Hughes
              Jan 9 at 5:42
















            1












            $begingroup$

            All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:



            $$2(6k+1)-1=12k+1$$
            This leads to $$12k=m^2-1$$
            $$12k=(m+1)(m-1)$$
            $$to m+1=12a, m-1=frac ka$$
            Or vice versa, subject to $a,k in Bbb Z, a|k$



            Now use:
            $$2(6k-1)-1=12k-3$$
            $$to 12k-4=m^2-1$$
            $$to 4(3k-1)=(m+1)(m-1)$$
            Go from there.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              Excluding 2. And 3.
              $endgroup$
              – Lucas Henrique
              Jan 9 at 5:36










            • $begingroup$
              I'm stupid. Thanks
              $endgroup$
              – Rhys Hughes
              Jan 9 at 5:42














            1












            1








            1





            $begingroup$

            All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:



            $$2(6k+1)-1=12k+1$$
            This leads to $$12k=m^2-1$$
            $$12k=(m+1)(m-1)$$
            $$to m+1=12a, m-1=frac ka$$
            Or vice versa, subject to $a,k in Bbb Z, a|k$



            Now use:
            $$2(6k-1)-1=12k-3$$
            $$to 12k-4=m^2-1$$
            $$to 4(3k-1)=(m+1)(m-1)$$
            Go from there.






            share|cite|improve this answer











            $endgroup$



            All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:



            $$2(6k+1)-1=12k+1$$
            This leads to $$12k=m^2-1$$
            $$12k=(m+1)(m-1)$$
            $$to m+1=12a, m-1=frac ka$$
            Or vice versa, subject to $a,k in Bbb Z, a|k$



            Now use:
            $$2(6k-1)-1=12k-3$$
            $$to 12k-4=m^2-1$$
            $$to 4(3k-1)=(m+1)(m-1)$$
            Go from there.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jan 9 at 5:42

























            answered Jan 9 at 5:21









            Rhys HughesRhys Hughes

            7,0791630




            7,0791630












            • $begingroup$
              Excluding 2. And 3.
              $endgroup$
              – Lucas Henrique
              Jan 9 at 5:36










            • $begingroup$
              I'm stupid. Thanks
              $endgroup$
              – Rhys Hughes
              Jan 9 at 5:42


















            • $begingroup$
              Excluding 2. And 3.
              $endgroup$
              – Lucas Henrique
              Jan 9 at 5:36










            • $begingroup$
              I'm stupid. Thanks
              $endgroup$
              – Rhys Hughes
              Jan 9 at 5:42
















            $begingroup$
            Excluding 2. And 3.
            $endgroup$
            – Lucas Henrique
            Jan 9 at 5:36




            $begingroup$
            Excluding 2. And 3.
            $endgroup$
            – Lucas Henrique
            Jan 9 at 5:36












            $begingroup$
            I'm stupid. Thanks
            $endgroup$
            – Rhys Hughes
            Jan 9 at 5:42




            $begingroup$
            I'm stupid. Thanks
            $endgroup$
            – Rhys Hughes
            Jan 9 at 5:42


















            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%2f3067090%2ffind-p-if-2p-1-is-a-perfect-square%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

            How do I know what Microsoft account the skydrive app is syncing to?

            When does type information flow backwards in C++?

            Grease: Live!