Solving $x^2 equiv 140 pmod{221}$ [duplicate]
$begingroup$
This question already has an answer here:
Find all solutions to $x^2equiv 1pmod {91}$
3 answers
I'm stuck with the last part of this question: solve $x^2 equiv 140 pmod{221}$.
We know that $140 = 7 times2^2times5$ and $221 = 13 times 17$.
We split the original congruence in two, so we have:
$x^2 equiv 140 pmod{13}$
$x^2 equiv 140 pmod{17}$
Applying the properties of moduli we have:
$x^2 equiv 10pmod{13} rightarrow x=pm6$
$x^2 equiv 4pmod{17} rightarrow x=pm2$
After this point, it's not clear for me how I can arrive to the complete solution. Any advice?
elementary-number-theory modular-arithmetic
$endgroup$
marked as duplicate by Nosrati, Bill Dubuque
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 3 '18 at 17:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
$begingroup$
This question already has an answer here:
Find all solutions to $x^2equiv 1pmod {91}$
3 answers
I'm stuck with the last part of this question: solve $x^2 equiv 140 pmod{221}$.
We know that $140 = 7 times2^2times5$ and $221 = 13 times 17$.
We split the original congruence in two, so we have:
$x^2 equiv 140 pmod{13}$
$x^2 equiv 140 pmod{17}$
Applying the properties of moduli we have:
$x^2 equiv 10pmod{13} rightarrow x=pm6$
$x^2 equiv 4pmod{17} rightarrow x=pm2$
After this point, it's not clear for me how I can arrive to the complete solution. Any advice?
elementary-number-theory modular-arithmetic
$endgroup$
marked as duplicate by Nosrati, Bill Dubuque
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 3 '18 at 17:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
1
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28
add a comment |
$begingroup$
This question already has an answer here:
Find all solutions to $x^2equiv 1pmod {91}$
3 answers
I'm stuck with the last part of this question: solve $x^2 equiv 140 pmod{221}$.
We know that $140 = 7 times2^2times5$ and $221 = 13 times 17$.
We split the original congruence in two, so we have:
$x^2 equiv 140 pmod{13}$
$x^2 equiv 140 pmod{17}$
Applying the properties of moduli we have:
$x^2 equiv 10pmod{13} rightarrow x=pm6$
$x^2 equiv 4pmod{17} rightarrow x=pm2$
After this point, it's not clear for me how I can arrive to the complete solution. Any advice?
elementary-number-theory modular-arithmetic
$endgroup$
This question already has an answer here:
Find all solutions to $x^2equiv 1pmod {91}$
3 answers
I'm stuck with the last part of this question: solve $x^2 equiv 140 pmod{221}$.
We know that $140 = 7 times2^2times5$ and $221 = 13 times 17$.
We split the original congruence in two, so we have:
$x^2 equiv 140 pmod{13}$
$x^2 equiv 140 pmod{17}$
Applying the properties of moduli we have:
$x^2 equiv 10pmod{13} rightarrow x=pm6$
$x^2 equiv 4pmod{17} rightarrow x=pm2$
After this point, it's not clear for me how I can arrive to the complete solution. Any advice?
This question already has an answer here:
Find all solutions to $x^2equiv 1pmod {91}$
3 answers
elementary-number-theory modular-arithmetic
elementary-number-theory modular-arithmetic
edited Dec 3 '18 at 9:55
Ruslan
3,72721533
3,72721533
asked Dec 3 '18 at 9:47
AlessarAlessar
313115
313115
marked as duplicate by Nosrati, Bill Dubuque
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 3 '18 at 17:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Nosrati, Bill Dubuque
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 3 '18 at 17:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
1
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28
add a comment |
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
1
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
1
1
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Now you use the Chinese Remainder Theorem. For instance, let $xinmathbb Z$ be such that $xequiv6pmod{13}$ and that $xequiv-2pmod{17}$. Since $13$ and $17$ are coprime, there are integers $alpha$ and $beta$ such that $13alpha+17beta=1$. Using the generalized Euclid algorithm, you get that, for instance, $1=4times13-3times17$. Therefore,$$8=6-(-2)=32times13-24times17.$$So,$$6-32times13=-2-24times17(=-410).$$So, take this number: $-410$. Or, better still, take $32$ ($-410equiv32pmod{221}$).
$endgroup$
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
|
show 3 more comments
$begingroup$
Note that
$$x^2 -140equiv x^2 -140-221=x^2−19^2=(x-19)(x+19)pmod{221}.$$
It follows that
$$xequiv pm 19equiv pm 6 pmod{13}quadtext{and}quad xequiv pm 19equiv pm 2 pmod{17}.$$ Hence we have four solutions (actually we already have two of them, i.e. $19$ and $-19$) that can be obtained by using the Chinese Remainder Theorem:
$$begin{cases}xequiv 6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}\
begin{cases}xequiv -6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv -6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
Can you take it from here?
P.S. By the first remark, $pm 19$ are two solutions and all you need is to solve just ONE system:
$$begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
if $m$ is the solution then the fourth one is $-m$.
$endgroup$
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
|
show 1 more comment
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Now you use the Chinese Remainder Theorem. For instance, let $xinmathbb Z$ be such that $xequiv6pmod{13}$ and that $xequiv-2pmod{17}$. Since $13$ and $17$ are coprime, there are integers $alpha$ and $beta$ such that $13alpha+17beta=1$. Using the generalized Euclid algorithm, you get that, for instance, $1=4times13-3times17$. Therefore,$$8=6-(-2)=32times13-24times17.$$So,$$6-32times13=-2-24times17(=-410).$$So, take this number: $-410$. Or, better still, take $32$ ($-410equiv32pmod{221}$).
$endgroup$
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
|
show 3 more comments
$begingroup$
Now you use the Chinese Remainder Theorem. For instance, let $xinmathbb Z$ be such that $xequiv6pmod{13}$ and that $xequiv-2pmod{17}$. Since $13$ and $17$ are coprime, there are integers $alpha$ and $beta$ such that $13alpha+17beta=1$. Using the generalized Euclid algorithm, you get that, for instance, $1=4times13-3times17$. Therefore,$$8=6-(-2)=32times13-24times17.$$So,$$6-32times13=-2-24times17(=-410).$$So, take this number: $-410$. Or, better still, take $32$ ($-410equiv32pmod{221}$).
$endgroup$
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
|
show 3 more comments
$begingroup$
Now you use the Chinese Remainder Theorem. For instance, let $xinmathbb Z$ be such that $xequiv6pmod{13}$ and that $xequiv-2pmod{17}$. Since $13$ and $17$ are coprime, there are integers $alpha$ and $beta$ such that $13alpha+17beta=1$. Using the generalized Euclid algorithm, you get that, for instance, $1=4times13-3times17$. Therefore,$$8=6-(-2)=32times13-24times17.$$So,$$6-32times13=-2-24times17(=-410).$$So, take this number: $-410$. Or, better still, take $32$ ($-410equiv32pmod{221}$).
$endgroup$
Now you use the Chinese Remainder Theorem. For instance, let $xinmathbb Z$ be such that $xequiv6pmod{13}$ and that $xequiv-2pmod{17}$. Since $13$ and $17$ are coprime, there are integers $alpha$ and $beta$ such that $13alpha+17beta=1$. Using the generalized Euclid algorithm, you get that, for instance, $1=4times13-3times17$. Therefore,$$8=6-(-2)=32times13-24times17.$$So,$$6-32times13=-2-24times17(=-410).$$So, take this number: $-410$. Or, better still, take $32$ ($-410equiv32pmod{221}$).
edited Dec 3 '18 at 10:54
answered Dec 3 '18 at 10:06
José Carlos SantosJosé Carlos Santos
163k22130233
163k22130233
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
|
show 3 more comments
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
$begingroup$
Thanks, very clear. So with the CRT I can combine the final solutions to obtain the desired answer. I must pass for the Euclide algorithm or there are other methods?
$endgroup$
– Alessar
Dec 3 '18 at 10:08
1
1
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
I think that using the Euclid algorithm is the natural way to do it.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:09
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
$begingroup$
Thanks for the answer
$endgroup$
– Alessar
Dec 3 '18 at 10:14
1
1
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
$begingroup$
@Alessar I've edited my answer. Thank you.
$endgroup$
– José Carlos Santos
Dec 3 '18 at 10:54
1
1
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
$begingroup$
From $6-2=17times(-12)+13times16$, you should have deduced that $$6-13times16=2+17times(-12)=-202equiv9pmod{221}.$$
$endgroup$
– José Carlos Santos
Dec 3 '18 at 11:57
|
show 3 more comments
$begingroup$
Note that
$$x^2 -140equiv x^2 -140-221=x^2−19^2=(x-19)(x+19)pmod{221}.$$
It follows that
$$xequiv pm 19equiv pm 6 pmod{13}quadtext{and}quad xequiv pm 19equiv pm 2 pmod{17}.$$ Hence we have four solutions (actually we already have two of them, i.e. $19$ and $-19$) that can be obtained by using the Chinese Remainder Theorem:
$$begin{cases}xequiv 6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}\
begin{cases}xequiv -6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv -6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
Can you take it from here?
P.S. By the first remark, $pm 19$ are two solutions and all you need is to solve just ONE system:
$$begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
if $m$ is the solution then the fourth one is $-m$.
$endgroup$
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
|
show 1 more comment
$begingroup$
Note that
$$x^2 -140equiv x^2 -140-221=x^2−19^2=(x-19)(x+19)pmod{221}.$$
It follows that
$$xequiv pm 19equiv pm 6 pmod{13}quadtext{and}quad xequiv pm 19equiv pm 2 pmod{17}.$$ Hence we have four solutions (actually we already have two of them, i.e. $19$ and $-19$) that can be obtained by using the Chinese Remainder Theorem:
$$begin{cases}xequiv 6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}\
begin{cases}xequiv -6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv -6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
Can you take it from here?
P.S. By the first remark, $pm 19$ are two solutions and all you need is to solve just ONE system:
$$begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
if $m$ is the solution then the fourth one is $-m$.
$endgroup$
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
|
show 1 more comment
$begingroup$
Note that
$$x^2 -140equiv x^2 -140-221=x^2−19^2=(x-19)(x+19)pmod{221}.$$
It follows that
$$xequiv pm 19equiv pm 6 pmod{13}quadtext{and}quad xequiv pm 19equiv pm 2 pmod{17}.$$ Hence we have four solutions (actually we already have two of them, i.e. $19$ and $-19$) that can be obtained by using the Chinese Remainder Theorem:
$$begin{cases}xequiv 6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}\
begin{cases}xequiv -6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv -6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
Can you take it from here?
P.S. By the first remark, $pm 19$ are two solutions and all you need is to solve just ONE system:
$$begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
if $m$ is the solution then the fourth one is $-m$.
$endgroup$
Note that
$$x^2 -140equiv x^2 -140-221=x^2−19^2=(x-19)(x+19)pmod{221}.$$
It follows that
$$xequiv pm 19equiv pm 6 pmod{13}quadtext{and}quad xequiv pm 19equiv pm 2 pmod{17}.$$ Hence we have four solutions (actually we already have two of them, i.e. $19$ and $-19$) that can be obtained by using the Chinese Remainder Theorem:
$$begin{cases}xequiv 6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}\
begin{cases}xequiv -6 pmod{13}\
xequiv 2 pmod{17}
end{cases}quad
begin{cases}xequiv -6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
Can you take it from here?
P.S. By the first remark, $pm 19$ are two solutions and all you need is to solve just ONE system:
$$begin{cases}xequiv 6 pmod{13}\
xequiv -2 pmod{17}
end{cases}$$
if $m$ is the solution then the fourth one is $-m$.
edited Dec 3 '18 at 10:19
answered Dec 3 '18 at 9:54
Robert ZRobert Z
98.5k1068139
98.5k1068139
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
|
show 1 more comment
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
$begingroup$
I think I can, it's like solving a diophantine equation for each combination. Thanks for the answer, wish I could give two "correct answer" flag instead of one
$endgroup$
– Alessar
Dec 3 '18 at 10:12
1
1
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
@Alessar Actually here we have to solve just ONE system because, by the first remark, $pm 19$ are two solutions and the fourth one is the opposite of the first one . As regards the flag, don't worry, I am fine with your choice.
$endgroup$
– Robert Z
Dec 3 '18 at 10:16
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
$begingroup$
thanks, you guys are so prepared and professional. Ok so $pm 19$ are two solutions, and another one will be the solution of the other two system. The absolute values are two but specular, so 4 systems, 2 requested for the final solution
$endgroup$
– Alessar
Dec 3 '18 at 10:18
1
1
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
$begingroup$
@Alessar I edited my answer with a P.S. have a nice day!
$endgroup$
– Robert Z
Dec 3 '18 at 10:29
1
1
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
$begingroup$
Dear downvoter, what's the problem with my answer? If there is something wrong please help me to improve it.
$endgroup$
– Robert Z
Dec 3 '18 at 11:06
|
show 1 more comment
$begingroup$
mathworld.wolfram.com/ChineseRemainderTheorem.html
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:01
$begingroup$
See also: math.stackexchange.com/questions/3019723/…
$endgroup$
– lab bhattacharjee
Dec 3 '18 at 10:02
1
$begingroup$
See also here and here
$endgroup$
– Bill Dubuque
Dec 3 '18 at 17:28