Can a prime of form $4m+1$ be expressed as sum of 2 squares in more than one way?












3














It is easy to find dozens of proofs (some of which are elementary or easy to follow) that every prime of the form $4m+1$ can be expressed as the sum of two squares.




How can one prove that every prime of the form $4m+1$ can be expressed as the sum of two squares $p = a^2 + b^2 | a,b in Bbb Z^+, a>b$ in only one way?




This is easy to verify for primes up to quite a large value but I can't find a proof.










share|cite|improve this question






















  • Most elementary texts on number theory prove this.
    – Lord Shark the Unknown
    Nov 20 '18 at 20:28










  • @mathnoob $3$ is not of the from $4m+1$
    – saulspatz
    Nov 20 '18 at 20:38






  • 3




    very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
    – Will Jagy
    Nov 20 '18 at 20:43










  • @Will Jagy - Thanks for that reference - very enlightening.
    – marty cohen
    Nov 20 '18 at 20:52










  • @will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
    – Mark Fischler
    Nov 20 '18 at 20:57
















3














It is easy to find dozens of proofs (some of which are elementary or easy to follow) that every prime of the form $4m+1$ can be expressed as the sum of two squares.




How can one prove that every prime of the form $4m+1$ can be expressed as the sum of two squares $p = a^2 + b^2 | a,b in Bbb Z^+, a>b$ in only one way?




This is easy to verify for primes up to quite a large value but I can't find a proof.










share|cite|improve this question






















  • Most elementary texts on number theory prove this.
    – Lord Shark the Unknown
    Nov 20 '18 at 20:28










  • @mathnoob $3$ is not of the from $4m+1$
    – saulspatz
    Nov 20 '18 at 20:38






  • 3




    very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
    – Will Jagy
    Nov 20 '18 at 20:43










  • @Will Jagy - Thanks for that reference - very enlightening.
    – marty cohen
    Nov 20 '18 at 20:52










  • @will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
    – Mark Fischler
    Nov 20 '18 at 20:57














3












3








3


2





It is easy to find dozens of proofs (some of which are elementary or easy to follow) that every prime of the form $4m+1$ can be expressed as the sum of two squares.




How can one prove that every prime of the form $4m+1$ can be expressed as the sum of two squares $p = a^2 + b^2 | a,b in Bbb Z^+, a>b$ in only one way?




This is easy to verify for primes up to quite a large value but I can't find a proof.










share|cite|improve this question













It is easy to find dozens of proofs (some of which are elementary or easy to follow) that every prime of the form $4m+1$ can be expressed as the sum of two squares.




How can one prove that every prime of the form $4m+1$ can be expressed as the sum of two squares $p = a^2 + b^2 | a,b in Bbb Z^+, a>b$ in only one way?




This is easy to verify for primes up to quite a large value but I can't find a proof.







elementary-number-theory prime-numbers






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 20 '18 at 20:21









Mark Fischler

32.4k12250




32.4k12250












  • Most elementary texts on number theory prove this.
    – Lord Shark the Unknown
    Nov 20 '18 at 20:28










  • @mathnoob $3$ is not of the from $4m+1$
    – saulspatz
    Nov 20 '18 at 20:38






  • 3




    very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
    – Will Jagy
    Nov 20 '18 at 20:43










  • @Will Jagy - Thanks for that reference - very enlightening.
    – marty cohen
    Nov 20 '18 at 20:52










  • @will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
    – Mark Fischler
    Nov 20 '18 at 20:57


















  • Most elementary texts on number theory prove this.
    – Lord Shark the Unknown
    Nov 20 '18 at 20:28










  • @mathnoob $3$ is not of the from $4m+1$
    – saulspatz
    Nov 20 '18 at 20:38






  • 3




    very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
    – Will Jagy
    Nov 20 '18 at 20:43










  • @Will Jagy - Thanks for that reference - very enlightening.
    – marty cohen
    Nov 20 '18 at 20:52










  • @will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
    – Mark Fischler
    Nov 20 '18 at 20:57
















Most elementary texts on number theory prove this.
– Lord Shark the Unknown
Nov 20 '18 at 20:28




