Find $p$ if $2p-1$ is a perfect square
$begingroup$
I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.
number-theory
$endgroup$
add a comment |
$begingroup$
I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.
number-theory
$endgroup$
1
$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
1
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15
add a comment |
$begingroup$
I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.
number-theory
$endgroup$
I need to find prime numbers $p$ such that $2p-1$ is a perfect square. I tried hard, but could not get a proper solution for this. I could guess $p=13$ works, but I need a proper rigorous solution for this. I cant think of one.
number-theory
number-theory
asked Jan 9 at 5:01
YellowYellow
16011
16011
1
$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
1
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15
add a comment |
1
$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
1
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15
1
1
$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
1
1
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$
$endgroup$
add a comment |
$begingroup$
All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:
$$2(6k+1)-1=12k+1$$
This leads to $$12k=m^2-1$$
$$12k=(m+1)(m-1)$$
$$to m+1=12a, m-1=frac ka$$
Or vice versa, subject to $a,k in Bbb Z, a|k$
Now use:
$$2(6k-1)-1=12k-3$$
$$to 12k-4=m^2-1$$
$$to 4(3k-1)=(m+1)(m-1)$$
Go from there.
$endgroup$
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
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%2f3067090%2ffind-p-if-2p-1-is-a-perfect-square%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$
OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$
$endgroup$
add a comment |
$begingroup$
OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$
$endgroup$
add a comment |
$begingroup$
OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$
$endgroup$
OEIS A027862 lists the primes $p$ of the form $p=n^2+(n+1)^2$. It remarks that these are the ones where $2p-1$ is a square. We can show that if $p$ is of this form $2p-1$ is a square because $$2p-1=2(n^2+(n+1)^2)-1=4n^2+4n+1=(2n+1)^2$$
answered Jan 9 at 5:36
Ross MillikanRoss Millikan
301k24200375
301k24200375
add a comment |
add a comment |
$begingroup$
All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:
$$2(6k+1)-1=12k+1$$
This leads to $$12k=m^2-1$$
$$12k=(m+1)(m-1)$$
$$to m+1=12a, m-1=frac ka$$
Or vice versa, subject to $a,k in Bbb Z, a|k$
Now use:
$$2(6k-1)-1=12k-3$$
$$to 12k-4=m^2-1$$
$$to 4(3k-1)=(m+1)(m-1)$$
Go from there.
$endgroup$
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
add a comment |
$begingroup$
All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:
$$2(6k+1)-1=12k+1$$
This leads to $$12k=m^2-1$$
$$12k=(m+1)(m-1)$$
$$to m+1=12a, m-1=frac ka$$
Or vice versa, subject to $a,k in Bbb Z, a|k$
Now use:
$$2(6k-1)-1=12k-3$$
$$to 12k-4=m^2-1$$
$$to 4(3k-1)=(m+1)(m-1)$$
Go from there.
$endgroup$
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
add a comment |
$begingroup$
All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:
$$2(6k+1)-1=12k+1$$
This leads to $$12k=m^2-1$$
$$12k=(m+1)(m-1)$$
$$to m+1=12a, m-1=frac ka$$
Or vice versa, subject to $a,k in Bbb Z, a|k$
Now use:
$$2(6k-1)-1=12k-3$$
$$to 12k-4=m^2-1$$
$$to 4(3k-1)=(m+1)(m-1)$$
Go from there.
$endgroup$
All primes excluding $2$ and $3$ are of the form $6kpm 1$. We have that:
$$2(6k+1)-1=12k+1$$
This leads to $$12k=m^2-1$$
$$12k=(m+1)(m-1)$$
$$to m+1=12a, m-1=frac ka$$
Or vice versa, subject to $a,k in Bbb Z, a|k$
Now use:
$$2(6k-1)-1=12k-3$$
$$to 12k-4=m^2-1$$
$$to 4(3k-1)=(m+1)(m-1)$$
Go from there.
edited Jan 9 at 5:42
answered Jan 9 at 5:21
Rhys HughesRhys Hughes
7,0701630
7,0701630
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
add a comment |
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
Excluding 2. And 3.
$endgroup$
– Lucas Henrique
Jan 9 at 5:36
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
$begingroup$
I'm stupid. Thanks
$endgroup$
– Rhys Hughes
Jan 9 at 5:42
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%2f3067090%2ffind-p-if-2p-1-is-a-perfect-square%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$
And $p = 5, 41, 61, 113, 181,$ etc. What exactly are you trying to prove about such $p$?
$endgroup$
– anomaly
Jan 9 at 5:09
$begingroup$
Note that $p = 5$ also works as $2p - 1 = 9 = 3^2$.
$endgroup$
– John Omielan
Jan 9 at 5:09
1
$begingroup$
This is oeis.org/A027862
$endgroup$
– Ross Millikan
Jan 9 at 5:15