Verifying if a given polynomial is primitive polynomial












6












$begingroup$


Given a polynomial: $f(x) = x^2 + 2x + 2$ over $GF(3)$. I want to know if i can use it to construct $GF(3^2)$.



My approach:




  • This equation satisfies first condition: A primitive polynomial is irreducible.

  • The second condition i'm trying to confirm is that i can use it generate $GF(3^2)$.


$alpha^2 + 2alpha + 2 rightarrow alpha^2 = alpha + 1$.




  • $alpha^1 = alpha$

  • $alpha^2 = alpha+1$

  • $alpha^3 = alpha*alpha^2 rightarrow1 + 2alpha $

  • $alpha^4 = 2 $

  • $alpha^5 = 2alpha$

  • $alpha^6 = alpha+2$


  • $alpha^7 = 1$



    Now Here $alpha^8$ should be equal to $1$ instead of $alpha^7 .$



  • $alpha^8 = alpha$



What i am doing wrong , any help would be great.










share|cite|improve this question









$endgroup$












  • $begingroup$
    You made an error at $alpha^6$. See my answer. Cheers!
    $endgroup$
    – Robert Lewis
    Jan 27 at 4:59






  • 1




    $begingroup$
    You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:34


















6












$begingroup$


Given a polynomial: $f(x) = x^2 + 2x + 2$ over $GF(3)$. I want to know if i can use it to construct $GF(3^2)$.



My approach:




  • This equation satisfies first condition: A primitive polynomial is irreducible.

  • The second condition i'm trying to confirm is that i can use it generate $GF(3^2)$.


$alpha^2 + 2alpha + 2 rightarrow alpha^2 = alpha + 1$.




  • $alpha^1 = alpha$

  • $alpha^2 = alpha+1$

  • $alpha^3 = alpha*alpha^2 rightarrow1 + 2alpha $

  • $alpha^4 = 2 $

  • $alpha^5 = 2alpha$

  • $alpha^6 = alpha+2$


  • $alpha^7 = 1$



    Now Here $alpha^8$ should be equal to $1$ instead of $alpha^7 .$



  • $alpha^8 = alpha$



What i am doing wrong , any help would be great.










share|cite|improve this question









$endgroup$












  • $begingroup$
    You made an error at $alpha^6$. See my answer. Cheers!
    $endgroup$
    – Robert Lewis
    Jan 27 at 4:59






  • 1




    $begingroup$
    You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:34
















6












6








6


1



$begingroup$


Given a polynomial: $f(x) = x^2 + 2x + 2$ over $GF(3)$. I want to know if i can use it to construct $GF(3^2)$.



My approach:




  • This equation satisfies first condition: A primitive polynomial is irreducible.

  • The second condition i'm trying to confirm is that i can use it generate $GF(3^2)$.


$alpha^2 + 2alpha + 2 rightarrow alpha^2 = alpha + 1$.




  • $alpha^1 = alpha$

  • $alpha^2 = alpha+1$

  • $alpha^3 = alpha*alpha^2 rightarrow1 + 2alpha $

  • $alpha^4 = 2 $

  • $alpha^5 = 2alpha$

  • $alpha^6 = alpha+2$


  • $alpha^7 = 1$



    Now Here $alpha^8$ should be equal to $1$ instead of $alpha^7 .$



  • $alpha^8 = alpha$



What i am doing wrong , any help would be great.










share|cite|improve this question









$endgroup$




Given a polynomial: $f(x) = x^2 + 2x + 2$ over $GF(3)$. I want to know if i can use it to construct $GF(3^2)$.



My approach:




  • This equation satisfies first condition: A primitive polynomial is irreducible.

  • The second condition i'm trying to confirm is that i can use it generate $GF(3^2)$.


$alpha^2 + 2alpha + 2 rightarrow alpha^2 = alpha + 1$.




  • $alpha^1 = alpha$

  • $alpha^2 = alpha+1$

  • $alpha^3 = alpha*alpha^2 rightarrow1 + 2alpha $

  • $alpha^4 = 2 $

  • $alpha^5 = 2alpha$

  • $alpha^6 = alpha+2$


  • $alpha^7 = 1$



    Now Here $alpha^8$ should be equal to $1$ instead of $alpha^7 .$



  • $alpha^8 = alpha$



What i am doing wrong , any help would be great.







polynomials galois-theory finite-fields cryptography coding-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 27 at 4:05









Khan SaabKhan Saab

1979