Most elementary texts on number theory prove this.
– Lord Shark the Unknown
Nov 20 '18 at 20:28












@mathnoob $3$ is not of the from $4m+1$
– saulspatz
Nov 20 '18 at 20:38




@mathnoob $3$ is not of the from $4m+1$
– saulspatz
Nov 20 '18 at 20:38




3




3




very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
– Will Jagy
Nov 20 '18 at 20:43




very nice discussion of this, also for $mx^2 + ny^2$ with $m,n$ positive and coprime, by Brillhart zakuski.utsa.edu/~jagy/Brillhart_Euler_factoring_2009.pdf
– Will Jagy
Nov 20 '18 at 20:43












@Will Jagy - Thanks for that reference - very enlightening.
– marty cohen
Nov 20 '18 at 20:52




@Will Jagy - Thanks for that reference - very enlightening.
– marty cohen
Nov 20 '18 at 20:52












@will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
– Mark Fischler
Nov 20 '18 at 20:57




@will Jagy yes that answers the question. I have +1 the comment but if you put the proof as an answer it will bury this question; otherwise, perhaps I will do so maybe tomorrow.
– Mark Fischler
Nov 20 '18 at 20:57










1 Answer
1






active

oldest

votes


















2














Denote by $p$ a prime number of the form $4m+1$. Thus $$pequiv 1pmod 4$$
Assume that $p={a^2}+{b^2}={c^2}+{d^2}$ for some $a,b,c,dinmathbb {N}$ such that, w.l.o.g. $a>b$ and $c>d$. Our aim is now to show by contradiction, that this follows to $a=c$ and $b=d$:



We now have $$(ad-bc)(ad+bc)={a^2}{d^2}-{b^2}{c^2}=bigl(p-{b^2bigr)}{d^2}-{b^2}bigl(p-{d^2bigr)}=pbigl({d^2}-{b^2}bigr)equiv 0pmod p$$
This implies (see Euclid's lemma) that either $$p|(ad-bc)$$
or $$p|(ad+bc)$$



Let's suppose $pmid(ad+bc)$. Hence ${a^2},{b^2},{c^2},{d^2}<p$. Thus $a,b,c,d<sqrt{p}$, which implies that $$0<ad+bc<2p$$
That leads to $ad+bc=p$. However $${p^2}=Bigl({a^2}+{b^2}Bigr)Bigl({c^2}+{d^2}Bigr)={(ad+bc)^2}+{(ac-bd)^2}={p^2}+{(ac-bd)^2}$$ $$Rightarrow ac-bd=0$$
which, nevertheless, contradicts the assumption that $a>b$ and $c>d$. This shows, that $pnmid ({ad+bc})$.



This implies $pmid ({ad-bc})$. Analugously $$a,b,c,d<sqrt{p}$$ which implies that $$-p<ad-bc<p Rightarrow ad=bc$$ Hence $amid {bc}$. Note however, that since $p={a^2}+{b^2}$, $a$ and $b$ have to be coprime, so $$amid{c}$$
Let $c=xa$. Since $ad=bc$, it follows that $d=xb$



We finally have $$p={a^2}+{b^2}={c^2}+{d^2}={x^2}bigl({a^2}+{b^2}bigr)Rightarrow x=1$$
$$Rightarrow c=aquad d=b$$






share|cite|improve this answer





















    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%2f3006842%2fcan-a-prime-of-form-4m1-be-expressed-as-sum-of-2-squares-in-more-than-one-way%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









    2














    Denote by $p$ a prime number of the form $4m+1$. Thus $$pequiv 1pmod 4$$
    Assume that $p={a^2}+{b^2}={c^2}+{d^2}$ for some $a,b,c,dinmathbb {N}$ such that, w.l.o.g. $a>b$ and $c>d$. Our aim is now to show by contradiction, that this follows to $a=c$ and $b=d$:



    We now have $$(ad-bc)(ad+bc)={a^2}{d^2}-{b^2}{c^2}=bigl(p-{b^2bigr)}{d^2}-{b^2}bigl(p-{d^2bigr)}=pbigl({d^2}-{b^2}bigr)equiv 0pmod p$$
    This implies (see Euclid's lemma) that either $$p|(ad-bc)$$
    or $$p|(ad+bc)$$



    Let's suppose $pmid(ad+bc)$. Hence ${a^2},{b^2},{c^2},{d^2}<p$. Thus $a,b,c,d<sqrt{p}$, which implies that $$0<ad+bc<2p$$
    That leads to $ad+bc=p$. However $${p^2}=Bigl({a^2}+{b^2}Bigr)Bigl({c^2}+{d^2}Bigr)={(ad+bc)^2}+{(ac-bd)^2}={p^2}+{(ac-bd)^2}$$ $$Rightarrow ac-bd=0$$
    which, nevertheless, contradicts the assumption that $a>b$ and $c>d$. This shows, that $pnmid ({ad+bc})$.



    This implies $pmid ({ad-bc})$. Analugously $$a,b,c,d<sqrt{p}$$ which implies that $$-p<ad-bc<p Rightarrow ad=bc$$ Hence $amid {bc}$. Note however, that since $p={a^2}+{b^2}$, $a$ and $b$ have to be coprime, so $$amid{c}$$
    Let $c=xa$. Since $ad=bc$, it follows that $d=xb$



    We finally have $$p={a^2}+{b^2}={c^2}+{d^2}={x^2}bigl({a^2}+{b^2}bigr)Rightarrow x=1$$
    $$Rightarrow c=aquad d=b$$






    share|cite|improve this answer


























      2














      Denote by $p$ a prime number of the form $4m+1$. Thus $$pequiv 1pmod 4$$
      Assume that $p={a^2}+{b^2}={c^2}+{d^2}$ for some $a,b,c,dinmathbb {N}$ such that, w.l.o.g. $a>b$ and $c>d$. Our aim is now to show by contradiction, that this follows to $a=c$ and $b=d$:



      We now have $$(ad-bc)(ad+bc)={a^2}{d^2}-{b^2}{c^2}=bigl(p-{b^2bigr)}{d^2}-{b^2}bigl(p-{d^2bigr)}=pbigl({d^2}-{b^2}bigr)equiv 0pmod p$$
      This implies (see Euclid's lemma) that either $$p|(ad-bc)$$
      or $$p|(ad+bc)$$



      Let's suppose $pmid(ad+bc)$. Hence ${a^2},{b^2},{c^2},{d^2}<p$. Thus $a,b,c,d<sqrt{p}$, which implies that $$0<ad+bc<2p$$
      That leads to $ad+bc=p$. However $${p^2}=Bigl({a^2}+{b^2}Bigr)Bigl({c^2}+{d^2}Bigr)={(ad+bc)^2}+{(ac-bd)^2}={p^2}+{(ac-bd)^2}$$ $$Rightarrow ac-bd=0$$
      which, nevertheless, contradicts the assumption that $a>b$ and $c>d$. This shows, that $pnmid ({ad+bc})$.



      This implies $pmid ({ad-bc})$. Analugously $$a,b,c,d<sqrt{p}$$ which implies that $$-p<ad-bc<p Rightarrow ad=bc$$ Hence $amid {bc}$. Note however, that since $p={a^2}+{b^2}$, $a$ and $b$ have to be coprime, so $$amid{c}$$
      Let $c=xa$. Since $ad=bc$, it follows that $d=xb$



      We finally have $$p={a^2}+{b^2}={c^2}+{d^2}={x^2}bigl({a^2}+{b^2}bigr)Rightarrow x=1$$
      $$Rightarrow c=aquad d=b$$






      share|cite|improve this answer
























        2












        2








        2






        Denote by $p$ a prime number of the form $4m+1$. Thus $$pequiv 1pmod 4$$
        Assume that $p={a^2}+{b^2}={c^2}+{d^2}$ for some $a,b,c,dinmathbb {N}$ such that, w.l.o.g. $a>b$ and $c>d$. Our aim is now to show by contradiction, that this follows to $a=c$ and $b=d$:



        We now have $$(ad-bc)(ad+bc)={a^2}{d^2}-{b^2}{c^2}=bigl(p-{b^2bigr)}{d^2}-{b^2}bigl(p-{d^2bigr)}=pbigl({d^2}-{b^2}bigr)equiv 0pmod p$$
        This implies (see Euclid's lemma) that either $$p|(ad-bc)$$
        or $$p|(ad+bc)$$



        Let's suppose $pmid(ad+bc)$. Hence ${a^2},{b^2},{c^2},{d^2}<p$. Thus $a,b,c,d<sqrt{p}$, which implies that $$0<ad+bc<2p$$
        That leads to $ad+bc=p$. However $${p^2}=Bigl({a^2}+{b^2}Bigr)Bigl({c^2}+{d^2}Bigr)={(ad+bc)^2}+{(ac-bd)^2}={p^2}+{(ac-bd)^2}$$ $$Rightarrow ac-bd=0$$
        which, nevertheless, contradicts the assumption that $a>b$ and $c>d$. This shows, that $pnmid ({ad+bc})$.



        This implies $pmid ({ad-bc})$. Analugously $$a,b,c,d<sqrt{p}$$ which implies that $$-p<ad-bc<p Rightarrow ad=bc$$ Hence $amid {bc}$. Note however, that since $p={a^2}+{b^2}$, $a$ and $b$ have to be coprime, so $$amid{c}$$
        Let $c=xa$. Since $ad=bc$, it follows that $d=xb$



        We finally have $$p={a^2}+{b^2}={c^2}+{d^2}={x^2}bigl({a^2}+{b^2}bigr)Rightarrow x=1$$
        $$Rightarrow c=aquad d=b$$






        share|cite|improve this answer












        Denote by $p$ a prime number of the form $4m+1$. Thus $$pequiv 1pmod 4$$
        Assume that $p={a^2}+{b^2}={c^2}+{d^2}$ for some $a,b,c,dinmathbb {N}$ such that, w.l.o.g. $a>b$ and $c>d$. Our aim is now to show by contradiction, that this follows to $a=c$ and $b=d$:



        We now have $$(ad-bc)(ad+bc)={a^2}{d^2}-{b^2}{c^2}=bigl(p-{b^2bigr)}{d^2}-{b^2}bigl(p-{d^2bigr)}=pbigl({d^2}-{b^2}bigr)equiv 0pmod p$$
        This implies (see Euclid's lemma) that either $$p|(ad-bc)$$
        or $$p|(ad+bc)$$



        Let's suppose $pmid(ad+bc)$. Hence ${a^2},{b^2},{c^2},{d^2}<p$. Thus $a,b,c,d<sqrt{p}$, which implies that $$0<ad+bc<2p$$
        That leads to $ad+bc=p$. However $${p^2}=Bigl({a^2}+{b^2}Bigr)Bigl({c^2}+{d^2}Bigr)={(ad+bc)^2}+{(ac-bd)^2}={p^2}+{(ac-bd)^2}$$ $$Rightarrow ac-bd=0$$
        which, nevertheless, contradicts the assumption that $a>b$ and $c>d$. This shows, that $pnmid ({ad+bc})$.



        This implies $pmid ({ad-bc})$. Analugously $$a,b,c,d<sqrt{p}$$ which implies that $$-p<ad-bc<p Rightarrow ad=bc$$ Hence $amid {bc}$. Note however, that since $p={a^2}+{b^2}$, $a$ and $b$ have to be coprime, so $$amid{c}$$
        Let $c=xa$. Since $ad=bc$, it follows that $d=xb$



        We finally have $$p={a^2}+{b^2}={c^2}+{d^2}={x^2}bigl({a^2}+{b^2}bigr)Rightarrow x=1$$
        $$Rightarrow c=aquad d=b$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 20 '18 at 22:33









        Dr. Mathva

        919316




        919316






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3006842%2fcan-a-prime-of-form-4m1-be-expressed-as-sum-of-2-squares-in-more-than-one-way%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

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

            SQL update select statement

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