gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000111101111101100100100100100111111111001100111111
a = 0x0000f7d9249ff33f
a = x47 + x46 + x45 + x44 + x42 + x41 + x40 + x39 + x38 + x36 + x35 + x32 + x29 + x26 + x23 + x20 + x19 + x18 + x17 + x16 + x15 + x14 + x13 + x12 + x9 + x8 + x5 + x4 + x3 + x2 + x + 1

b = b0000000000000000000010001011001011101101101010110001011000000000
b = 0x000008b2edab1600
b = x43 + x39 + x37 + x36 + x33 + x31 + x30 + x29 + x27 + x26 + x24 + x23 + x21 + x19 + x17 + x16 + x12 + x10 + x9

  111101111101100100100100100111111111001100111111 | 10001011001011101101101010110001011000000000
- 10001011001011101101101010110001011000000000     | 1
  ------------------------------------------------ |
   11111001111011111111110001011101001001100111111 |
-  10001011001011101101101010110001011000000000    | 1
  ------------------------------------------------ |
    1110010110000010010011011101100010001100111111 |
-   10001011001011101101101010110001011000000000   | 1
  ------------------------------------------------ |
     110111010101100100101110110100111101100111111 |
-    10001011001011101101101010110001011000000000  | 1
  ------------------------------------------------ |
      10101100111011111110100011000101011100111111 |
-     10001011001011101101101010110001011000000000 | 1
  ------------------------------------------------ |
        100111110000010011001001110100000100111111 |

cquotient = b0000000000000000000000000000000000000000000000000000000000011111
cquotient = 0x000000000000001f
cquotient = x4 + x3 + x2 + x + 1

cremainder = b0000000000000000000000100111110000010011001001110100000100111111
cremainder = 0x0000027c1327413f
cremainder = x41 + x38 + x37 + x36 + x35 + x34 + x28 + x25 + x24 + x21 + x18 + x17 + x16 + x14 + x8 + x5 + x4 + x3 + x2 + x + 1