Solution to $x^2 equiv 1$ (mod $pq$), $p,q geq 3$ primes.
$begingroup$
Found the following piece online and got stuck:
Let $p,q geq 3$ be different primes. Show that there is an integer $x$ such that $x^2 equiv 1$ (mod pq) with $x$ neither congruent with $1$ or $−1$ (mod pq).
Would appreciate some help.
number-theory modular-arithmetic
$endgroup$
add a comment |
$begingroup$
Found the following piece online and got stuck:
Let $p,q geq 3$ be different primes. Show that there is an integer $x$ such that $x^2 equiv 1$ (mod pq) with $x$ neither congruent with $1$ or $−1$ (mod pq).
Would appreciate some help.
number-theory modular-arithmetic
$endgroup$
add a comment |
$begingroup$
Found the following piece online and got stuck:
Let $p,q geq 3$ be different primes. Show that there is an integer $x$ such that $x^2 equiv 1$ (mod pq) with $x$ neither congruent with $1$ or $−1$ (mod pq).
Would appreciate some help.
number-theory modular-arithmetic
$endgroup$
Found the following piece online and got stuck:
Let $p,q geq 3$ be different primes. Show that there is an integer $x$ such that $x^2 equiv 1$ (mod pq) with $x$ neither congruent with $1$ or $−1$ (mod pq).
Would appreciate some help.
number-theory modular-arithmetic
number-theory modular-arithmetic
edited Jan 15 at 0:52
undefined
asked Jan 15 at 0:45
undefinedundefined
305
305
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
By Bezout we have $Ap+Bq=1$. Now consider $x=Bq-Ap$, modulo $p$ and $q$.
$endgroup$
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
add a comment |
$begingroup$
By the Chinese Remainder Theorem, there exists $x$ such that $x equiv 1 pmod{p}$ and $x equiv -1 pmod{q}$. Then $x^2 equiv 1 pmod{p}$ and $x^2 equiv 1 pmod{q}$, so again by (the uniqueness part of) the Chinese Remainder Theorem it follows that $x^2 equiv 1 pmod{pq}$. However, we cannot have $x equiv 1 pmod{pq}$, or this would imply $x equiv 1 pmod{q}$, so $1 equiv -1 pmod{q} Rightarrow q mid 2$ contradicting the assumption that $q ge 3$. Similarly, from $p ge 3$ we get $x notequiv -1 pmod{pq}$.
$endgroup$
add a comment |
$begingroup$
I prefer somehow to have a "structural" explanation. By the CRT, we have an isomorphism of rings $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$. For $x in mathbf Z$, let us adopt the obvious notation $x_{pq}=(x_p , x_q)$ in the respective quotient rings. We must solve ${x_{pq}}^2=1_{pq}$ , or equivalently $(x_{pq}-1_{pq})(x_{pq}+1_{pq})=0_{pq}$, but we cannot conclude directly because $mathbf Z/pq$ admits divisors of zero, i.e. this ring is not a domain. Working in $mathbf Z/p times mathbf Z/q$ instead, we get immediately the necessary and sufficient condition $x_p=pm 1_p$ and $x_q=pm 1_q$ because $mathbf Z/p$ and $mathbf Z/q$ are fields. Moreover, $x_{pq}=1_{pq}$ iff $x_p=1_p$ and $x_q=1_q$. This means that, if $p$ and $q$ are odd, the non trivial solutions (viewed in $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$ ) are $(1_p , {-1}_q), ({-1}_p , 1_q)$ and $({-1}_p , {-1}_q)$ .
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f3073939%2fsolution-to-x2-equiv-1-mod-pq-p-q-geq-3-primes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
By Bezout we have $Ap+Bq=1$. Now consider $x=Bq-Ap$, modulo $p$ and $q$.
$endgroup$
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
add a comment |
$begingroup$
By Bezout we have $Ap+Bq=1$. Now consider $x=Bq-Ap$, modulo $p$ and $q$.
$endgroup$
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
add a comment |
$begingroup$
By Bezout we have $Ap+Bq=1$. Now consider $x=Bq-Ap$, modulo $p$ and $q$.
$endgroup$
By Bezout we have $Ap+Bq=1$. Now consider $x=Bq-Ap$, modulo $p$ and $q$.
answered Jan 15 at 0:52
Donald SplutterwitDonald Splutterwit
23.1k21446
23.1k21446
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
add a comment |
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
$x$ should be $neq $1 or -1 (mod $ pq $ )
$endgroup$
– Sota Antonino
Jan 15 at 0:56
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
@SotaAntonino With $p=3$ and $q=5$, You get $x=11$ ...
$endgroup$
– Donald Splutterwit
Jan 15 at 0:59
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
$begingroup$
$11 neq pm 1 pmod{15}$.
$endgroup$
– Donald Splutterwit
Jan 15 at 1:07
add a comment |
$begingroup$
By the Chinese Remainder Theorem, there exists $x$ such that $x equiv 1 pmod{p}$ and $x equiv -1 pmod{q}$. Then $x^2 equiv 1 pmod{p}$ and $x^2 equiv 1 pmod{q}$, so again by (the uniqueness part of) the Chinese Remainder Theorem it follows that $x^2 equiv 1 pmod{pq}$. However, we cannot have $x equiv 1 pmod{pq}$, or this would imply $x equiv 1 pmod{q}$, so $1 equiv -1 pmod{q} Rightarrow q mid 2$ contradicting the assumption that $q ge 3$. Similarly, from $p ge 3$ we get $x notequiv -1 pmod{pq}$.
$endgroup$
add a comment |
$begingroup$
By the Chinese Remainder Theorem, there exists $x$ such that $x equiv 1 pmod{p}$ and $x equiv -1 pmod{q}$. Then $x^2 equiv 1 pmod{p}$ and $x^2 equiv 1 pmod{q}$, so again by (the uniqueness part of) the Chinese Remainder Theorem it follows that $x^2 equiv 1 pmod{pq}$. However, we cannot have $x equiv 1 pmod{pq}$, or this would imply $x equiv 1 pmod{q}$, so $1 equiv -1 pmod{q} Rightarrow q mid 2$ contradicting the assumption that $q ge 3$. Similarly, from $p ge 3$ we get $x notequiv -1 pmod{pq}$.
$endgroup$
add a comment |
$begingroup$
By the Chinese Remainder Theorem, there exists $x$ such that $x equiv 1 pmod{p}$ and $x equiv -1 pmod{q}$. Then $x^2 equiv 1 pmod{p}$ and $x^2 equiv 1 pmod{q}$, so again by (the uniqueness part of) the Chinese Remainder Theorem it follows that $x^2 equiv 1 pmod{pq}$. However, we cannot have $x equiv 1 pmod{pq}$, or this would imply $x equiv 1 pmod{q}$, so $1 equiv -1 pmod{q} Rightarrow q mid 2$ contradicting the assumption that $q ge 3$. Similarly, from $p ge 3$ we get $x notequiv -1 pmod{pq}$.
$endgroup$
By the Chinese Remainder Theorem, there exists $x$ such that $x equiv 1 pmod{p}$ and $x equiv -1 pmod{q}$. Then $x^2 equiv 1 pmod{p}$ and $x^2 equiv 1 pmod{q}$, so again by (the uniqueness part of) the Chinese Remainder Theorem it follows that $x^2 equiv 1 pmod{pq}$. However, we cannot have $x equiv 1 pmod{pq}$, or this would imply $x equiv 1 pmod{q}$, so $1 equiv -1 pmod{q} Rightarrow q mid 2$ contradicting the assumption that $q ge 3$. Similarly, from $p ge 3$ we get $x notequiv -1 pmod{pq}$.
answered Jan 15 at 1:28
Daniel ScheplerDaniel Schepler
9,4291821
9,4291821
add a comment |
add a comment |
$begingroup$
I prefer somehow to have a "structural" explanation. By the CRT, we have an isomorphism of rings $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$. For $x in mathbf Z$, let us adopt the obvious notation $x_{pq}=(x_p , x_q)$ in the respective quotient rings. We must solve ${x_{pq}}^2=1_{pq}$ , or equivalently $(x_{pq}-1_{pq})(x_{pq}+1_{pq})=0_{pq}$, but we cannot conclude directly because $mathbf Z/pq$ admits divisors of zero, i.e. this ring is not a domain. Working in $mathbf Z/p times mathbf Z/q$ instead, we get immediately the necessary and sufficient condition $x_p=pm 1_p$ and $x_q=pm 1_q$ because $mathbf Z/p$ and $mathbf Z/q$ are fields. Moreover, $x_{pq}=1_{pq}$ iff $x_p=1_p$ and $x_q=1_q$. This means that, if $p$ and $q$ are odd, the non trivial solutions (viewed in $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$ ) are $(1_p , {-1}_q), ({-1}_p , 1_q)$ and $({-1}_p , {-1}_q)$ .
$endgroup$
add a comment |
$begingroup$
I prefer somehow to have a "structural" explanation. By the CRT, we have an isomorphism of rings $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$. For $x in mathbf Z$, let us adopt the obvious notation $x_{pq}=(x_p , x_q)$ in the respective quotient rings. We must solve ${x_{pq}}^2=1_{pq}$ , or equivalently $(x_{pq}-1_{pq})(x_{pq}+1_{pq})=0_{pq}$, but we cannot conclude directly because $mathbf Z/pq$ admits divisors of zero, i.e. this ring is not a domain. Working in $mathbf Z/p times mathbf Z/q$ instead, we get immediately the necessary and sufficient condition $x_p=pm 1_p$ and $x_q=pm 1_q$ because $mathbf Z/p$ and $mathbf Z/q$ are fields. Moreover, $x_{pq}=1_{pq}$ iff $x_p=1_p$ and $x_q=1_q$. This means that, if $p$ and $q$ are odd, the non trivial solutions (viewed in $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$ ) are $(1_p , {-1}_q), ({-1}_p , 1_q)$ and $({-1}_p , {-1}_q)$ .
$endgroup$
add a comment |
$begingroup$
I prefer somehow to have a "structural" explanation. By the CRT, we have an isomorphism of rings $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$. For $x in mathbf Z$, let us adopt the obvious notation $x_{pq}=(x_p , x_q)$ in the respective quotient rings. We must solve ${x_{pq}}^2=1_{pq}$ , or equivalently $(x_{pq}-1_{pq})(x_{pq}+1_{pq})=0_{pq}$, but we cannot conclude directly because $mathbf Z/pq$ admits divisors of zero, i.e. this ring is not a domain. Working in $mathbf Z/p times mathbf Z/q$ instead, we get immediately the necessary and sufficient condition $x_p=pm 1_p$ and $x_q=pm 1_q$ because $mathbf Z/p$ and $mathbf Z/q$ are fields. Moreover, $x_{pq}=1_{pq}$ iff $x_p=1_p$ and $x_q=1_q$. This means that, if $p$ and $q$ are odd, the non trivial solutions (viewed in $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$ ) are $(1_p , {-1}_q), ({-1}_p , 1_q)$ and $({-1}_p , {-1}_q)$ .
$endgroup$
I prefer somehow to have a "structural" explanation. By the CRT, we have an isomorphism of rings $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$. For $x in mathbf Z$, let us adopt the obvious notation $x_{pq}=(x_p , x_q)$ in the respective quotient rings. We must solve ${x_{pq}}^2=1_{pq}$ , or equivalently $(x_{pq}-1_{pq})(x_{pq}+1_{pq})=0_{pq}$, but we cannot conclude directly because $mathbf Z/pq$ admits divisors of zero, i.e. this ring is not a domain. Working in $mathbf Z/p times mathbf Z/q$ instead, we get immediately the necessary and sufficient condition $x_p=pm 1_p$ and $x_q=pm 1_q$ because $mathbf Z/p$ and $mathbf Z/q$ are fields. Moreover, $x_{pq}=1_{pq}$ iff $x_p=1_p$ and $x_q=1_q$. This means that, if $p$ and $q$ are odd, the non trivial solutions (viewed in $mathbf Z/pqcong mathbf Z/p times mathbf Z/q$ ) are $(1_p , {-1}_q), ({-1}_p , 1_q)$ and $({-1}_p , {-1}_q)$ .
answered Jan 15 at 21:03
nguyen quang donguyen quang do
9,2141724
9,2141724
add a comment |
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%2f3073939%2fsolution-to-x2-equiv-1-mod-pq-p-q-geq-3-primes%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