1979












  • $begingroup$
    You made an error at $alpha^6$. See my answer. Cheers!
    $endgroup$
    – Robert Lewis
    Jan 27 at 4:59






  • 1




    $begingroup$
    You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:34




















  • $begingroup$
    You made an error at $alpha^6$. See my answer. Cheers!
    $endgroup$
    – Robert Lewis
    Jan 27 at 4:59






  • 1




    $begingroup$
    You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:34


















$begingroup$
You made an error at $alpha^6$. See my answer. Cheers!
$endgroup$
– Robert Lewis
Jan 27 at 4:59




$begingroup$
You made an error at $alpha^6$. See my answer. Cheers!
$endgroup$
– Robert Lewis
Jan 27 at 4:59




1




1




$begingroup$
You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
$endgroup$
– Jyrki Lahtonen
Jan 27 at 19:34






$begingroup$
You simply skipped $alpha^6$. You correctly found out that $alpha^4=2=-1$ is in the prime field. From this it follows that for all $i$ we have $alpha^{4+i}=-alpha^i$ (or $=2alpha^i$ if you prefer that). So you should have $alpha^6=2alpha^2=2alpha+2$, and only $alpha^7=2alpha^3=alpha+2$. Undoubtedly you multiplied by $alpha$ twice at that point, and forgot to record the result. Anyway, once you get back to the prime field you can use that to check the rest as above.
$endgroup$
– Jyrki Lahtonen
Jan 27 at 19:34












1 Answer
1






active

oldest

votes


















5












$begingroup$

It strikes me that our OP Khan Saab's calculations of the powers of $alpha$ are OK through $alpha^5$, but there is an error in $alpha^6$. With



$alpha^2 = alpha + 1, tag 1$



we have, correctly,



$alpha^5 = 2 alpha; tag 2$



then



$alpha^6 = 2 alpha^2 = 2 alpha + 2, tag 3$



not $alpha^6 = alpha + 2$!



Continuing:



$alpha^7 = 2alpha^2 + 2alpha = 2(alpha + 1) + 2alpha = alpha + 2; tag 4$



$alpha^8 = alpha^2 + 2alpha = alpha + 1 + 2alpha = 1! tag 5$



easy, you know the way it's supposed to be!






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thank you very much :)
    $endgroup$
    – Khan Saab
    Jan 27 at 5:05










  • $begingroup$
    @KhanSaab: my pleasure sir! And thank you for the "acceptance"!
    $endgroup$
    – Robert Lewis
    Jan 27 at 5:06






  • 1




    $begingroup$
    Good job. ${}{}$
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:35










  • $begingroup$
    @JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
    $endgroup$
    – Robert Lewis
    Jan 27 at 19:36











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3089119%2fverifying-if-a-given-polynomial-is-primitive-polynomial%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









5












$begingroup$

It strikes me that our OP Khan Saab's calculations of the powers of $alpha$ are OK through $alpha^5$, but there is an error in $alpha^6$. With



$alpha^2 = alpha + 1, tag 1$



we have, correctly,



$alpha^5 = 2 alpha; tag 2$



then



$alpha^6 = 2 alpha^2 = 2 alpha + 2, tag 3$



not $alpha^6 = alpha + 2$!



Continuing:



$alpha^7 = 2alpha^2 + 2alpha = 2(alpha + 1) + 2alpha = alpha + 2; tag 4$



$alpha^8 = alpha^2 + 2alpha = alpha + 1 + 2alpha = 1! tag 5$



easy, you know the way it's supposed to be!






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thank you very much :)
    $endgroup$
    – Khan Saab
    Jan 27 at 5:05










  • $begingroup$
    @KhanSaab: my pleasure sir! And thank you for the "acceptance"!
    $endgroup$
    – Robert Lewis
    Jan 27 at 5:06






  • 1




    $begingroup$
    Good job. ${}{}$
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:35










  • $begingroup$
    @JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
    $endgroup$
    – Robert Lewis
    Jan 27 at 19:36
















5












$begingroup$

It strikes me that our OP Khan Saab's calculations of the powers of $alpha$ are OK through $alpha^5$, but there is an error in $alpha^6$. With



$alpha^2 = alpha + 1, tag 1$



we have, correctly,



$alpha^5 = 2 alpha; tag 2$



then



$alpha^6 = 2 alpha^2 = 2 alpha + 2, tag 3$



not $alpha^6 = alpha + 2$!



Continuing:



$alpha^7 = 2alpha^2 + 2alpha = 2(alpha + 1) + 2alpha = alpha + 2; tag 4$



