Let $p$ be prime and $(frac{-3}p)=1$. Prove that $p$ is of the form $p=a^2+3b^2$












15












$begingroup$



Let $p$ be prime and $(frac{-3}p)=1$, where $(frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.




My progress:



$(frac{-3}p)=1 Rightarrow$ $(frac{-3}p)=(frac{-1}p)(frac{3}p)=(-1)^{frac{p-1}2}(-1)^{lfloorfrac{p+1}6rfloor}=1 Rightarrow$ $frac{p-1}2+lfloorfrac{p+1}6rfloor=2k$
I'm stuck here. This is probably not the way to prove that.



Also tried this way:

$(frac{-3}p)=1$, thus $-3equiv x^2pmod{p} Rightarrow$ $p|x^2+3 Rightarrow$ $x^2+3=pcdot k$

stuck here too.



Any help would be appreciated.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Look up Thue's lemma
    $endgroup$
    – TheOscillator
    Feb 22 '14 at 13:06
















15












$begingroup$



Let $p$ be prime and $(frac{-3}p)=1$, where $(frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.




My progress:



$(frac{-3}p)=1 Rightarrow$ $(frac{-3}p)=(frac{-1}p)(frac{3}p)=(-1)^{frac{p-1}2}(-1)^{lfloorfrac{p+1}6rfloor}=1 Rightarrow$ $frac{p-1}2+lfloorfrac{p+1}6rfloor=2k$
I'm stuck here. This is probably not the way to prove that.



Also tried this way:

$(frac{-3}p)=1$, thus $-3equiv x^2pmod{p} Rightarrow$ $p|x^2+3 Rightarrow$ $x^2+3=pcdot k$

stuck here too.



Any help would be appreciated.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Look up Thue's lemma
    $endgroup$
    – TheOscillator
    Feb 22 '14 at 13:06














15












15








15


12



$begingroup$



Let $p$ be prime and $(frac{-3}p)=1$, where $(frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.




My progress:



$(frac{-3}p)=1 Rightarrow$ $(frac{-3}p)=(frac{-1}p)(frac{3}p)=(-1)^{frac{p-1}2}(-1)^{lfloorfrac{p+1}6rfloor}=1 Rightarrow$ $frac{p-1}2+lfloorfrac{p+1}6rfloor=2k$
I'm stuck here. This is probably not the way to prove that.



Also tried this way:

$(frac{-3}p)=1$, thus $-3equiv x^2pmod{p} Rightarrow$ $p|x^2+3 Rightarrow$ $x^2+3=pcdot k$

stuck here too.



Any help would be appreciated.










share|cite|improve this question











$endgroup$





Let $p$ be prime and $(frac{-3}p)=1$, where $(frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.




My progress:



$(frac{-3}p)=1 Rightarrow$ $(frac{-3}p)=(frac{-1}p)(frac{3}p)=(-1)^{frac{p-1}2}(-1)^{lfloorfrac{p+1}6rfloor}=1 Rightarrow$ $frac{p-1}2+lfloorfrac{p+1}6rfloor=2k$
I'm stuck here. This is probably not the way to prove that.



Also tried this way:

$(frac{-3}p)=1$, thus $-3equiv x^2pmod{p} Rightarrow$ $p|x^2+3 Rightarrow$ $x^2+3=pcdot k$

stuck here too.



Any help would be appreciated.







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








edited Oct 24 '15 at 19:55









user26857

39.5k124283




39.5k124283










asked Feb 22 '14 at 12:40









Eliran KorenEliran Koren

19810




19810












  • $begingroup$
    Look up Thue's lemma
    $endgroup$
    – TheOscillator
    Feb 22 '14 at 13:06


















  • $begingroup$
    Look up Thue's lemma
    $endgroup$
    – TheOscillator
    Feb 22 '14 at 13:06
















$begingroup$
Look up Thue's lemma
$endgroup$
– TheOscillator
Feb 22 '14 at 13:06




$begingroup$
Look up Thue's lemma
$endgroup$
– TheOscillator
Feb 22 '14 at 13:06










2 Answers
2






active

oldest

votes


















12












$begingroup$

First part:
$$left(frac{-3}{p}right)=1 text{ if and only if }; pequiv{1}!!!!pmod{3}.tag{1}$$
This can be achieved through the Gauss quadratic reciprocity theorem in the most general form, or through the following lines. If $p=3k+1$, by the Cauchy theorem for groups there is an order-3 element in $mathbb{F}_p^*$, say $omega$; from $omega^3=1$ follows $omega^2+omega+1equiv 0pmod{p}$, hence:
$$(2omega+1)^2 = 4omega^2+4omega+1 = 4(omega^2+omega+1)-3 = -3,$$
and $-3$ is a quadratic residue $pmod{p}$. On the other hand, if $-3$ is the square of something $pmod{p}$, say $-3equiv a^2pmod{p}$, then:
$$left(frac{a-1}{2}right)^3equivfrac{1}{8}(a^3-3a^2+3a-1)equivfrac{1}{8}cdot 8equiv{1},$$
and $frac{a-1}{2}$ is an order-3 element in $mathbb{F}_{p}^*$. From the Lagrange theorem for groups it follows that $3|(p-1)$.





Second part:
$$text{If }pequiv 1pmod{3},qquad p=a^2+3b^2.tag{2}$$
Since by the first part we know that $-3$ is a quadratic residue $pmod{p}$, there exists an integer number $cin[0,p/2]$ such that:
$$ c^2+3cdot 1^2 = kcdot p.tag{3}$$
The trick is now to set a "finite descent" in order to have $k=1$. Let $d$ the least positive integer such that $cequiv dpmod{k}$. Regarding $(3)$ mod $k$, we have:
$$ d^2+3cdot 1^2 = kcdot k_1.tag{4}$$
Since the generalized Lagrange identity states:
$$(A^2+3B^2)(C^2+3D^2)=(AC+3BD)^2 + 3(BC-AD)^2,tag{5}$$
by multiplying $(3)$ and $(4)$ we get:
$$ (cd+3)^2 + 3(c-d)^2 = k^2 pk_1.$$
Since $cd+3equiv c^2+3equiv 0pmod{k}$ and $cequiv dpmod{k}$, we can rewrite the last line in the following form:
$$ left(frac{cd+3}{k}right)^2+3left(frac{c-d}{k}right)^2 = k_1cdot p.tag{6}$$
Now a careful analysis of the steps involved in the algorithm reveals that $k_1<k$, so the descent is able to reach $k_i=1$, or:
$$ p = a^2 + 3b^2$$
as wanted.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
    $endgroup$
    – rabota
    Feb 22 '14 at 15:04






  • 4




    $begingroup$
    @barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
    $endgroup$
    – r9m
    Feb 22 '14 at 15:31








  • 1




    $begingroup$
    Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
    $endgroup$
    – rabota
    Feb 23 '14 at 12:06












  • $begingroup$
    Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
    $endgroup$
    – Ovi
    May 28 '17 at 17:20










  • $begingroup$
    @Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
    $endgroup$
    – Jack D'Aurizio
    May 28 '17 at 17:21



















7












$begingroup$

$(frac{p}{3})=(frac{-3}{p})(frac{p}{3})=(frac{-1}{p})(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(-1)^{frac{p-1}{2}frac{3-1}{2}} = 1$



Hence,$(frac{-3}{p})=1$ iff, $pequiv1mod3$.



Since, there is $u in mathbb{Z}$ such that, $-3equiv u^2pmod{p}$



Consider the lattice defined by $L={(a,b)inmathbb{Z}^2, : ,aequiv ubpmod p}$ generated by $(u,1)$ and $(0,p)$. $L$ has index $p$ in $mathbb{Z}^2$, and area of its fundamental domain is $p$. Now, consider an ellipse $E_n$ defined by $x^2+3y^2=n$, then the area of $E_n=frac{pi n}{sqrt3}>1.8n$



Choose, $n=2.3 p$, then Area of $E_{n}>4p$ and $E_ncap L$ has a non zero point $(a,b)$.



Now, $a^2+3b^2equiv(ub)^2+3b^2equiv b^2(u^2+3)equiv0 pmod p$.



Since, $(a,b)in E_n implies a^2+3b^2<2.3p$ we have $a^2+3b^2=p,2p$.



But, $a^2+3b^2=2p implies a^2equiv 2p pmod 3 equiv 2 pmod 3$ contradiction !!



Therefore, $a^2+3b^2=p$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How did you reach your very first equality??
    $endgroup$
    – DonAntonio
    Feb 22 '14 at 14:17










  • $begingroup$
    @DonAntonio : Edited.
    $endgroup$
    – r9m
    Feb 22 '14 at 14:47






  • 1




    $begingroup$
    Thank you for your answer! giving this one to Jack
    $endgroup$
    – Eliran Koren
    Feb 22 '14 at 15:24






  • 1




    $begingroup$
    Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:21








  • 1




    $begingroup$
    In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:25












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%2f685958%2flet-p-be-prime-and-frac-3p-1-prove-that-p-is-of-the-form-p-a23b2%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









12












$begingroup$

First part:
$$left(frac{-3}{p}right)=1 text{ if and only if }; pequiv{1}!!!!pmod{3}.tag{1}$$
This can be achieved through the Gauss quadratic reciprocity theorem in the most general form, or through the following lines. If $p=3k+1$, by the Cauchy theorem for groups there is an order-3 element in $mathbb{F}_p^*$, say $omega$; from $omega^3=1$ follows $omega^2+omega+1equiv 0pmod{p}$, hence:
$$(2omega+1)^2 = 4omega^2+4omega+1 = 4(omega^2+omega+1)-3 = -3,$$
and $-3$ is a quadratic residue $pmod{p}$. On the other hand, if $-3$ is the square of something $pmod{p}$, say $-3equiv a^2pmod{p}$, then:
$$left(frac{a-1}{2}right)^3equivfrac{1}{8}(a^3-3a^2+3a-1)equivfrac{1}{8}cdot 8equiv{1},$$
and $frac{a-1}{2}$ is an order-3 element in $mathbb{F}_{p}^*$. From the Lagrange theorem for groups it follows that $3|(p-1)$.





Second part:
$$text{If }pequiv 1pmod{3},qquad p=a^2+3b^2.tag{2}$$
Since by the first part we know that $-3$ is a quadratic residue $pmod{p}$, there exists an integer number $cin[0,p/2]$ such that:
$$ c^2+3cdot 1^2 = kcdot p.tag{3}$$
The trick is now to set a "finite descent" in order to have $k=1$. Let $d$ the least positive integer such that $cequiv dpmod{k}$. Regarding $(3)$ mod $k$, we have:
$$ d^2+3cdot 1^2 = kcdot k_1.tag{4}$$
Since the generalized Lagrange identity states:
$$(A^2+3B^2)(C^2+3D^2)=(AC+3BD)^2 + 3(BC-AD)^2,tag{5}$$
by multiplying $(3)$ and $(4)$ we get:
$$ (cd+3)^2 + 3(c-d)^2 = k^2 pk_1.$$
Since $cd+3equiv c^2+3equiv 0pmod{k}$ and $cequiv dpmod{k}$, we can rewrite the last line in the following form:
$$ left(frac{cd+3}{k}right)^2+3left(frac{c-d}{k}right)^2 = k_1cdot p.tag{6}$$
Now a careful analysis of the steps involved in the algorithm reveals that $k_1<k$, so the descent is able to reach $k_i=1$, or:
$$ p = a^2 + 3b^2$$
as wanted.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
    $endgroup$
    – rabota
    Feb 22 '14 at 15:04






  • 4




    $begingroup$
    @barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
    $endgroup$
    – r9m
    Feb 22 '14 at 15:31








  • 1




    $begingroup$
    Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
    $endgroup$
    – rabota
    Feb 23 '14 at 12:06












  • $begingroup$
    Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
    $endgroup$
    – Ovi
    May 28 '17 at 17:20










  • $begingroup$
    @Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
    $endgroup$
    – Jack D'Aurizio
    May 28 '17 at 17:21
















12












$begingroup$

First part:
$$left(frac{-3}{p}right)=1 text{ if and only if }; pequiv{1}!!!!pmod{3}.tag{1}$$
This can be achieved through the Gauss quadratic reciprocity theorem in the most general form, or through the following lines. If $p=3k+1$, by the Cauchy theorem for groups there is an order-3 element in $mathbb{F}_p^*$, say $omega$; from $omega^3=1$ follows $omega^2+omega+1equiv 0pmod{p}$, hence:
$$(2omega+1)^2 = 4omega^2+4omega+1 = 4(omega^2+omega+1)-3 = -3,$$
and $-3$ is a quadratic residue $pmod{p}$. On the other hand, if $-3$ is the square of something $pmod{p}$, say $-3equiv a^2pmod{p}$, then:
$$left(frac{a-1}{2}right)^3equivfrac{1}{8}(a^3-3a^2+3a-1)equivfrac{1}{8}cdot 8equiv{1},$$
and $frac{a-1}{2}$ is an order-3 element in $mathbb{F}_{p}^*$. From the Lagrange theorem for groups it follows that $3|(p-1)$.





Second part:
$$text{If }pequiv 1pmod{3},qquad p=a^2+3b^2.tag{2}$$
Since by the first part we know that $-3$ is a quadratic residue $pmod{p}$, there exists an integer number $cin[0,p/2]$ such that:
$$ c^2+3cdot 1^2 = kcdot p.tag{3}$$
The trick is now to set a "finite descent" in order to have $k=1$. Let $d$ the least positive integer such that $cequiv dpmod{k}$. Regarding $(3)$ mod $k$, we have:
$$ d^2+3cdot 1^2 = kcdot k_1.tag{4}$$
Since the generalized Lagrange identity states:
$$(A^2+3B^2)(C^2+3D^2)=(AC+3BD)^2 + 3(BC-AD)^2,tag{5}$$
by multiplying $(3)$ and $(4)$ we get:
$$ (cd+3)^2 + 3(c-d)^2 = k^2 pk_1.$$
Since $cd+3equiv c^2+3equiv 0pmod{k}$ and $cequiv dpmod{k}$, we can rewrite the last line in the following form:
$$ left(frac{cd+3}{k}right)^2+3left(frac{c-d}{k}right)^2 = k_1cdot p.tag{6}$$
Now a careful analysis of the steps involved in the algorithm reveals that $k_1<k$, so the descent is able to reach $k_i=1$, or:
$$ p = a^2 + 3b^2$$
as wanted.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
    $endgroup$
    – rabota
    Feb 22 '14 at 15:04






  • 4




    $begingroup$
    @barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
    $endgroup$
    – r9m
    Feb 22 '14 at 15:31








  • 1




    $begingroup$
    Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
    $endgroup$
    – rabota
    Feb 23 '14 at 12:06












  • $begingroup$
    Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
    $endgroup$
    – Ovi
    May 28 '17 at 17:20










  • $begingroup$
    @Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
    $endgroup$
    – Jack D'Aurizio
    May 28 '17 at 17:21














12












12








12





$begingroup$

First part:
$$left(frac{-3}{p}right)=1 text{ if and only if }; pequiv{1}!!!!pmod{3}.tag{1}$$
This can be achieved through the Gauss quadratic reciprocity theorem in the most general form, or through the following lines. If $p=3k+1$, by the Cauchy theorem for groups there is an order-3 element in $mathbb{F}_p^*$, say $omega$; from $omega^3=1$ follows $omega^2+omega+1equiv 0pmod{p}$, hence:
$$(2omega+1)^2 = 4omega^2+4omega+1 = 4(omega^2+omega+1)-3 = -3,$$
and $-3$ is a quadratic residue $pmod{p}$. On the other hand, if $-3$ is the square of something $pmod{p}$, say $-3equiv a^2pmod{p}$, then:
$$left(frac{a-1}{2}right)^3equivfrac{1}{8}(a^3-3a^2+3a-1)equivfrac{1}{8}cdot 8equiv{1},$$
and $frac{a-1}{2}$ is an order-3 element in $mathbb{F}_{p}^*$. From the Lagrange theorem for groups it follows that $3|(p-1)$.





Second part:
$$text{If }pequiv 1pmod{3},qquad p=a^2+3b^2.tag{2}$$
Since by the first part we know that $-3$ is a quadratic residue $pmod{p}$, there exists an integer number $cin[0,p/2]$ such that:
$$ c^2+3cdot 1^2 = kcdot p.tag{3}$$
The trick is now to set a "finite descent" in order to have $k=1$. Let $d$ the least positive integer such that $cequiv dpmod{k}$. Regarding $(3)$ mod $k$, we have:
$$ d^2+3cdot 1^2 = kcdot k_1.tag{4}$$
Since the generalized Lagrange identity states:
$$(A^2+3B^2)(C^2+3D^2)=(AC+3BD)^2 + 3(BC-AD)^2,tag{5}$$
by multiplying $(3)$ and $(4)$ we get:
$$ (cd+3)^2 + 3(c-d)^2 = k^2 pk_1.$$
Since $cd+3equiv c^2+3equiv 0pmod{k}$ and $cequiv dpmod{k}$, we can rewrite the last line in the following form:
$$ left(frac{cd+3}{k}right)^2+3left(frac{c-d}{k}right)^2 = k_1cdot p.tag{6}$$
Now a careful analysis of the steps involved in the algorithm reveals that $k_1<k$, so the descent is able to reach $k_i=1$, or:
$$ p = a^2 + 3b^2$$
as wanted.






share|cite|improve this answer









$endgroup$



First part:
$$left(frac{-3}{p}right)=1 text{ if and only if }; pequiv{1}!!!!pmod{3}.tag{1}$$
This can be achieved through the Gauss quadratic reciprocity theorem in the most general form, or through the following lines. If $p=3k+1$, by the Cauchy theorem for groups there is an order-3 element in $mathbb{F}_p^*$, say $omega$; from $omega^3=1$ follows $omega^2+omega+1equiv 0pmod{p}$, hence:
$$(2omega+1)^2 = 4omega^2+4omega+1 = 4(omega^2+omega+1)-3 = -3,$$
and $-3$ is a quadratic residue $pmod{p}$. On the other hand, if $-3$ is the square of something $pmod{p}$, say $-3equiv a^2pmod{p}$, then:
$$left(frac{a-1}{2}right)^3equivfrac{1}{8}(a^3-3a^2+3a-1)equivfrac{1}{8}cdot 8equiv{1},$$
and $frac{a-1}{2}$ is an order-3 element in $mathbb{F}_{p}^*$. From the Lagrange theorem for groups it follows that $3|(p-1)$.





Second part:
$$text{If }pequiv 1pmod{3},qquad p=a^2+3b^2.tag{2}$$
Since by the first part we know that $-3$ is a quadratic residue $pmod{p}$, there exists an integer number $cin[0,p/2]$ such that:
$$ c^2+3cdot 1^2 = kcdot p.tag{3}$$
The trick is now to set a "finite descent" in order to have $k=1$. Let $d$ the least positive integer such that $cequiv dpmod{k}$. Regarding $(3)$ mod $k$, we have:
$$ d^2+3cdot 1^2 = kcdot k_1.tag{4}$$
Since the generalized Lagrange identity states:
$$(A^2+3B^2)(C^2+3D^2)=(AC+3BD)^2 + 3(BC-AD)^2,tag{5}$$
by multiplying $(3)$ and $(4)$ we get:
$$ (cd+3)^2 + 3(c-d)^2 = k^2 pk_1.$$
Since $cd+3equiv c^2+3equiv 0pmod{k}$ and $cequiv dpmod{k}$, we can rewrite the last line in the following form:
$$ left(frac{cd+3}{k}right)^2+3left(frac{c-d}{k}right)^2 = k_1cdot p.tag{6}$$
Now a careful analysis of the steps involved in the algorithm reveals that $k_1<k$, so the descent is able to reach $k_i=1$, or:
$$ p = a^2 + 3b^2$$
as wanted.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Feb 22 '14 at 13:21









Jack D'AurizioJack D'Aurizio

292k33284672




292k33284672












  • $begingroup$
    Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
    $endgroup$
    – rabota
    Feb 22 '14 at 15:04






  • 4




    $begingroup$
    @barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
    $endgroup$
    – r9m
    Feb 22 '14 at 15:31








  • 1




    $begingroup$
    Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
    $endgroup$
    – rabota
    Feb 23 '14 at 12:06












  • $begingroup$
    Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
    $endgroup$
    – Ovi
    May 28 '17 at 17:20










  • $begingroup$
    @Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
    $endgroup$
    – Jack D'Aurizio
    May 28 '17 at 17:21


















  • $begingroup$
    Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
    $endgroup$
    – rabota
    Feb 22 '14 at 15:04






  • 4




    $begingroup$
    @barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
    $endgroup$
    – r9m
    Feb 22 '14 at 15:31








  • 1




    $begingroup$
    Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
    $endgroup$
    – rabota
    Feb 23 '14 at 12:06












  • $begingroup$
    Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
    $endgroup$
    – Ovi
    May 28 '17 at 17:20










  • $begingroup$
    @Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
    $endgroup$
    – Jack D'Aurizio
    May 28 '17 at 17:21
















$begingroup$
Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
$endgroup$
– rabota
Feb 22 '14 at 15:04




$begingroup$
Interesting. I've seen this method for Fermat's Christmas theorem but didn't expect it would work in general.
$endgroup$
– rabota
Feb 22 '14 at 15:04




4




4




$begingroup$
@barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
$endgroup$
– r9m
Feb 22 '14 at 15:31






$begingroup$
@barto: A similar proof using descent can be used to prove $a^2+2b^2=p$ iff $p=2$ or $pequiv 1,3pmod{8}$. $a^2+5b^2=p$ iff $pequiv 1,9pmod{20}$ and $a^2+5b^2=2p$ iff $pequiv 3,7pmod{20}$ are similar results. :)
$endgroup$
– r9m
Feb 22 '14 at 15:31






1




1




$begingroup$
Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
$endgroup$
– rabota
Feb 23 '14 at 12:06






$begingroup$
Yes, that's what I was thinking. It also works for proving that $p=4k+3$ is the sum of $4$ squares. I guess it won't work for sums of $3$ squares because there is no nice symmetric identity for products of sums of $3$ squares.
$endgroup$
– rabota
Feb 23 '14 at 12:06














$begingroup$
Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
$endgroup$
– Ovi
May 28 '17 at 17:20




$begingroup$
Hi, if you don't mind: What does $left(frac{-3}{p}right)=1$ mean? Surely it's not just a fraction.
$endgroup$
– Ovi
May 28 '17 at 17:20












$begingroup$
@Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
$endgroup$
– Jack D'Aurizio
May 28 '17 at 17:21




$begingroup$
@Ovi: that is a Legendre symbol. $left(frac{-3}{p}right)=1$ means that $-3$ is a quadratic residue $pmod{p}$.
$endgroup$
– Jack D'Aurizio
May 28 '17 at 17:21











7












$begingroup$

$(frac{p}{3})=(frac{-3}{p})(frac{p}{3})=(frac{-1}{p})(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(-1)^{frac{p-1}{2}frac{3-1}{2}} = 1$



Hence,$(frac{-3}{p})=1$ iff, $pequiv1mod3$.



Since, there is $u in mathbb{Z}$ such that, $-3equiv u^2pmod{p}$



Consider the lattice defined by $L={(a,b)inmathbb{Z}^2, : ,aequiv ubpmod p}$ generated by $(u,1)$ and $(0,p)$. $L$ has index $p$ in $mathbb{Z}^2$, and area of its fundamental domain is $p$. Now, consider an ellipse $E_n$ defined by $x^2+3y^2=n$, then the area of $E_n=frac{pi n}{sqrt3}>1.8n$



Choose, $n=2.3 p$, then Area of $E_{n}>4p$ and $E_ncap L$ has a non zero point $(a,b)$.



Now, $a^2+3b^2equiv(ub)^2+3b^2equiv b^2(u^2+3)equiv0 pmod p$.



Since, $(a,b)in E_n implies a^2+3b^2<2.3p$ we have $a^2+3b^2=p,2p$.



But, $a^2+3b^2=2p implies a^2equiv 2p pmod 3 equiv 2 pmod 3$ contradiction !!



Therefore, $a^2+3b^2=p$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How did you reach your very first equality??
    $endgroup$
    – DonAntonio
    Feb 22 '14 at 14:17










  • $begingroup$
    @DonAntonio : Edited.
    $endgroup$
    – r9m
    Feb 22 '14 at 14:47






  • 1




    $begingroup$
    Thank you for your answer! giving this one to Jack
    $endgroup$
    – Eliran Koren
    Feb 22 '14 at 15:24






  • 1




    $begingroup$
    Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:21








  • 1




    $begingroup$
    In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:25
















7












$begingroup$

$(frac{p}{3})=(frac{-3}{p})(frac{p}{3})=(frac{-1}{p})(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(-1)^{frac{p-1}{2}frac{3-1}{2}} = 1$



Hence,$(frac{-3}{p})=1$ iff, $pequiv1mod3$.



Since, there is $u in mathbb{Z}$ such that, $-3equiv u^2pmod{p}$



Consider the lattice defined by $L={(a,b)inmathbb{Z}^2, : ,aequiv ubpmod p}$ generated by $(u,1)$ and $(0,p)$. $L$ has index $p$ in $mathbb{Z}^2$, and area of its fundamental domain is $p$. Now, consider an ellipse $E_n$ defined by $x^2+3y^2=n$, then the area of $E_n=frac{pi n}{sqrt3}>1.8n$



Choose, $n=2.3 p$, then Area of $E_{n}>4p$ and $E_ncap L$ has a non zero point $(a,b)$.



Now, $a^2+3b^2equiv(ub)^2+3b^2equiv b^2(u^2+3)equiv0 pmod p$.



Since, $(a,b)in E_n implies a^2+3b^2<2.3p$ we have $a^2+3b^2=p,2p$.



But, $a^2+3b^2=2p implies a^2equiv 2p pmod 3 equiv 2 pmod 3$ contradiction !!



Therefore, $a^2+3b^2=p$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How did you reach your very first equality??
    $endgroup$
    – DonAntonio
    Feb 22 '14 at 14:17










  • $begingroup$
    @DonAntonio : Edited.
    $endgroup$
    – r9m
    Feb 22 '14 at 14:47






  • 1




    $begingroup$
    Thank you for your answer! giving this one to Jack
    $endgroup$
    – Eliran Koren
    Feb 22 '14 at 15:24






  • 1




    $begingroup$
    Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:21








  • 1




    $begingroup$
    In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:25














7












7








7





$begingroup$

$(frac{p}{3})=(frac{-3}{p})(frac{p}{3})=(frac{-1}{p})(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(-1)^{frac{p-1}{2}frac{3-1}{2}} = 1$



Hence,$(frac{-3}{p})=1$ iff, $pequiv1mod3$.



Since, there is $u in mathbb{Z}$ such that, $-3equiv u^2pmod{p}$



Consider the lattice defined by $L={(a,b)inmathbb{Z}^2, : ,aequiv ubpmod p}$ generated by $(u,1)$ and $(0,p)$. $L$ has index $p$ in $mathbb{Z}^2$, and area of its fundamental domain is $p$. Now, consider an ellipse $E_n$ defined by $x^2+3y^2=n$, then the area of $E_n=frac{pi n}{sqrt3}>1.8n$



Choose, $n=2.3 p$, then Area of $E_{n}>4p$ and $E_ncap L$ has a non zero point $(a,b)$.



Now, $a^2+3b^2equiv(ub)^2+3b^2equiv b^2(u^2+3)equiv0 pmod p$.



Since, $(a,b)in E_n implies a^2+3b^2<2.3p$ we have $a^2+3b^2=p,2p$.



But, $a^2+3b^2=2p implies a^2equiv 2p pmod 3 equiv 2 pmod 3$ contradiction !!



Therefore, $a^2+3b^2=p$.






share|cite|improve this answer











$endgroup$



$(frac{p}{3})=(frac{-3}{p})(frac{p}{3})=(frac{-1}{p})(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(frac{3}{p})(frac{p}{3})=(-1)^{frac{p-1}{2}}(-1)^{frac{p-1}{2}frac{3-1}{2}} = 1$



Hence,$(frac{-3}{p})=1$ iff, $pequiv1mod3$.



Since, there is $u in mathbb{Z}$ such that, $-3equiv u^2pmod{p}$



Consider the lattice defined by $L={(a,b)inmathbb{Z}^2, : ,aequiv ubpmod p}$ generated by $(u,1)$ and $(0,p)$. $L$ has index $p$ in $mathbb{Z}^2$, and area of its fundamental domain is $p$. Now, consider an ellipse $E_n$ defined by $x^2+3y^2=n$, then the area of $E_n=frac{pi n}{sqrt3}>1.8n$



Choose, $n=2.3 p$, then Area of $E_{n}>4p$ and $E_ncap L$ has a non zero point $(a,b)$.



Now, $a^2+3b^2equiv(ub)^2+3b^2equiv b^2(u^2+3)equiv0 pmod p$.



Since, $(a,b)in E_n implies a^2+3b^2<2.3p$ we have $a^2+3b^2=p,2p$.



But, $a^2+3b^2=2p implies a^2equiv 2p pmod 3 equiv 2 pmod 3$ contradiction !!



Therefore, $a^2+3b^2=p$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Jan 1 at 21:31

























answered Feb 22 '14 at 13:22









r9mr9m

13.3k24171




13.3k24171












  • $begingroup$
    How did you reach your very first equality??
    $endgroup$
    – DonAntonio
    Feb 22 '14 at 14:17










  • $begingroup$
    @DonAntonio : Edited.
    $endgroup$
    – r9m
    Feb 22 '14 at 14:47






  • 1




    $begingroup$
    Thank you for your answer! giving this one to Jack
    $endgroup$
    – Eliran Koren
    Feb 22 '14 at 15:24






  • 1




    $begingroup$
    Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:21








  • 1




    $begingroup$
    In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:25


















  • $begingroup$
    How did you reach your very first equality??
    $endgroup$
    – DonAntonio
    Feb 22 '14 at 14:17










  • $begingroup$
    @DonAntonio : Edited.
    $endgroup$
    – r9m
    Feb 22 '14 at 14:47






  • 1




    $begingroup$
    Thank you for your answer! giving this one to Jack
    $endgroup$
    – Eliran Koren
    Feb 22 '14 at 15:24






  • 1




    $begingroup$
    Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:21








  • 1




    $begingroup$
    In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
    $endgroup$
    – Ryu Dae Sick
    Dec 31 '18 at 5:25
















$begingroup$
How did you reach your very first equality??
$endgroup$
– DonAntonio
Feb 22 '14 at 14:17




$begingroup$
How did you reach your very first equality??
$endgroup$
– DonAntonio
Feb 22 '14 at 14:17












$begingroup$
@DonAntonio : Edited.
$endgroup$
– r9m
Feb 22 '14 at 14:47




$begingroup$
@DonAntonio : Edited.
$endgroup$
– r9m
Feb 22 '14 at 14:47




1




1




$begingroup$
Thank you for your answer! giving this one to Jack
$endgroup$
– Eliran Koren
Feb 22 '14 at 15:24




$begingroup$
Thank you for your answer! giving this one to Jack
$endgroup$
– Eliran Koren
Feb 22 '14 at 15:24




1




1




$begingroup$
Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
$endgroup$
– Ryu Dae Sick
Dec 31 '18 at 5:21






$begingroup$
Did you use Gauss quadratic reciprocity at first eqaulity? Right derivation is $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} {{3-1} over {2}} } = 1$, not $left( {{3} over {p}} right) left( {{p} over {3}} right) = (-1)^{ {{p-1} over {2}} } (-1)^{ {{3-1} over {2}} } = -1$.
$endgroup$
– Ryu Dae Sick
Dec 31 '18 at 5:21






1




1




$begingroup$
In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
$endgroup$
– Ryu Dae Sick
Dec 31 '18 at 5:25




$begingroup$
In fact, $p equiv 1 pmod{3} $, $1^2 equiv p pmod{3} implies left( {{p} over {3}} right) = 1$.
$endgroup$
– Ryu Dae Sick
Dec 31 '18 at 5:25


















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%2f685958%2flet-p-be-prime-and-frac-3p-1-prove-that-p-is-of-the-form-p-a23b2%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

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix