I am trying to find GCD of the following polynomials ( two separate questions ) in Field modulo 2 and field modulo 3. But I am stuck in the first one for some reasons.
a(x) =x5+x3+x2+ 1,
b(x) =x3+x for mod 2
a(x) = 2x3+2x2+x+1
b(x) =x2+2 for mod 3
For the first one, I tried to represent the polynomials as bits of 1's and 0's (e.g : 101101 and 1010) and tried to find GCD using Euclid's algorithm, but at some point it leads to zero, which is not possible if I am doing the calculation correctly.
2nd set of polynomials, I am not sure at all, as it as co efficients more than 1.
Any help would be much appreciated.