1
$\begingroup$

I am trying to compute the multiplicative inverse of:

$x^4 + x^2 + x$

Using the irreducible polynomial:

$x^8 + x^4 + x^3 + x + 1$

Over $GF(2)=\mathbb{F}_2$.

I tried applying the extended euclidean algorithm but to no avail. At some point during the algorithm I end up with the remainder $169/144$ and am unsure how to proceed from there on. Any help would be greatly appreciated.

Thanks in advance!

$\endgroup$
3
  • 2
    $\begingroup$ What exactly do you mean by "using the irreducible polynomial"? Do you want to find the inverse in $\mathbb{F}_2[x]/(x^8+x^4+x^3+x+1)$? $\endgroup$
    – Janik
    Dec 27, 2016 at 11:35
  • $\begingroup$ yes, that's what I'm trying to do $\endgroup$ Dec 27, 2016 at 11:37
  • $\begingroup$ Show us your computation of the extended euclidean algorithm. $\endgroup$
    – lhf
    Dec 27, 2016 at 12:22

1 Answer 1

3
$\begingroup$

$\mathbb{F}_2[x]/(x^8+x^4+x^3+x+1) \cong \mathbb{F}_{2^8}$.

If $\alpha \in \mathbb{F}_{2^8}$ and $\alpha\ne0$, then $\alpha^{2^8-1}=1$, and so $\alpha^{-1}=\alpha^{2^8-2}$.

Therefore, the inverse of $x^4 + x^2 + x$ in $\mathbb{F}_{2^8}$ is $(x^4 + x^2 + x)^{2^8-2}$.

This is an answer, even if not a very practical one.


The extended Euclidean algorithm (*) gives $$ 9= (12 x^7 - 15 x^6 + 9 x^5 - 6 x^4 + 18 x^3 - 6 x^2 - 6 x + 12)(x^4+x^2+x)+(-12 x^3 + 15 x^2 - 21 x + 9)(x^8+x^4+x^3+x+1) $$ from which we get that the inverse of $x^4+x^2+x$ is $12 x^7 - 15 x^6 + 9 x^5 - 6 x^4 + 18 x^3 - 6 x^2 - 6 x + 12=x^6 + x^5$.

(*) computed by WA.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .