Number of Pythagorean Triples
$begingroup$
I am trying to solve an exercise from the book "Theory of Numbers" by B.M.Stewart. The exercise is the following one:
Let $T=2^ap_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, where $a ge0, nge0, 2<p_1<p_2<dots p_n, p_j$ odd prime numbers $ forall j=1 dots n,a_j ge1$ and let $S(T)$ indicate the number of primitive Pythagorean triplets of side $T$. Show that $S(T) = 2^{n-1}$ if $a=0$.
The primitive Pythagorean triplets are the solutions of $x^2+y^2=z^2$ where $gcd(x,y,z)=1$ and they are given by $$cases {x=2uv \y=u^2-v^2\z=u^2+v^2\u>v>0\ gcd(u,v)=1\ u notequiv v pmod2} $$
If $a=0$ then $T=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, so $T ne 2uv$. Then $T=y$ or $T=z$.
If $T=y$, then $$T=u^2-v^2=(u+v)(u-v)=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}.$$ So for $(u+v)$ I have $2^n$ possibilities because I can count the number of prime factors which is $tau(r)$ with $r=p_1p_2 dots p_n$.
From there I don't know how to proceed. Have you any idea?
number-theory pythagorean-triples divisor-counting-function
$endgroup$
add a comment |
$begingroup$
I am trying to solve an exercise from the book "Theory of Numbers" by B.M.Stewart. The exercise is the following one:
Let $T=2^ap_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, where $a ge0, nge0, 2<p_1<p_2<dots p_n, p_j$ odd prime numbers $ forall j=1 dots n,a_j ge1$ and let $S(T)$ indicate the number of primitive Pythagorean triplets of side $T$. Show that $S(T) = 2^{n-1}$ if $a=0$.
The primitive Pythagorean triplets are the solutions of $x^2+y^2=z^2$ where $gcd(x,y,z)=1$ and they are given by $$cases {x=2uv \y=u^2-v^2\z=u^2+v^2\u>v>0\ gcd(u,v)=1\ u notequiv v pmod2} $$
If $a=0$ then $T=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, so $T ne 2uv$. Then $T=y$ or $T=z$.
If $T=y$, then $$T=u^2-v^2=(u+v)(u-v)=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}.$$ So for $(u+v)$ I have $2^n$ possibilities because I can count the number of prime factors which is $tau(r)$ with $r=p_1p_2 dots p_n$.
From there I don't know how to proceed. Have you any idea?
number-theory pythagorean-triples divisor-counting-function
$endgroup$
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26
add a comment |
$begingroup$
I am trying to solve an exercise from the book "Theory of Numbers" by B.M.Stewart. The exercise is the following one:
Let $T=2^ap_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, where $a ge0, nge0, 2<p_1<p_2<dots p_n, p_j$ odd prime numbers $ forall j=1 dots n,a_j ge1$ and let $S(T)$ indicate the number of primitive Pythagorean triplets of side $T$. Show that $S(T) = 2^{n-1}$ if $a=0$.
The primitive Pythagorean triplets are the solutions of $x^2+y^2=z^2$ where $gcd(x,y,z)=1$ and they are given by $$cases {x=2uv \y=u^2-v^2\z=u^2+v^2\u>v>0\ gcd(u,v)=1\ u notequiv v pmod2} $$
If $a=0$ then $T=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, so $T ne 2uv$. Then $T=y$ or $T=z$.
If $T=y$, then $$T=u^2-v^2=(u+v)(u-v)=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}.$$ So for $(u+v)$ I have $2^n$ possibilities because I can count the number of prime factors which is $tau(r)$ with $r=p_1p_2 dots p_n$.
From there I don't know how to proceed. Have you any idea?
number-theory pythagorean-triples divisor-counting-function
$endgroup$
I am trying to solve an exercise from the book "Theory of Numbers" by B.M.Stewart. The exercise is the following one:
Let $T=2^ap_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, where $a ge0, nge0, 2<p_1<p_2<dots p_n, p_j$ odd prime numbers $ forall j=1 dots n,a_j ge1$ and let $S(T)$ indicate the number of primitive Pythagorean triplets of side $T$. Show that $S(T) = 2^{n-1}$ if $a=0$.
The primitive Pythagorean triplets are the solutions of $x^2+y^2=z^2$ where $gcd(x,y,z)=1$ and they are given by $$cases {x=2uv \y=u^2-v^2\z=u^2+v^2\u>v>0\ gcd(u,v)=1\ u notequiv v pmod2} $$
If $a=0$ then $T=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}$, so $T ne 2uv$. Then $T=y$ or $T=z$.
If $T=y$, then $$T=u^2-v^2=(u+v)(u-v)=p_1^{a_1}p_2^{a_2} dots p_n^{a_n}.$$ So for $(u+v)$ I have $2^n$ possibilities because I can count the number of prime factors which is $tau(r)$ with $r=p_1p_2 dots p_n$.
From there I don't know how to proceed. Have you any idea?
number-theory pythagorean-triples divisor-counting-function
number-theory pythagorean-triples divisor-counting-function
asked Jan 24 at 15:55
Phi_24Phi_24
1938
1938
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26
add a comment |
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You're awfully close, if you accept my comment that only the $T=y$ case needs to be considered. It follows from $gcd(u,v)=1, u notequiv v pmod2$ that $gcd(u+v,u-v)=1.$ There are $2^n$ ways to split $T$ up into a pair of relative prime factors, and the larger one must be $u+v,$ so you just solve two linear equations for $u$ and $v$.
EDIT Suppose we had $T=3^2cdot5cdot7.$ We could split this into two the factors $9$ and $35$. Then we would have to solve $$begin{align}u+v &=35\u-v&=9end{align}$$ so $u=22,v=13.$
We have to divide the number of solutions by $2$ because we could always have to make $u+v$ the larger factor, so half the choices are inadmissible.
$endgroup$
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
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
});
}
});
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%2f3086024%2fnumber-of-pythagorean-triples%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
$begingroup$
You're awfully close, if you accept my comment that only the $T=y$ case needs to be considered. It follows from $gcd(u,v)=1, u notequiv v pmod2$ that $gcd(u+v,u-v)=1.$ There are $2^n$ ways to split $T$ up into a pair of relative prime factors, and the larger one must be $u+v,$ so you just solve two linear equations for $u$ and $v$.
EDIT Suppose we had $T=3^2cdot5cdot7.$ We could split this into two the factors $9$ and $35$. Then we would have to solve $$begin{align}u+v &=35\u-v&=9end{align}$$ so $u=22,v=13.$
We have to divide the number of solutions by $2$ because we could always have to make $u+v$ the larger factor, so half the choices are inadmissible.
$endgroup$
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
add a comment |
$begingroup$
You're awfully close, if you accept my comment that only the $T=y$ case needs to be considered. It follows from $gcd(u,v)=1, u notequiv v pmod2$ that $gcd(u+v,u-v)=1.$ There are $2^n$ ways to split $T$ up into a pair of relative prime factors, and the larger one must be $u+v,$ so you just solve two linear equations for $u$ and $v$.
EDIT Suppose we had $T=3^2cdot5cdot7.$ We could split this into two the factors $9$ and $35$. Then we would have to solve $$begin{align}u+v &=35\u-v&=9end{align}$$ so $u=22,v=13.$
We have to divide the number of solutions by $2$ because we could always have to make $u+v$ the larger factor, so half the choices are inadmissible.
$endgroup$
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
add a comment |
$begingroup$
You're awfully close, if you accept my comment that only the $T=y$ case needs to be considered. It follows from $gcd(u,v)=1, u notequiv v pmod2$ that $gcd(u+v,u-v)=1.$ There are $2^n$ ways to split $T$ up into a pair of relative prime factors, and the larger one must be $u+v,$ so you just solve two linear equations for $u$ and $v$.
EDIT Suppose we had $T=3^2cdot5cdot7.$ We could split this into two the factors $9$ and $35$. Then we would have to solve $$begin{align}u+v &=35\u-v&=9end{align}$$ so $u=22,v=13.$
We have to divide the number of solutions by $2$ because we could always have to make $u+v$ the larger factor, so half the choices are inadmissible.
$endgroup$
You're awfully close, if you accept my comment that only the $T=y$ case needs to be considered. It follows from $gcd(u,v)=1, u notequiv v pmod2$ that $gcd(u+v,u-v)=1.$ There are $2^n$ ways to split $T$ up into a pair of relative prime factors, and the larger one must be $u+v,$ so you just solve two linear equations for $u$ and $v$.
EDIT Suppose we had $T=3^2cdot5cdot7.$ We could split this into two the factors $9$ and $35$. Then we would have to solve $$begin{align}u+v &=35\u-v&=9end{align}$$ so $u=22,v=13.$
We have to divide the number of solutions by $2$ because we could always have to make $u+v$ the larger factor, so half the choices are inadmissible.
edited Jan 24 at 17:54
answered Jan 24 at 16:39
saulspatzsaulspatz
16.6k31333
16.6k31333
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
add a comment |
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
$begingroup$
I'm sorry but I think I am not able to see the linear equations. Is the solution $2^{n-1}$ because $u-v neq 1$ (I don't see why) and so I can only make $2^{n-1}$ choices for $u+v$?
$endgroup$
– Phi_24
Jan 24 at 17:38
add a comment |
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.
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%2f3086024%2fnumber-of-pythagorean-triples%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
$begingroup$
I think by "side" they mean "leg," that is, not the hypotenuse. Otherwise, consider $T=5.$ The formula gives one triple, but we have $3,4,5$ and $5,12,13.$ So I think you don't need to consider $T=z.$
$endgroup$
– saulspatz
Jan 24 at 16:26