Being $2011$ prime, calculate 2009! divided by 2011
$begingroup$
I'm working in the following excercise:
Being $2011$ prime, calculate $2009!$ divided by $2011$
By Wilson's theorem I have:
$$2010! equiv -1 mod 2011$$
$$2009! * 2010 equiv -1 * 2010 mod 2011$$
$$2009! equiv -2010 mod 2011 $$
$$2009! equiv 1 mod 2011$$
Checking the answer is correct but I'm not sure about step two, is that correct? any help will be really appreciated.
number-theory modular-arithmetic
$endgroup$
add a comment |
$begingroup$
I'm working in the following excercise:
Being $2011$ prime, calculate $2009!$ divided by $2011$
By Wilson's theorem I have:
$$2010! equiv -1 mod 2011$$
$$2009! * 2010 equiv -1 * 2010 mod 2011$$
$$2009! equiv -2010 mod 2011 $$
$$2009! equiv 1 mod 2011$$
Checking the answer is correct but I'm not sure about step two, is that correct? any help will be really appreciated.
number-theory modular-arithmetic
$endgroup$
1
$begingroup$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
1
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
1
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
1
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49
add a comment |
$begingroup$
I'm working in the following excercise:
Being $2011$ prime, calculate $2009!$ divided by $2011$
By Wilson's theorem I have:
$$2010! equiv -1 mod 2011$$
$$2009! * 2010 equiv -1 * 2010 mod 2011$$
$$2009! equiv -2010 mod 2011 $$
$$2009! equiv 1 mod 2011$$
Checking the answer is correct but I'm not sure about step two, is that correct? any help will be really appreciated.
number-theory modular-arithmetic
$endgroup$
I'm working in the following excercise:
Being $2011$ prime, calculate $2009!$ divided by $2011$
By Wilson's theorem I have:
$$2010! equiv -1 mod 2011$$
$$2009! * 2010 equiv -1 * 2010 mod 2011$$
$$2009! equiv -2010 mod 2011 $$
$$2009! equiv 1 mod 2011$$
Checking the answer is correct but I'm not sure about step two, is that correct? any help will be really appreciated.
number-theory modular-arithmetic
number-theory modular-arithmetic
edited Jan 30 at 22:42
mraz
asked Jan 30 at 22:17
mrazmraz
450110
450110
1
$begingroup$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
1
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
1
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
1
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49
add a comment |
1
$begingroup$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
1
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
1
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
1
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49
1
1
$begingroup$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
$begingroup$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
1
1
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
1
1
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
1
1
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
No. It's not. $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
And then when you had $2009!* 2010 equiv -2010$ you went to $2009! equiv -2010$ by simply dropping the $2010$ out of nowhere. You dropped it in for no reason. And then you dropped it out for no reason.
That won't work. Two wrongs frequently make a right and they did in this case. But they did so for the wrong reasons.
$$color{blue}{2010!} equiv color{blue}{-1}pmod{2011}$$
$$color{blue}{2009!*2010}equiv color{blue}{-1}*color{red}{2010} pmod{2011}$$ (This is wrong! The blue colors are all equivalent but the red $color{red}{2010}$ came from absolutely nowhere.)
$$color{orange}{2009!} equiv color{blue}{-}color{red}{2010}pmod{2011}$$
(This is wrong! The $color{blue}{2009!*2010}$ simply turned into $color{orange}{2009!}$ for no reason! What happened to the $color{blue}{2010}$? Where did it go?)
....
Instead do:
$2010! equiv -1 pmod {2011}$
$2009!*2010 = 2010! equiv -1 pmod {2011}$.
Now notice $2010 equiv -1 pmod {2011}$ so
$2009!*(-1) equiv - 1pmod {2011}$ and
$2009!*(-1)*(-1) equiv (-1)(-1) pmod {2011}$ and so
$2009! equiv 1 pmod {2011}$.
$endgroup$
add a comment |
$begingroup$
The right side on the second line should still be $-1$ because you just split the product on the left. Now note that $2010 equiv -1 pmod {2011}$ so multiply both sides by $2010$
$$2009! * 2010 equiv -1 pmod {2011}\2009!cdot 2010^2equiv -1cdot 2010 pmod {2011}\
2009!equiv 1 pmod {2011}$$
You also just removed a factor $2010$ from the left between the second and third lines, which canceled out the error from the first to the second.
$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%2f3094189%2fbeing-2011-prime-calculate-2009-divided-by-2011%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$
No. It's not. $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
And then when you had $2009!* 2010 equiv -2010$ you went to $2009! equiv -2010$ by simply dropping the $2010$ out of nowhere. You dropped it in for no reason. And then you dropped it out for no reason.
That won't work. Two wrongs frequently make a right and they did in this case. But they did so for the wrong reasons.
$$color{blue}{2010!} equiv color{blue}{-1}pmod{2011}$$
$$color{blue}{2009!*2010}equiv color{blue}{-1}*color{red}{2010} pmod{2011}$$ (This is wrong! The blue colors are all equivalent but the red $color{red}{2010}$ came from absolutely nowhere.)
$$color{orange}{2009!} equiv color{blue}{-}color{red}{2010}pmod{2011}$$
(This is wrong! The $color{blue}{2009!*2010}$ simply turned into $color{orange}{2009!}$ for no reason! What happened to the $color{blue}{2010}$? Where did it go?)
....
Instead do:
$2010! equiv -1 pmod {2011}$
$2009!*2010 = 2010! equiv -1 pmod {2011}$.
Now notice $2010 equiv -1 pmod {2011}$ so
$2009!*(-1) equiv - 1pmod {2011}$ and
$2009!*(-1)*(-1) equiv (-1)(-1) pmod {2011}$ and so
$2009! equiv 1 pmod {2011}$.
$endgroup$
add a comment |
$begingroup$
No. It's not. $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
And then when you had $2009!* 2010 equiv -2010$ you went to $2009! equiv -2010$ by simply dropping the $2010$ out of nowhere. You dropped it in for no reason. And then you dropped it out for no reason.
That won't work. Two wrongs frequently make a right and they did in this case. But they did so for the wrong reasons.
$$color{blue}{2010!} equiv color{blue}{-1}pmod{2011}$$
$$color{blue}{2009!*2010}equiv color{blue}{-1}*color{red}{2010} pmod{2011}$$ (This is wrong! The blue colors are all equivalent but the red $color{red}{2010}$ came from absolutely nowhere.)
$$color{orange}{2009!} equiv color{blue}{-}color{red}{2010}pmod{2011}$$
(This is wrong! The $color{blue}{2009!*2010}$ simply turned into $color{orange}{2009!}$ for no reason! What happened to the $color{blue}{2010}$? Where did it go?)
....
Instead do:
$2010! equiv -1 pmod {2011}$
$2009!*2010 = 2010! equiv -1 pmod {2011}$.
Now notice $2010 equiv -1 pmod {2011}$ so
$2009!*(-1) equiv - 1pmod {2011}$ and
$2009!*(-1)*(-1) equiv (-1)(-1) pmod {2011}$ and so
$2009! equiv 1 pmod {2011}$.
$endgroup$
add a comment |
$begingroup$
No. It's not. $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
And then when you had $2009!* 2010 equiv -2010$ you went to $2009! equiv -2010$ by simply dropping the $2010$ out of nowhere. You dropped it in for no reason. And then you dropped it out for no reason.
That won't work. Two wrongs frequently make a right and they did in this case. But they did so for the wrong reasons.
$$color{blue}{2010!} equiv color{blue}{-1}pmod{2011}$$
$$color{blue}{2009!*2010}equiv color{blue}{-1}*color{red}{2010} pmod{2011}$$ (This is wrong! The blue colors are all equivalent but the red $color{red}{2010}$ came from absolutely nowhere.)
$$color{orange}{2009!} equiv color{blue}{-}color{red}{2010}pmod{2011}$$
(This is wrong! The $color{blue}{2009!*2010}$ simply turned into $color{orange}{2009!}$ for no reason! What happened to the $color{blue}{2010}$? Where did it go?)
....
Instead do:
$2010! equiv -1 pmod {2011}$
$2009!*2010 = 2010! equiv -1 pmod {2011}$.
Now notice $2010 equiv -1 pmod {2011}$ so
$2009!*(-1) equiv - 1pmod {2011}$ and
$2009!*(-1)*(-1) equiv (-1)(-1) pmod {2011}$ and so
$2009! equiv 1 pmod {2011}$.
$endgroup$
No. It's not. $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
And then when you had $2009!* 2010 equiv -2010$ you went to $2009! equiv -2010$ by simply dropping the $2010$ out of nowhere. You dropped it in for no reason. And then you dropped it out for no reason.
That won't work. Two wrongs frequently make a right and they did in this case. But they did so for the wrong reasons.
$$color{blue}{2010!} equiv color{blue}{-1}pmod{2011}$$
$$color{blue}{2009!*2010}equiv color{blue}{-1}*color{red}{2010} pmod{2011}$$ (This is wrong! The blue colors are all equivalent but the red $color{red}{2010}$ came from absolutely nowhere.)
$$color{orange}{2009!} equiv color{blue}{-}color{red}{2010}pmod{2011}$$
(This is wrong! The $color{blue}{2009!*2010}$ simply turned into $color{orange}{2009!}$ for no reason! What happened to the $color{blue}{2010}$? Where did it go?)
....
Instead do:
$2010! equiv -1 pmod {2011}$
$2009!*2010 = 2010! equiv -1 pmod {2011}$.
Now notice $2010 equiv -1 pmod {2011}$ so
$2009!*(-1) equiv - 1pmod {2011}$ and
$2009!*(-1)*(-1) equiv (-1)(-1) pmod {2011}$ and so
$2009! equiv 1 pmod {2011}$.
edited Jan 30 at 22:45
answered Jan 30 at 22:29
fleabloodfleablood
73.8k22891
73.8k22891
add a comment |
add a comment |
$begingroup$
The right side on the second line should still be $-1$ because you just split the product on the left. Now note that $2010 equiv -1 pmod {2011}$ so multiply both sides by $2010$
$$2009! * 2010 equiv -1 pmod {2011}\2009!cdot 2010^2equiv -1cdot 2010 pmod {2011}\
2009!equiv 1 pmod {2011}$$
You also just removed a factor $2010$ from the left between the second and third lines, which canceled out the error from the first to the second.
$endgroup$
add a comment |
$begingroup$
The right side on the second line should still be $-1$ because you just split the product on the left. Now note that $2010 equiv -1 pmod {2011}$ so multiply both sides by $2010$
$$2009! * 2010 equiv -1 pmod {2011}\2009!cdot 2010^2equiv -1cdot 2010 pmod {2011}\
2009!equiv 1 pmod {2011}$$
You also just removed a factor $2010$ from the left between the second and third lines, which canceled out the error from the first to the second.
$endgroup$
add a comment |
$begingroup$
The right side on the second line should still be $-1$ because you just split the product on the left. Now note that $2010 equiv -1 pmod {2011}$ so multiply both sides by $2010$
$$2009! * 2010 equiv -1 pmod {2011}\2009!cdot 2010^2equiv -1cdot 2010 pmod {2011}\
2009!equiv 1 pmod {2011}$$
You also just removed a factor $2010$ from the left between the second and third lines, which canceled out the error from the first to the second.
$endgroup$
The right side on the second line should still be $-1$ because you just split the product on the left. Now note that $2010 equiv -1 pmod {2011}$ so multiply both sides by $2010$
$$2009! * 2010 equiv -1 pmod {2011}\2009!cdot 2010^2equiv -1cdot 2010 pmod {2011}\
2009!equiv 1 pmod {2011}$$
You also just removed a factor $2010$ from the left between the second and third lines, which canceled out the error from the first to the second.
answered Jan 30 at 22:22
Ross MillikanRoss Millikan
301k24200375
301k24200375
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%2f3094189%2fbeing-2011-prime-calculate-2009-divided-by-2011%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$
It's perfectly correct.
$endgroup$
– Bernard
Jan 30 at 22:21
1
$begingroup$
No. It's not $2009*2010 = 2010! equiv -1 pmod {2011}$. Why did you multiply it by $2010$ when you don't know $2009! not equiv -1 pmod {2011}$.
$endgroup$
– fleablood
Jan 30 at 22:23
1
$begingroup$
It should be noted that 2011 is prime
$endgroup$
– J. W. Tanner
Jan 30 at 22:41
1
$begingroup$
Perhaps a lemma to wilsons thereom should be: For $p > 2$ a prime. $(p-1)! equiv -1 pmod p$ so $(p-2)! = -(p-2)!(-1) equiv -(p-2)!(p-1)=-(p-1)! equiv -(-1) equiv 1 pmod p$.
$endgroup$
– fleablood
Jan 30 at 22:49