Verifying if a given polynomial is primitive polynomial
$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.
polynomials galois-theory finite-fields cryptography coding-theory
$endgroup$
add a comment |
$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.
polynomials galois-theory finite-fields cryptography coding-theory
$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
add a comment |
$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.
polynomials galois-theory finite-fields cryptography coding-theory
$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
polynomials galois-theory finite-fields cryptography coding-theory
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
add a comment |
$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
add a comment |
1 Answer
1
active
oldest
votes
$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!
$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
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%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
$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!
$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
add a comment |
$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!
$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
add a comment |
$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!
$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!
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
add a comment |
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
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%2f3089119%2fverifying-if-a-given-polynomial-is-primitive-polynomial%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
$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