gf(2) mod
c = a % b
Calculate c = a/b, result is c
remainder
gf(2) Polynomial long division
c = a/b
a = b00000000000000000000000001000000
a = 0x00000040
a = x
6
b = b00000000000000000000000000101111
b = 0x0000002f
b = x
5
+ x
3
+ x
2
+ x + 1
1000000 | 101111 - 101111 | 1 ------- | 11110 | - 000000 | 0
c
quotient
= b00000000000000000000000000000010
c
quotient
= 0x00000002
c
quotient
= x
c
remainder
= b00000000000000000000000000011110
c
remainder
= 0x0000001e
c
remainder
= x
4
+ x
3
+ x
2
+ x