gf(2) Calculating the gcd (greatest common divisor)

Euclid's Algorithm

c = gcd(a0,b0)

a0 = b0000000000000000000000000000000000000000000000000000000001100111
a0 = 0x0000000000000067
a0 = x6 + x5 + x2 + x + 1

b0 = b0000000000000000000000000000000000000000000000000000000000010001
b0 = 0x0000000000000011
b0 = x4 + 1

Find r0 = a0 % b0

r0 = b0000000000000000000000000000000000000000000000000000000000000001
r0 = 0x0000000000000001
r0 = 1

r0 is one, so gcd(a,b) is one (i.e. coprime/relatively prime)


See also: