How to generate GF(8)

I am new to Maple and still learning syntax, what I would like to do is to generate the elemets of GF(8) or to even how to multiply ploynomials modulo x^3 + x +1?

Thanks for help any one can provide.

Robert Israel's picture

GF(8)

The elements of GF(8), represented as Z_2[x]/<x^3+x+1>:

> 0, seq(Rem(x^j, x^3+x+1, x) mod 2, j = 1 .. 7);

Multiplying polynomials mod x^3+x+1:

> rem((x^2+x+1)*(x+1), x^3+x+1, x);

Doing it over Z[2]:

> Rem((x^2+x+1)*(x+1), x^3+x+1, x) mod 2;

You could also try using GF, but I find it unpleasant.

Thanks for your fast

Thanks for your fast response, that was exactly what I needed.

Regards

Alan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}