$alpha^8 = alpha^2 + 2alpha = alpha + 1 + 2alpha = 1! tag 5$



easy, you know the way it's supposed to be!






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thank you very much :)
    $endgroup$
    – Khan Saab
    Jan 27 at 5:05










  • $begingroup$
    @KhanSaab: my pleasure sir! And thank you for the "acceptance"!
    $endgroup$
    – Robert Lewis
    Jan 27 at 5:06






  • 1




    $begingroup$
    Good job. ${}{}$
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:35










  • $begingroup$
    @JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
    $endgroup$
    – Robert Lewis
    Jan 27 at 19:36














5












5








5





$begingroup$

It strikes me that our OP Khan Saab's calculations of the powers of $alpha$ are OK through $alpha^5$, but there is an error in $alpha^6$. With



$alpha^2 = alpha + 1, tag 1$



we have, correctly,



$alpha^5 = 2 alpha; tag 2$



then



$alpha^6 = 2 alpha^2 = 2 alpha + 2, tag 3$



not $alpha^6 = alpha + 2$!



Continuing:



$alpha^7 = 2alpha^2 + 2alpha = 2(alpha + 1) + 2alpha = alpha + 2; tag 4$



$alpha^8 = alpha^2 + 2alpha = alpha + 1 + 2alpha = 1! tag 5$



easy, you know the way it's supposed to be!






share|cite|improve this answer











$endgroup$



It strikes me that our OP Khan Saab's calculations of the powers of $alpha$ are OK through $alpha^5$, but there is an error in $alpha^6$. With



$alpha^2 = alpha + 1, tag 1$



we have, correctly,



$alpha^5 = 2 alpha; tag 2$



then



$alpha^6 = 2 alpha^2 = 2 alpha + 2, tag 3$



not $alpha^6 = alpha + 2$!



Continuing:



$alpha^7 = 2alpha^2 + 2alpha = 2(alpha + 1) + 2alpha = alpha + 2; tag 4$



$alpha^8 = alpha^2 + 2alpha = alpha + 1 + 2alpha = 1! tag 5$



easy, you know the way it's supposed to be!







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Jan 27 at 4:50

























answered Jan 27 at 4:43









Robert LewisRobert Lewis

48.3k23167




48.3k23167








  • 1




    $begingroup$
    Thank you very much :)
    $endgroup$
    – Khan Saab
    Jan 27 at 5:05










  • $begingroup$
    @KhanSaab: my pleasure sir! And thank you for the "acceptance"!
    $endgroup$
    – Robert Lewis
    Jan 27 at 5:06






  • 1




    $begingroup$
    Good job. ${}{}$
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:35










  • $begingroup$
    @JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
    $endgroup$
    – Robert Lewis
    Jan 27 at 19:36














  • 1




    $begingroup$
    Thank you very much :)
    $endgroup$
    – Khan Saab
    Jan 27 at 5:05










  • $begingroup$
    @KhanSaab: my pleasure sir! And thank you for the "acceptance"!
    $endgroup$
    – Robert Lewis
    Jan 27 at 5:06






  • 1




    $begingroup$
    Good job. ${}{}$
    $endgroup$
    – Jyrki Lahtonen
    Jan 27 at 19:35










  • $begingroup$
    @JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
    $endgroup$
    – Robert Lewis
    Jan 27 at 19:36








1




1




$begingroup$
Thank you very much :)
$endgroup$
– Khan Saab
Jan 27 at 5:05




$begingroup$
Thank you very much :)
$endgroup$
– Khan Saab
Jan 27 at 5:05












$begingroup$
@KhanSaab: my pleasure sir! And thank you for the "acceptance"!
$endgroup$
– Robert Lewis
Jan 27 at 5:06




$begingroup$
@KhanSaab: my pleasure sir! And thank you for the "acceptance"!
$endgroup$
– Robert Lewis
Jan 27 at 5:06




1




1




$begingroup$
Good job. ${}{}$
$endgroup$
– Jyrki Lahtonen
Jan 27 at 19:35




$begingroup$
Good job. ${}{}$
$endgroup$
– Jyrki Lahtonen
Jan 27 at 19:35












$begingroup$
@JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
$endgroup$
– Robert Lewis
Jan 27 at 19:36




$begingroup$
@JyrkiLahtonen: Quite a compliment considering the source! Thanks, Jyrki.
$endgroup$
– Robert Lewis
Jan 27 at 19:36


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3089119%2fverifying-if-a-given-polynomial-is-primitive-polynomial%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

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter