Prove that $(p - 1)! equiv (p - 1) pmod{p(p - 1)}$
$begingroup$
Prove that: $$(p - 1)! equiv p - 1 pmod{p(p - 1)}$$
In text it's not mentioned that $p$ is prime, but I checked and this doesn't hold for non-prime, so I guess $p$ is prime ..
I know that $(p - 1)! equiv -1 equiv p - 1 pmod p$,
and $(p - 1)! equiv 0 equiv (p - 1) pmod{p - 1}$,
the problem is that I don't know how to combine these.
Is it true that then we have: $(p - 1)! equiv (p - 1)^2 = p^2 - p - p + 1 equiv - p + 1 = - (p - 1) pmod{p(p - 1)}$, which is not the desired result .. ?
Or I need to multiply both sides of congruences ?
What are the laws for congruences that allow me to do this ? (I hope you get the idea of what I'm trying to ask).
elementary-number-theory modular-arithmetic
$endgroup$
add a comment |
$begingroup$
Prove that: $$(p - 1)! equiv p - 1 pmod{p(p - 1)}$$
In text it's not mentioned that $p$ is prime, but I checked and this doesn't hold for non-prime, so I guess $p$ is prime ..
I know that $(p - 1)! equiv -1 equiv p - 1 pmod p$,
and $(p - 1)! equiv 0 equiv (p - 1) pmod{p - 1}$,
the problem is that I don't know how to combine these.
Is it true that then we have: $(p - 1)! equiv (p - 1)^2 = p^2 - p - p + 1 equiv - p + 1 = - (p - 1) pmod{p(p - 1)}$, which is not the desired result .. ?
Or I need to multiply both sides of congruences ?
What are the laws for congruences that allow me to do this ? (I hope you get the idea of what I'm trying to ask).
elementary-number-theory modular-arithmetic
$endgroup$
$begingroup$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06
add a comment |
$begingroup$
Prove that: $$(p - 1)! equiv p - 1 pmod{p(p - 1)}$$
In text it's not mentioned that $p$ is prime, but I checked and this doesn't hold for non-prime, so I guess $p$ is prime ..
I know that $(p - 1)! equiv -1 equiv p - 1 pmod p$,
and $(p - 1)! equiv 0 equiv (p - 1) pmod{p - 1}$,
the problem is that I don't know how to combine these.
Is it true that then we have: $(p - 1)! equiv (p - 1)^2 = p^2 - p - p + 1 equiv - p + 1 = - (p - 1) pmod{p(p - 1)}$, which is not the desired result .. ?
Or I need to multiply both sides of congruences ?
What are the laws for congruences that allow me to do this ? (I hope you get the idea of what I'm trying to ask).
elementary-number-theory modular-arithmetic
$endgroup$
Prove that: $$(p - 1)! equiv p - 1 pmod{p(p - 1)}$$
In text it's not mentioned that $p$ is prime, but I checked and this doesn't hold for non-prime, so I guess $p$ is prime ..
I know that $(p - 1)! equiv -1 equiv p - 1 pmod p$,
and $(p - 1)! equiv 0 equiv (p - 1) pmod{p - 1}$,
the problem is that I don't know how to combine these.
Is it true that then we have: $(p - 1)! equiv (p - 1)^2 = p^2 - p - p + 1 equiv - p + 1 = - (p - 1) pmod{p(p - 1)}$, which is not the desired result .. ?
Or I need to multiply both sides of congruences ?
What are the laws for congruences that allow me to do this ? (I hope you get the idea of what I'm trying to ask).
elementary-number-theory modular-arithmetic
elementary-number-theory modular-arithmetic
edited Dec 20 '18 at 16:07
user10354138
7,4322925
7,4322925
asked Dec 20 '18 at 16:01
user626177
$begingroup$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06
add a comment |
$begingroup$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06
$begingroup$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06
$begingroup$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Apply Chinese remainder theorem to the coprime moduli $p$ and $p-1$.
However, if you can't use CRT, you can simply observe $(p-1)!-(p-1)$ is divisible by $p-1$ (obvious factor) and by $p$ (Wilson's), so it is divisible by their least common multiple $operatorname{lcm}(p,p-1)=p(p-1)$.
$endgroup$
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
add a comment |
$begingroup$
1) Theorem. If $a|c$, $b|c$ and $(a,b)=1$ then $ab|c$
We know that $ (p,p-1)=1$ and also $p-1|(p-1)!-(p-1)$
By wilson theorem $p|(p-1)!+1$. Then $p|[(p-1)!+1]-p$
Therefore $p(p-1)| (p-1)!-(p-1)$
$endgroup$
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%2f3047686%2fprove-that-p-1-equiv-p-1-pmodpp-1%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
$begingroup$
Apply Chinese remainder theorem to the coprime moduli $p$ and $p-1$.
However, if you can't use CRT, you can simply observe $(p-1)!-(p-1)$ is divisible by $p-1$ (obvious factor) and by $p$ (Wilson's), so it is divisible by their least common multiple $operatorname{lcm}(p,p-1)=p(p-1)$.
$endgroup$
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
add a comment |
$begingroup$
Apply Chinese remainder theorem to the coprime moduli $p$ and $p-1$.
However, if you can't use CRT, you can simply observe $(p-1)!-(p-1)$ is divisible by $p-1$ (obvious factor) and by $p$ (Wilson's), so it is divisible by their least common multiple $operatorname{lcm}(p,p-1)=p(p-1)$.
$endgroup$
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
add a comment |
$begingroup$
Apply Chinese remainder theorem to the coprime moduli $p$ and $p-1$.
However, if you can't use CRT, you can simply observe $(p-1)!-(p-1)$ is divisible by $p-1$ (obvious factor) and by $p$ (Wilson's), so it is divisible by their least common multiple $operatorname{lcm}(p,p-1)=p(p-1)$.
$endgroup$
Apply Chinese remainder theorem to the coprime moduli $p$ and $p-1$.
However, if you can't use CRT, you can simply observe $(p-1)!-(p-1)$ is divisible by $p-1$ (obvious factor) and by $p$ (Wilson's), so it is divisible by their least common multiple $operatorname{lcm}(p,p-1)=p(p-1)$.
edited Dec 20 '18 at 16:13
answered Dec 20 '18 at 16:06
user10354138user10354138
7,4322925
7,4322925
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
add a comment |
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
1
1
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
$begingroup$
Oooh right, so in general, if $x equiv y (mod a)$ and $x equiv y (mod b)$ then $x equiv y (mod [a, b])$, right ?
$endgroup$
– user626177
Dec 20 '18 at 16:23
1
1
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
$begingroup$
That is correct.
$endgroup$
– user10354138
Dec 20 '18 at 16:25
add a comment |
$begingroup$
1) Theorem. If $a|c$, $b|c$ and $(a,b)=1$ then $ab|c$
We know that $ (p,p-1)=1$ and also $p-1|(p-1)!-(p-1)$
By wilson theorem $p|(p-1)!+1$. Then $p|[(p-1)!+1]-p$
Therefore $p(p-1)| (p-1)!-(p-1)$
$endgroup$
add a comment |
$begingroup$
1) Theorem. If $a|c$, $b|c$ and $(a,b)=1$ then $ab|c$
We know that $ (p,p-1)=1$ and also $p-1|(p-1)!-(p-1)$
By wilson theorem $p|(p-1)!+1$. Then $p|[(p-1)!+1]-p$
Therefore $p(p-1)| (p-1)!-(p-1)$
$endgroup$
add a comment |
$begingroup$
1) Theorem. If $a|c$, $b|c$ and $(a,b)=1$ then $ab|c$
We know that $ (p,p-1)=1$ and also $p-1|(p-1)!-(p-1)$
By wilson theorem $p|(p-1)!+1$. Then $p|[(p-1)!+1]-p$
Therefore $p(p-1)| (p-1)!-(p-1)$
$endgroup$
1) Theorem. If $a|c$, $b|c$ and $(a,b)=1$ then $ab|c$
We know that $ (p,p-1)=1$ and also $p-1|(p-1)!-(p-1)$
By wilson theorem $p|(p-1)!+1$. Then $p|[(p-1)!+1]-p$
Therefore $p(p-1)| (p-1)!-(p-1)$
answered Dec 22 '18 at 2:36
Julio Trujillo GonzalezJulio Trujillo Gonzalez
856
856
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%2f3047686%2fprove-that-p-1-equiv-p-1-pmodpp-1%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$
What you need is the so called Chinese Remainder Theorem: en.wikipedia.org/wiki/Chinese_remainder_theorem
$endgroup$
– Ingix
Dec 20 '18 at 16:06