A Problem with primes of the form $2^n-1$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












I want to show that if $2^n-1$ is prime, then $n$ is prime.



I could not see a way to a direct proof based on the definition of a prime number. In that case, we could only write $2^n-1$ as $1 cdot (2^n-1)$, and I don't see how that would help.



I think the best way to go about this proof is to use the contrapositive of the statement, which I believe is "if $n$ is not prime, then $2^n-1$ is not prime". So, if $n$ is not prime, it is composite and can be factored into the form $ab$. We plug that into $2^n-1$ to get $2^ab-1$. Now, if either $a$ or $b$ is even, we could use the laws of exponents and the difference of two squares to get a factored form and therefore prove that $2^n-1$ is composite. The problem in this approach is showing that if both $a$ and $b$ are odd, how the resulting expression can factor. We write this symbolically as $2^(2k+1)(2m+1)-1$ for some natural numbers $k$ and $m$. I don't know how to factor this. If anyone sees how to factor this, that would be awesome. Or, if anyone sees a flaw in my approach, that would also be greatly appreciated.



Finally, I ask that y'all not directly give me the answer, but rather a powerful hint. I am really trying to learn on my own, and I feel that the struggle will eventually pay off. Thanks in advance.










share|cite|improve this question



















  • 6




    Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
    – xbh
    Sep 7 at 3:45










  • The following post provides a generalization : math.stackexchange.com/questions/7473/…
    – Ð°ÑÑ‚он вілла олоф мэллбэрг
    Sep 7 at 3:46










  • So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
    – L. Tim
    Sep 7 at 4:05






  • 1




    You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
    – Marco Bellocchi
    Sep 7 at 4:29







  • 1




    Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
    – Jyrki Lahtonen
    Sep 7 at 5:26














up vote
4
down vote

favorite












I want to show that if $2^n-1$ is prime, then $n$ is prime.



I could not see a way to a direct proof based on the definition of a prime number. In that case, we could only write $2^n-1$ as $1 cdot (2^n-1)$, and I don't see how that would help.



I think the best way to go about this proof is to use the contrapositive of the statement, which I believe is "if $n$ is not prime, then $2^n-1$ is not prime". So, if $n$ is not prime, it is composite and can be factored into the form $ab$. We plug that into $2^n-1$ to get $2^ab-1$. Now, if either $a$ or $b$ is even, we could use the laws of exponents and the difference of two squares to get a factored form and therefore prove that $2^n-1$ is composite. The problem in this approach is showing that if both $a$ and $b$ are odd, how the resulting expression can factor. We write this symbolically as $2^(2k+1)(2m+1)-1$ for some natural numbers $k$ and $m$. I don't know how to factor this. If anyone sees how to factor this, that would be awesome. Or, if anyone sees a flaw in my approach, that would also be greatly appreciated.



Finally, I ask that y'all not directly give me the answer, but rather a powerful hint. I am really trying to learn on my own, and I feel that the struggle will eventually pay off. Thanks in advance.










share|cite|improve this question



















  • 6




    Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
    – xbh
    Sep 7 at 3:45










  • The following post provides a generalization : math.stackexchange.com/questions/7473/…
    – Ð°ÑÑ‚он вілла олоф мэллбэрг
    Sep 7 at 3:46










  • So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
    – L. Tim
    Sep 7 at 4:05






  • 1




    You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
    – Marco Bellocchi
    Sep 7 at 4:29







  • 1




    Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
    – Jyrki Lahtonen
    Sep 7 at 5:26












up vote
4
down vote

favorite









up vote
4
down vote

favorite











I want to show that if $2^n-1$ is prime, then $n$ is prime.



I could not see a way to a direct proof based on the definition of a prime number. In that case, we could only write $2^n-1$ as $1 cdot (2^n-1)$, and I don't see how that would help.



I think the best way to go about this proof is to use the contrapositive of the statement, which I believe is "if $n$ is not prime, then $2^n-1$ is not prime". So, if $n$ is not prime, it is composite and can be factored into the form $ab$. We plug that into $2^n-1$ to get $2^ab-1$. Now, if either $a$ or $b$ is even, we could use the laws of exponents and the difference of two squares to get a factored form and therefore prove that $2^n-1$ is composite. The problem in this approach is showing that if both $a$ and $b$ are odd, how the resulting expression can factor. We write this symbolically as $2^(2k+1)(2m+1)-1$ for some natural numbers $k$ and $m$. I don't know how to factor this. If anyone sees how to factor this, that would be awesome. Or, if anyone sees a flaw in my approach, that would also be greatly appreciated.



Finally, I ask that y'all not directly give me the answer, but rather a powerful hint. I am really trying to learn on my own, and I feel that the struggle will eventually pay off. Thanks in advance.










share|cite|improve this question















I want to show that if $2^n-1$ is prime, then $n$ is prime.



I could not see a way to a direct proof based on the definition of a prime number. In that case, we could only write $2^n-1$ as $1 cdot (2^n-1)$, and I don't see how that would help.



I think the best way to go about this proof is to use the contrapositive of the statement, which I believe is "if $n$ is not prime, then $2^n-1$ is not prime". So, if $n$ is not prime, it is composite and can be factored into the form $ab$. We plug that into $2^n-1$ to get $2^ab-1$. Now, if either $a$ or $b$ is even, we could use the laws of exponents and the difference of two squares to get a factored form and therefore prove that $2^n-1$ is composite. The problem in this approach is showing that if both $a$ and $b$ are odd, how the resulting expression can factor. We write this symbolically as $2^(2k+1)(2m+1)-1$ for some natural numbers $k$ and $m$. I don't know how to factor this. If anyone sees how to factor this, that would be awesome. Or, if anyone sees a flaw in my approach, that would also be greatly appreciated.



Finally, I ask that y'all not directly give me the answer, but rather a powerful hint. I am really trying to learn on my own, and I feel that the struggle will eventually pay off. Thanks in advance.







elementary-number-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 7 at 10:57









Jendrik Stelzner

7,69121137




7,69121137










asked Sep 7 at 3:41









L. Tim

212




212







  • 6




    Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
    – xbh
    Sep 7 at 3:45










  • The following post provides a generalization : math.stackexchange.com/questions/7473/…
    – Ð°ÑÑ‚он вілла олоф мэллбэрг
    Sep 7 at 3:46










  • So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
    – L. Tim
    Sep 7 at 4:05






  • 1




    You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
    – Marco Bellocchi
    Sep 7 at 4:29







  • 1




    Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
    – Jyrki Lahtonen
    Sep 7 at 5:26












  • 6




    Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
    – xbh
    Sep 7 at 3:45










  • The following post provides a generalization : math.stackexchange.com/questions/7473/…
    – Ð°ÑÑ‚он вілла олоф мэллбэрг
    Sep 7 at 3:46










  • So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
    – L. Tim
    Sep 7 at 4:05






  • 1




    You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
    – Marco Bellocchi
    Sep 7 at 4:29







  • 1




    Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
    – Jyrki Lahtonen
    Sep 7 at 5:26







6




6




Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
– xbh
Sep 7 at 3:45




Hint: $a^n -b^n = (a-b)(a^n-1+a^n-2b + cdots + b^n-1 )$.
– xbh
Sep 7 at 3:45












The following post provides a generalization : math.stackexchange.com/questions/7473/…
– Ð°ÑÑ‚он вілла олоф мэллбэрг
Sep 7 at 3:46




The following post provides a generalization : math.stackexchange.com/questions/7473/…
– Ð°ÑÑ‚он вілла олоф мэллбэрг
Sep 7 at 3:46












So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
– L. Tim
Sep 7 at 4:05




So, when I got help originally on this problem, he did help me to see that $a^n-1$ can be factored as $(a-1)(a^n-1+a^n-2+...+1)$. However, I noted that in our case, a=2, so (a-1) becomes 1. So, my thought process is that all we did here is multiply by 1, and find a new way to express $2^n-1$ as a sum, and that this doesn't help show that the $2^n-1$ is composite. Please, correct me if I'm wrong.
– L. Tim
Sep 7 at 4:05




1




1




You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
– Marco Bellocchi
Sep 7 at 4:29





You can use the given hint to show your contrapositive. As $n=ab$, where both $a,b>1$ then $2^n-1=(2^a)^b-1=(2^a-1)(2^a(b-1)+...+1)$
– Marco Bellocchi
Sep 7 at 4:29





1




1




Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
– Jyrki Lahtonen
Sep 7 at 5:26




Possible duplicate of For $a,n in Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?
– Jyrki Lahtonen
Sep 7 at 5:26















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2908246%2fa-problem-with-primes-of-the-form-2n-1%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2908246%2fa-problem-with-primes-of-the-form-2n-1%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards