How to reduce the congruence $(p-1)^{p-1}equiv 2^{p-1}pmod{p^2}$ into $p(p-1)+2^{p-1}-1equiv 0pmod{p^2}$?
$begingroup$
In addition, how is $(p-a)^{p-1}-a^{p-1}equiv -(p-1)pa^{p-2}pmod{p^2}$ derived by binomial theorem?
modular-arithmetic
$endgroup$
add a comment |
$begingroup$
In addition, how is $(p-a)^{p-1}-a^{p-1}equiv -(p-1)pa^{p-2}pmod{p^2}$ derived by binomial theorem?
modular-arithmetic
$endgroup$
1
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26
add a comment |
$begingroup$
In addition, how is $(p-a)^{p-1}-a^{p-1}equiv -(p-1)pa^{p-2}pmod{p^2}$ derived by binomial theorem?
modular-arithmetic
$endgroup$
In addition, how is $(p-a)^{p-1}-a^{p-1}equiv -(p-1)pa^{p-2}pmod{p^2}$ derived by binomial theorem?
modular-arithmetic
modular-arithmetic
edited Jan 17 at 19:08
Bernard
121k740116
121k740116
asked Jan 17 at 18:58
TriHard 7TriHard 7
1
1
1
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26
add a comment |
1
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26
1
1
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Note that $(p-1)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2} + ... - (p-1)p^1 + 1$, and only the last two cannot be divided by $p^2$ , so you are left with $-(p-1)p^1 + 1 equiv 2^{p-1}$, so $0 equiv 2^{p-1} +p(p-1) - 1$. As for the second thing, you have $(p-a)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2}a^1 + ... -(p-1)p^1a^{p-2} + a^p$, and you can proceed as before.
$endgroup$
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
add a comment |
$begingroup$
Note that, by the binomial theorem
$$(p-1)^{p-1}=(1-p)^{p-1}=1-(p-1)p+binom{p-1}2p^2-cdots$$
(at least if $p$ is odd).
$endgroup$
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
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%2f3077375%2fhow-to-reduce-the-congruence-p-1p-1-equiv-2p-1-pmodp2-into-pp-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$
Note that $(p-1)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2} + ... - (p-1)p^1 + 1$, and only the last two cannot be divided by $p^2$ , so you are left with $-(p-1)p^1 + 1 equiv 2^{p-1}$, so $0 equiv 2^{p-1} +p(p-1) - 1$. As for the second thing, you have $(p-a)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2}a^1 + ... -(p-1)p^1a^{p-2} + a^p$, and you can proceed as before.
$endgroup$
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
add a comment |
$begingroup$
Note that $(p-1)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2} + ... - (p-1)p^1 + 1$, and only the last two cannot be divided by $p^2$ , so you are left with $-(p-1)p^1 + 1 equiv 2^{p-1}$, so $0 equiv 2^{p-1} +p(p-1) - 1$. As for the second thing, you have $(p-a)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2}a^1 + ... -(p-1)p^1a^{p-2} + a^p$, and you can proceed as before.
$endgroup$
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
add a comment |
$begingroup$
Note that $(p-1)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2} + ... - (p-1)p^1 + 1$, and only the last two cannot be divided by $p^2$ , so you are left with $-(p-1)p^1 + 1 equiv 2^{p-1}$, so $0 equiv 2^{p-1} +p(p-1) - 1$. As for the second thing, you have $(p-a)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2}a^1 + ... -(p-1)p^1a^{p-2} + a^p$, and you can proceed as before.
$endgroup$
Note that $(p-1)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2} + ... - (p-1)p^1 + 1$, and only the last two cannot be divided by $p^2$ , so you are left with $-(p-1)p^1 + 1 equiv 2^{p-1}$, so $0 equiv 2^{p-1} +p(p-1) - 1$. As for the second thing, you have $(p-a)^{p-1}$ = $p^{p-1} - (p-1)p^{p-2}a^1 + ... -(p-1)p^1a^{p-2} + a^p$, and you can proceed as before.
answered Jan 17 at 19:32
Jakub AndruszkiewiczJakub Andruszkiewicz
2116
2116
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
add a comment |
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
$begingroup$
Thanks! Didn't think it would be this straightforward.
$endgroup$
– TriHard 7
Jan 17 at 19:45
add a comment |
$begingroup$
Note that, by the binomial theorem
$$(p-1)^{p-1}=(1-p)^{p-1}=1-(p-1)p+binom{p-1}2p^2-cdots$$
(at least if $p$ is odd).
$endgroup$
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
add a comment |
$begingroup$
Note that, by the binomial theorem
$$(p-1)^{p-1}=(1-p)^{p-1}=1-(p-1)p+binom{p-1}2p^2-cdots$$
(at least if $p$ is odd).
$endgroup$
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
add a comment |
$begingroup$
Note that, by the binomial theorem
$$(p-1)^{p-1}=(1-p)^{p-1}=1-(p-1)p+binom{p-1}2p^2-cdots$$
(at least if $p$ is odd).
$endgroup$
Note that, by the binomial theorem
$$(p-1)^{p-1}=(1-p)^{p-1}=1-(p-1)p+binom{p-1}2p^2-cdots$$
(at least if $p$ is odd).
answered Jan 17 at 19:31
Lord Shark the UnknownLord Shark the Unknown
105k1160132
105k1160132
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
add a comment |
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
$begingroup$
thanks, the original problem indeed stated that p is a prime greater than 2.
$endgroup$
– TriHard 7
Jan 17 at 19:43
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%2f3077375%2fhow-to-reduce-the-congruence-p-1p-1-equiv-2p-1-pmodp2-into-pp-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
1
$begingroup$
What have you tried so far? Questions that lack context and some description of what you've tried and where you got stuck tend to attract downvotes.
$endgroup$
– postmortes
Jan 17 at 19:26