If a prime $p$ divides $n^2$ then it also divides $n$ - Is this proof correct?
I'm learning Real Analysis by myself and I wanted to prove that if a prime $p$ divides $n^2$ where $n$ is an integer, then $p$ divides $n$ itself. I saw that proving this is the same as saying that the prime factors of $n^2$ are "the same" than those of $n$.
In this case, assume there exists a prime factor $a_q$ in $n^2$ which is not in $n$ (proof by contradiction). By Fundamental Theorem of Arithmetic, we can represent $n^2$ as $n^2= a_1 * a_2 * ... * a_x * a_q$, where every $a$ is prime and $n=k_1 * k_2 * ... * k_y$ (every $k$ is also prime). We know that $frac{n^2}{n}=n$. So (by susbstituting):
$frac{n^2}{n}= frac{a_1*...*a_x*a_q}{k_1*...*k_y}=n rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q}$
Because $frac{n}{a_q}$ it's not an integer (initial statement), there's at least one $a_s$ in the left side of the equation that is not divisible by any $k$. Now we have two factors of $n^2$ that don't divide $n$. We can repeat this process,
$frac{a_1*...*a_x*a_s}{k_1*...*k_y}=frac{n}{a_q} rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q*a_s}$,
for each prime factor of $n^2$ which means that there's no factor $a_i$ in $n^2$ divisible by any factor $k_j$ of $n$. But we knew that $frac{n^2}{n}=n$, hence we have a contradiction ($n^2$ is not divisible by $n$). So there's no prime factor $p$ in $n^2$ that does not divide $n$ itself $rightarrow$ every prime factor $p$ in $n^2$ also divides $n$.
I'm obviously not an expert in demonstrations so I want to know if this is a valid argument. I'm also aware of Euclid's Lemma, but for this case, ignore it.
real-analysis proof-verification prime-factorization square-numbers natural-numbers
New contributor
add a comment |
I'm learning Real Analysis by myself and I wanted to prove that if a prime $p$ divides $n^2$ where $n$ is an integer, then $p$ divides $n$ itself. I saw that proving this is the same as saying that the prime factors of $n^2$ are "the same" than those of $n$.
In this case, assume there exists a prime factor $a_q$ in $n^2$ which is not in $n$ (proof by contradiction). By Fundamental Theorem of Arithmetic, we can represent $n^2$ as $n^2= a_1 * a_2 * ... * a_x * a_q$, where every $a$ is prime and $n=k_1 * k_2 * ... * k_y$ (every $k$ is also prime). We know that $frac{n^2}{n}=n$. So (by susbstituting):
$frac{n^2}{n}= frac{a_1*...*a_x*a_q}{k_1*...*k_y}=n rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q}$
Because $frac{n}{a_q}$ it's not an integer (initial statement), there's at least one $a_s$ in the left side of the equation that is not divisible by any $k$. Now we have two factors of $n^2$ that don't divide $n$. We can repeat this process,
$frac{a_1*...*a_x*a_s}{k_1*...*k_y}=frac{n}{a_q} rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q*a_s}$,
for each prime factor of $n^2$ which means that there's no factor $a_i$ in $n^2$ divisible by any factor $k_j$ of $n$. But we knew that $frac{n^2}{n}=n$, hence we have a contradiction ($n^2$ is not divisible by $n$). So there's no prime factor $p$ in $n^2$ that does not divide $n$ itself $rightarrow$ every prime factor $p$ in $n^2$ also divides $n$.
I'm obviously not an expert in demonstrations so I want to know if this is a valid argument. I'm also aware of Euclid's Lemma, but for this case, ignore it.
real-analysis proof-verification prime-factorization square-numbers natural-numbers
New contributor
1
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59
add a comment |
I'm learning Real Analysis by myself and I wanted to prove that if a prime $p$ divides $n^2$ where $n$ is an integer, then $p$ divides $n$ itself. I saw that proving this is the same as saying that the prime factors of $n^2$ are "the same" than those of $n$.
In this case, assume there exists a prime factor $a_q$ in $n^2$ which is not in $n$ (proof by contradiction). By Fundamental Theorem of Arithmetic, we can represent $n^2$ as $n^2= a_1 * a_2 * ... * a_x * a_q$, where every $a$ is prime and $n=k_1 * k_2 * ... * k_y$ (every $k$ is also prime). We know that $frac{n^2}{n}=n$. So (by susbstituting):
$frac{n^2}{n}= frac{a_1*...*a_x*a_q}{k_1*...*k_y}=n rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q}$
Because $frac{n}{a_q}$ it's not an integer (initial statement), there's at least one $a_s$ in the left side of the equation that is not divisible by any $k$. Now we have two factors of $n^2$ that don't divide $n$. We can repeat this process,
$frac{a_1*...*a_x*a_s}{k_1*...*k_y}=frac{n}{a_q} rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q*a_s}$,
for each prime factor of $n^2$ which means that there's no factor $a_i$ in $n^2$ divisible by any factor $k_j$ of $n$. But we knew that $frac{n^2}{n}=n$, hence we have a contradiction ($n^2$ is not divisible by $n$). So there's no prime factor $p$ in $n^2$ that does not divide $n$ itself $rightarrow$ every prime factor $p$ in $n^2$ also divides $n$.
I'm obviously not an expert in demonstrations so I want to know if this is a valid argument. I'm also aware of Euclid's Lemma, but for this case, ignore it.
real-analysis proof-verification prime-factorization square-numbers natural-numbers
New contributor
I'm learning Real Analysis by myself and I wanted to prove that if a prime $p$ divides $n^2$ where $n$ is an integer, then $p$ divides $n$ itself. I saw that proving this is the same as saying that the prime factors of $n^2$ are "the same" than those of $n$.
In this case, assume there exists a prime factor $a_q$ in $n^2$ which is not in $n$ (proof by contradiction). By Fundamental Theorem of Arithmetic, we can represent $n^2$ as $n^2= a_1 * a_2 * ... * a_x * a_q$, where every $a$ is prime and $n=k_1 * k_2 * ... * k_y$ (every $k$ is also prime). We know that $frac{n^2}{n}=n$. So (by susbstituting):
$frac{n^2}{n}= frac{a_1*...*a_x*a_q}{k_1*...*k_y}=n rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q}$
Because $frac{n}{a_q}$ it's not an integer (initial statement), there's at least one $a_s$ in the left side of the equation that is not divisible by any $k$. Now we have two factors of $n^2$ that don't divide $n$. We can repeat this process,
$frac{a_1*...*a_x*a_s}{k_1*...*k_y}=frac{n}{a_q} rightarrow frac{a_1*...*a_x}{k_1*...*k_y}=frac{n}{a_q*a_s}$,
for each prime factor of $n^2$ which means that there's no factor $a_i$ in $n^2$ divisible by any factor $k_j$ of $n$. But we knew that $frac{n^2}{n}=n$, hence we have a contradiction ($n^2$ is not divisible by $n$). So there's no prime factor $p$ in $n^2$ that does not divide $n$ itself $rightarrow$ every prime factor $p$ in $n^2$ also divides $n$.
I'm obviously not an expert in demonstrations so I want to know if this is a valid argument. I'm also aware of Euclid's Lemma, but for this case, ignore it.
real-analysis proof-verification prime-factorization square-numbers natural-numbers
real-analysis proof-verification prime-factorization square-numbers natural-numbers
New contributor
New contributor
New contributor
asked Jan 4 at 18:15
Data SpaceData Space
233
233
New contributor
New contributor
1
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59
add a comment |
1
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59
1
1
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59
add a comment |
2 Answers
2
active
oldest
votes
A shorter way would be to write $n=p_1^{alpha_1}cdots p_k^{alpha_k}$ (where each $alpha_i>0$) by the Fundamental Theorem of Arithmetic. Then $n^2= p_1^{2alpha_1}cdots p_k^{2alpha_k}$. The only primes that divide $n^2$ are $p_1,cdots,p_k$ and these clearly also divide $n$.
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
|
show 3 more comments
Here is a different approach. Unique prime factorization of $n,$ for $1<nin Bbb N,$ follows from the Lemma that if $a,b,cin Bbb Z$ and $frac {ab}{c}in Bbb Z$ while $gcd (a,c)=1$ then $frac {b}{c}in Bbb Z.$ The Lemma follows from something called Bezout's Identity, although it is implicit in Euclid's algorithm for computing a $gcd$ : For any $a,bin Bbb Z$ (not both $0$) there exist $x,y in Bbb Z$ such that $ax+by=gcd (a,b).$
Let $p$ be prime and let $nin Bbb Z$ such that $p|n^2.$ Let $m=gcd (p,n).$ Since $m$ divides the prime $p$ and $mge 1,$ we have $m=1$ or $m=p.$
Now there exist $x,yin Bbb Z$ such that $px+ny=m,$ so $frac {(m-px)^2}{p}=frac {n^2y^2}{p}=frac {n^2}{p}cdot y^2in Bbb Z.$ But if $m=1$ then $frac {(m-px)^2}{p}=frac {1-2px+p^2x^2}{p}=frac {1}{p}-2x+px^2in Bbb Z,$ implying $frac {1}{p}in Bbb Z,$ which is absurd.
So, since we can't have $m=1,$ we have $m=p$. And since $m=gcd (p,n)|n,$ we have therefore $p|n.$
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
add a comment |
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
});
}
});
Data Space is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3061922%2fif-a-prime-p-divides-n2-then-it-also-divides-n-is-this-proof-correct%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
A shorter way would be to write $n=p_1^{alpha_1}cdots p_k^{alpha_k}$ (where each $alpha_i>0$) by the Fundamental Theorem of Arithmetic. Then $n^2= p_1^{2alpha_1}cdots p_k^{2alpha_k}$. The only primes that divide $n^2$ are $p_1,cdots,p_k$ and these clearly also divide $n$.
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
|
show 3 more comments
A shorter way would be to write $n=p_1^{alpha_1}cdots p_k^{alpha_k}$ (where each $alpha_i>0$) by the Fundamental Theorem of Arithmetic. Then $n^2= p_1^{2alpha_1}cdots p_k^{2alpha_k}$. The only primes that divide $n^2$ are $p_1,cdots,p_k$ and these clearly also divide $n$.
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
|
show 3 more comments
A shorter way would be to write $n=p_1^{alpha_1}cdots p_k^{alpha_k}$ (where each $alpha_i>0$) by the Fundamental Theorem of Arithmetic. Then $n^2= p_1^{2alpha_1}cdots p_k^{2alpha_k}$. The only primes that divide $n^2$ are $p_1,cdots,p_k$ and these clearly also divide $n$.
A shorter way would be to write $n=p_1^{alpha_1}cdots p_k^{alpha_k}$ (where each $alpha_i>0$) by the Fundamental Theorem of Arithmetic. Then $n^2= p_1^{2alpha_1}cdots p_k^{2alpha_k}$. The only primes that divide $n^2$ are $p_1,cdots,p_k$ and these clearly also divide $n$.
edited Jan 4 at 19:08
answered Jan 4 at 18:29
Alex R.Alex R.
24.8k12452
24.8k12452
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
|
show 3 more comments
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
Woah, thanks! I'm just a beginner, so this helps me a lot.
– Data Space
Jan 4 at 18:40
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@DataSpace Unfortunately this answer is wrong - your proof is not correct. The claim in the first sentence of the 3rd paragraph is not true, e.g. $p/p^2$ is not an integer, but but there is no prime in the numerator that is not divisible by $p$.
– Bill Dubuque
Jan 4 at 19:06
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque If $frac{p}{p^2} = frac{n}{a_q}$ then $a_q = n*p$ (simple algebra), this contradicts the idea that every $a$ is prime. So your counterexample is not valid.Sorry for the delay :s
– Data Space
Jan 4 at 22:36
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@BillDubuque Nevertheless, it is true that this proof is not clear at all and contains argumentative"holes". It is, of course, a better idea to just take Alex's proof.
– Data Space
Jan 4 at 23:05
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
@DataSpace But I didn't claim it equals $n/a_q$. The point is that your argument doesn't handle such multiple factors that may occur in the (reducible) fraction.
– Bill Dubuque
Jan 5 at 0:02
|
show 3 more comments
Here is a different approach. Unique prime factorization of $n,$ for $1<nin Bbb N,$ follows from the Lemma that if $a,b,cin Bbb Z$ and $frac {ab}{c}in Bbb Z$ while $gcd (a,c)=1$ then $frac {b}{c}in Bbb Z.$ The Lemma follows from something called Bezout's Identity, although it is implicit in Euclid's algorithm for computing a $gcd$ : For any $a,bin Bbb Z$ (not both $0$) there exist $x,y in Bbb Z$ such that $ax+by=gcd (a,b).$
Let $p$ be prime and let $nin Bbb Z$ such that $p|n^2.$ Let $m=gcd (p,n).$ Since $m$ divides the prime $p$ and $mge 1,$ we have $m=1$ or $m=p.$
Now there exist $x,yin Bbb Z$ such that $px+ny=m,$ so $frac {(m-px)^2}{p}=frac {n^2y^2}{p}=frac {n^2}{p}cdot y^2in Bbb Z.$ But if $m=1$ then $frac {(m-px)^2}{p}=frac {1-2px+p^2x^2}{p}=frac {1}{p}-2x+px^2in Bbb Z,$ implying $frac {1}{p}in Bbb Z,$ which is absurd.
So, since we can't have $m=1,$ we have $m=p$. And since $m=gcd (p,n)|n,$ we have therefore $p|n.$
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
add a comment |
Here is a different approach. Unique prime factorization of $n,$ for $1<nin Bbb N,$ follows from the Lemma that if $a,b,cin Bbb Z$ and $frac {ab}{c}in Bbb Z$ while $gcd (a,c)=1$ then $frac {b}{c}in Bbb Z.$ The Lemma follows from something called Bezout's Identity, although it is implicit in Euclid's algorithm for computing a $gcd$ : For any $a,bin Bbb Z$ (not both $0$) there exist $x,y in Bbb Z$ such that $ax+by=gcd (a,b).$
Let $p$ be prime and let $nin Bbb Z$ such that $p|n^2.$ Let $m=gcd (p,n).$ Since $m$ divides the prime $p$ and $mge 1,$ we have $m=1$ or $m=p.$
Now there exist $x,yin Bbb Z$ such that $px+ny=m,$ so $frac {(m-px)^2}{p}=frac {n^2y^2}{p}=frac {n^2}{p}cdot y^2in Bbb Z.$ But if $m=1$ then $frac {(m-px)^2}{p}=frac {1-2px+p^2x^2}{p}=frac {1}{p}-2x+px^2in Bbb Z,$ implying $frac {1}{p}in Bbb Z,$ which is absurd.
So, since we can't have $m=1,$ we have $m=p$. And since $m=gcd (p,n)|n,$ we have therefore $p|n.$
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
add a comment |
Here is a different approach. Unique prime factorization of $n,$ for $1<nin Bbb N,$ follows from the Lemma that if $a,b,cin Bbb Z$ and $frac {ab}{c}in Bbb Z$ while $gcd (a,c)=1$ then $frac {b}{c}in Bbb Z.$ The Lemma follows from something called Bezout's Identity, although it is implicit in Euclid's algorithm for computing a $gcd$ : For any $a,bin Bbb Z$ (not both $0$) there exist $x,y in Bbb Z$ such that $ax+by=gcd (a,b).$
Let $p$ be prime and let $nin Bbb Z$ such that $p|n^2.$ Let $m=gcd (p,n).$ Since $m$ divides the prime $p$ and $mge 1,$ we have $m=1$ or $m=p.$
Now there exist $x,yin Bbb Z$ such that $px+ny=m,$ so $frac {(m-px)^2}{p}=frac {n^2y^2}{p}=frac {n^2}{p}cdot y^2in Bbb Z.$ But if $m=1$ then $frac {(m-px)^2}{p}=frac {1-2px+p^2x^2}{p}=frac {1}{p}-2x+px^2in Bbb Z,$ implying $frac {1}{p}in Bbb Z,$ which is absurd.
So, since we can't have $m=1,$ we have $m=p$. And since $m=gcd (p,n)|n,$ we have therefore $p|n.$
Here is a different approach. Unique prime factorization of $n,$ for $1<nin Bbb N,$ follows from the Lemma that if $a,b,cin Bbb Z$ and $frac {ab}{c}in Bbb Z$ while $gcd (a,c)=1$ then $frac {b}{c}in Bbb Z.$ The Lemma follows from something called Bezout's Identity, although it is implicit in Euclid's algorithm for computing a $gcd$ : For any $a,bin Bbb Z$ (not both $0$) there exist $x,y in Bbb Z$ such that $ax+by=gcd (a,b).$
Let $p$ be prime and let $nin Bbb Z$ such that $p|n^2.$ Let $m=gcd (p,n).$ Since $m$ divides the prime $p$ and $mge 1,$ we have $m=1$ or $m=p.$
Now there exist $x,yin Bbb Z$ such that $px+ny=m,$ so $frac {(m-px)^2}{p}=frac {n^2y^2}{p}=frac {n^2}{p}cdot y^2in Bbb Z.$ But if $m=1$ then $frac {(m-px)^2}{p}=frac {1-2px+p^2x^2}{p}=frac {1}{p}-2x+px^2in Bbb Z,$ implying $frac {1}{p}in Bbb Z,$ which is absurd.
So, since we can't have $m=1,$ we have $m=p$. And since $m=gcd (p,n)|n,$ we have therefore $p|n.$
answered Jan 5 at 2:42
DanielWainfleetDanielWainfleet
34.5k31648
34.5k31648
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
add a comment |
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
As matter of style, we could also say that $p|n^2implies$ $ p|n^2y^2=$ $(m-px)^2=$ $=m^2+p(-2mx+px^2)implies$ $ p|m^2,$ to show that $mne 1$.
– DanielWainfleet
Jan 5 at 2:55
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
<3 I really liked this proof, thanks for such logical piece.
– Data Space
Jan 5 at 2:57
2
2
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
@DataSpace If you're going to permit Bezout then it's easy: $$,pmid nn, pnmid n,Rightarrow, kn!+!jp = 1,Rightarrow, pmid knn!+!jpn = (kn!+!jp)n = nqquadqquad$$ Or, equivalently said in terms of gcds $ pmid nn,pn,Rightarrow, pmid (nn,pn)=(n,p)n = n. $ This is essentially a special-case of the Bezout-based proof of EL = Euclid's Lemma (see here for various proofs of EL)
– Bill Dubuque
Jan 5 at 3:39
add a comment |
Data Space is a new contributor. Be nice, and check out our Code of Conduct.
Data Space is a new contributor. Be nice, and check out our Code of Conduct.
Data Space is a new contributor. Be nice, and check out our Code of Conduct.
Data Space is a new contributor. Be nice, and check out our Code of Conduct.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3061922%2fif-a-prime-p-divides-n2-then-it-also-divides-n-is-this-proof-correct%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
As in the answer from Alex R., an important part of the Fundamental Theorem of Arithmetic is that for $1<nin Bbb Z^+,$ the finite sequence $p_1,...,p_m$ such that $n=prod_{j=1}^mp_j$ is $unique,$ up to a re-arrangement of the order of the terms $p_1,...,p_m$.
– DanielWainfleet
Jan 5 at 1:59