Show that if $p|(a^{2^n}+1)$, then $p = 2$ or $pequiv 1 pmod{2^{n+1}}$











up vote
1
down vote

favorite
1












As the title indicates, I do not know how to proceed. There is a hint to prove it. The hint says that:




show that if $p>2$ then a is of order $2^{n+1} pmod p$.




But I do not see any connection between the hint and the question in demand.



Please help!



Thanks in advance,,



EDIT:



The original question in the title was to prove:




If $p|(a^{2n}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




By the useful comment of @Zvi below, the statement appears to be false. The statement is originally from "An Introduction to The Theory of Numbers" by Ivan Niven, Herbert S.Zuckerman and Hugh L.Montgomery. Most probably, it is a typo, since the correct statement is:




If $p|(a^{2^{n}}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




Please consider the latter statement. A useful clue or hint is very helpful.










share|cite|improve this question




















  • 2




    Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
    – Zvi
    Nov 23 at 11:26










  • The problem is taken from Ivan Niven number theory book. This might be a tipo though.
    – Maged Saeed
    Nov 23 at 11:29










  • Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
    – Zvi
    Nov 23 at 11:32










  • @Zvi, consider the edited version of the post.
    – Maged Saeed
    Nov 23 at 11:37






  • 2




    There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
    – Gerry Myerson
    Nov 23 at 11:50















up vote
1
down vote

favorite
1












As the title indicates, I do not know how to proceed. There is a hint to prove it. The hint says that:




show that if $p>2$ then a is of order $2^{n+1} pmod p$.




But I do not see any connection between the hint and the question in demand.



Please help!



Thanks in advance,,



EDIT:



The original question in the title was to prove:




If $p|(a^{2n}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




By the useful comment of @Zvi below, the statement appears to be false. The statement is originally from "An Introduction to The Theory of Numbers" by Ivan Niven, Herbert S.Zuckerman and Hugh L.Montgomery. Most probably, it is a typo, since the correct statement is:




If $p|(a^{2^{n}}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




Please consider the latter statement. A useful clue or hint is very helpful.










share|cite|improve this question




















  • 2




    Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
    – Zvi
    Nov 23 at 11:26










  • The problem is taken from Ivan Niven number theory book. This might be a tipo though.
    – Maged Saeed
    Nov 23 at 11:29










  • Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
    – Zvi
    Nov 23 at 11:32










  • @Zvi, consider the edited version of the post.
    – Maged Saeed
    Nov 23 at 11:37






  • 2




    There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
    – Gerry Myerson
    Nov 23 at 11:50













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





As the title indicates, I do not know how to proceed. There is a hint to prove it. The hint says that:




show that if $p>2$ then a is of order $2^{n+1} pmod p$.




But I do not see any connection between the hint and the question in demand.



Please help!



Thanks in advance,,



EDIT:



The original question in the title was to prove:




If $p|(a^{2n}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




By the useful comment of @Zvi below, the statement appears to be false. The statement is originally from "An Introduction to The Theory of Numbers" by Ivan Niven, Herbert S.Zuckerman and Hugh L.Montgomery. Most probably, it is a typo, since the correct statement is:




If $p|(a^{2^{n}}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




Please consider the latter statement. A useful clue or hint is very helpful.










share|cite|improve this question















As the title indicates, I do not know how to proceed. There is a hint to prove it. The hint says that:




show that if $p>2$ then a is of order $2^{n+1} pmod p$.




But I do not see any connection between the hint and the question in demand.



Please help!



Thanks in advance,,



EDIT:



The original question in the title was to prove:




If $p|(a^{2n}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




By the useful comment of @Zvi below, the statement appears to be false. The statement is originally from "An Introduction to The Theory of Numbers" by Ivan Niven, Herbert S.Zuckerman and Hugh L.Montgomery. Most probably, it is a typo, since the correct statement is:




If $p|(a^{2^{n}}+1)$, then $p = 2$ or $p equiv 1 pmod {2^{n+1}}$.




Please consider the latter statement. A useful clue or hint is very helpful.







number-theory elementary-number-theory modular-arithmetic divisibility primitive-roots






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 23 at 12:28

























asked Nov 23 at 11:14









Maged Saeed

532315




532315








  • 2




    Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
    – Zvi
    Nov 23 at 11:26










  • The problem is taken from Ivan Niven number theory book. This might be a tipo though.
    – Maged Saeed
    Nov 23 at 11:29










  • Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
    – Zvi
    Nov 23 at 11:32










  • @Zvi, consider the edited version of the post.
    – Maged Saeed
    Nov 23 at 11:37






  • 2




    There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
    – Gerry Myerson
    Nov 23 at 11:50














  • 2




    Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
    – Zvi
    Nov 23 at 11:26










  • The problem is taken from Ivan Niven number theory book. This might be a tipo though.
    – Maged Saeed
    Nov 23 at 11:29










  • Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
    – Zvi
    Nov 23 at 11:32










  • @Zvi, consider the edited version of the post.
    – Maged Saeed
    Nov 23 at 11:37






  • 2




    There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
    – Gerry Myerson
    Nov 23 at 11:50








2




2




Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
– Zvi
Nov 23 at 11:26




Do you mean $pmid a^{2^n}+1$, because the statement is false as it is? (Take $a=3$, $p=5$, and $n=3$ so $2^{n+1}=16$. Then, $a^{2n}+1=730$ is divisible by $p$ but $pnotequiv 1pmod{16}$.)
– Zvi
Nov 23 at 11:26












The problem is taken from Ivan Niven number theory book. This might be a tipo though.
– Maged Saeed
Nov 23 at 11:29




The problem is taken from Ivan Niven number theory book. This might be a tipo though.
– Maged Saeed
Nov 23 at 11:29












Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
– Zvi
Nov 23 at 11:32




Since the statement is true if you use $a^{2^n}+1$, if you want a useful answer, maybe you should change the problem to $a^{2^n}+1$.
– Zvi
Nov 23 at 11:32












@Zvi, consider the edited version of the post.
– Maged Saeed
Nov 23 at 11:37




@Zvi, consider the edited version of the post.
– Maged Saeed
Nov 23 at 11:37




2




2




There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
– Gerry Myerson
Nov 23 at 11:50




There is no typo in the text. It's problem 17 in Chapter 2, Section 8, and it concerns $a^{2^n}+1$, not $a^{2n}+1$.
– Gerry Myerson
Nov 23 at 11:50










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Let $p>2$ be a prime number such that $p mid a^{2^n}+1$ for some integers $a$ and $ngeq 0$. We claim that $pequiv 1pmod{2^{n+1}}$. Clearly, $pnmid a$, so $a^{p-1}equiv 1pmod{p}$ by Fermat's Little Theorem.



Let $k$ be the order of $a$ modulo $p$. Then, we have $kmid p-1$. Since $a^{2^n}equiv -1pmod{p}$, we get
$$a^{2^{n+1}} =left(a^{2^n}right)^2equiv (-1)^2=1pmod{p},$$
we conclude that $kmid 2^{n+1}$. This shows that $k=2^m$ for some integer $m$ such that $0leq mleq n+1$.



Note that $m$ must equal $n+1$. If $mleq n$, then $a^{2^m}equiv 1pmod{p}$, so that $$a^{2^n}=left(a^{2^{m}}right)^{2^{m-n}}equiv 1^{2^{m-n}}=1pmod{p}.$$
This means $1equiv a^{2^n}equiv-1pmod{p}$, so $pmid 2$, but this contradicts the hypothesis that $p>2$. Thus, $m=n+1$ and $k=2^{n+1}$. Recall that $kmid p-1$, so $2^{n+1}mid p-1$ and the proof is finished.






share|cite|improve this answer





















  • Thanks for this detailed answer.
    – Maged Saeed
    Nov 23 at 12:21











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: 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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3010241%2fshow-that-if-pa2n1-then-p-2-or-p-equiv-1-pmod2n1%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Let $p>2$ be a prime number such that $p mid a^{2^n}+1$ for some integers $a$ and $ngeq 0$. We claim that $pequiv 1pmod{2^{n+1}}$. Clearly, $pnmid a$, so $a^{p-1}equiv 1pmod{p}$ by Fermat's Little Theorem.



Let $k$ be the order of $a$ modulo $p$. Then, we have $kmid p-1$. Since $a^{2^n}equiv -1pmod{p}$, we get
$$a^{2^{n+1}} =left(a^{2^n}right)^2equiv (-1)^2=1pmod{p},$$
we conclude that $kmid 2^{n+1}$. This shows that $k=2^m$ for some integer $m$ such that $0leq mleq n+1$.



Note that $m$ must equal $n+1$. If $mleq n$, then $a^{2^m}equiv 1pmod{p}$, so that $$a^{2^n}=left(a^{2^{m}}right)^{2^{m-n}}equiv 1^{2^{m-n}}=1pmod{p}.$$
This means $1equiv a^{2^n}equiv-1pmod{p}$, so $pmid 2$, but this contradicts the hypothesis that $p>2$. Thus, $m=n+1$ and $k=2^{n+1}$. Recall that $kmid p-1$, so $2^{n+1}mid p-1$ and the proof is finished.






share|cite|improve this answer





















  • Thanks for this detailed answer.
    – Maged Saeed
    Nov 23 at 12:21















up vote
1
down vote



accepted










Let $p>2$ be a prime number such that $p mid a^{2^n}+1$ for some integers $a$ and $ngeq 0$. We claim that $pequiv 1pmod{2^{n+1}}$. Clearly, $pnmid a$, so $a^{p-1}equiv 1pmod{p}$ by Fermat's Little Theorem.



Let $k$ be the order of $a$ modulo $p$. Then, we have $kmid p-1$. Since $a^{2^n}equiv -1pmod{p}$, we get
$$a^{2^{n+1}} =left(a^{2^n}right)^2equiv (-1)^2=1pmod{p},$$
we conclude that $kmid 2^{n+1}$. This shows that $k=2^m$ for some integer $m$ such that $0leq mleq n+1$.



Note that $m$ must equal $n+1$. If $mleq n$, then $a^{2^m}equiv 1pmod{p}$, so that $$a^{2^n}=left(a^{2^{m}}right)^{2^{m-n}}equiv 1^{2^{m-n}}=1pmod{p}.$$
This means $1equiv a^{2^n}equiv-1pmod{p}$, so $pmid 2$, but this contradicts the hypothesis that $p>2$. Thus, $m=n+1$ and $k=2^{n+1}$. Recall that $kmid p-1$, so $2^{n+1}mid p-1$ and the proof is finished.






share|cite|improve this answer





















  • Thanks for this detailed answer.
    – Maged Saeed
    Nov 23 at 12:21













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Let $p>2$ be a prime number such that $p mid a^{2^n}+1$ for some integers $a$ and $ngeq 0$. We claim that $pequiv 1pmod{2^{n+1}}$. Clearly, $pnmid a$, so $a^{p-1}equiv 1pmod{p}$ by Fermat's Little Theorem.



Let $k$ be the order of $a$ modulo $p$. Then, we have $kmid p-1$. Since $a^{2^n}equiv -1pmod{p}$, we get
$$a^{2^{n+1}} =left(a^{2^n}right)^2equiv (-1)^2=1pmod{p},$$
we conclude that $kmid 2^{n+1}$. This shows that $k=2^m$ for some integer $m$ such that $0leq mleq n+1$.



Note that $m$ must equal $n+1$. If $mleq n$, then $a^{2^m}equiv 1pmod{p}$, so that $$a^{2^n}=left(a^{2^{m}}right)^{2^{m-n}}equiv 1^{2^{m-n}}=1pmod{p}.$$
This means $1equiv a^{2^n}equiv-1pmod{p}$, so $pmid 2$, but this contradicts the hypothesis that $p>2$. Thus, $m=n+1$ and $k=2^{n+1}$. Recall that $kmid p-1$, so $2^{n+1}mid p-1$ and the proof is finished.






share|cite|improve this answer












Let $p>2$ be a prime number such that $p mid a^{2^n}+1$ for some integers $a$ and $ngeq 0$. We claim that $pequiv 1pmod{2^{n+1}}$. Clearly, $pnmid a$, so $a^{p-1}equiv 1pmod{p}$ by Fermat's Little Theorem.



Let $k$ be the order of $a$ modulo $p$. Then, we have $kmid p-1$. Since $a^{2^n}equiv -1pmod{p}$, we get
$$a^{2^{n+1}} =left(a^{2^n}right)^2equiv (-1)^2=1pmod{p},$$
we conclude that $kmid 2^{n+1}$. This shows that $k=2^m$ for some integer $m$ such that $0leq mleq n+1$.



Note that $m$ must equal $n+1$. If $mleq n$, then $a^{2^m}equiv 1pmod{p}$, so that $$a^{2^n}=left(a^{2^{m}}right)^{2^{m-n}}equiv 1^{2^{m-n}}=1pmod{p}.$$
This means $1equiv a^{2^n}equiv-1pmod{p}$, so $pmid 2$, but this contradicts the hypothesis that $p>2$. Thus, $m=n+1$ and $k=2^{n+1}$. Recall that $kmid p-1$, so $2^{n+1}mid p-1$ and the proof is finished.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 23 at 11:49









Zvi

3,835328




3,835328












  • Thanks for this detailed answer.
    – Maged Saeed
    Nov 23 at 12:21


















  • Thanks for this detailed answer.
    – Maged Saeed
    Nov 23 at 12:21
















Thanks for this detailed answer.
– Maged Saeed
Nov 23 at 12:21




Thanks for this detailed answer.
– Maged Saeed
Nov 23 at 12:21


















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3010241%2fshow-that-if-pa2n1-then-p-2-or-p-equiv-1-pmod2n1%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Tonle Sap (See)

I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

Guatemaltekische Davis-Cup-Mannschaft