gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000010000000000000000000000000000000000000000
a = 0x0000010000000000
a = x40

b = b0000000000000000000000000000000000000000001001111000101010011001
b = 0x0000000000278a99
b = x21 + x18 + x17 + x16 + x15 + x11 + x9 + x7 + x4 + x3 + 1

  10000000000000000000000000000000000000000 | 1001111000101010011001
- 1001111000101010011001                    | 1
  ----------------------------------------- |
     11110001010100110010000000000000000000 |
-  0000000000000000000000                   | 0
-   0000000000000000000000                  | 0
-    1001111000101010011001                 | 1
  ----------------------------------------- |
      1101111011110010100010000000000000000 |
-     1001111000101010011001                | 1
  ----------------------------------------- |
       100000011011000111011000000000000000 |
-      1001111000101010011001               | 1
  ----------------------------------------- |
          111111001101110111100000000000000 |
-       0000000000000000000000              | 0
-        0000000000000000000000             | 0
-         1001111000101010011001            | 1
  ----------------------------------------- |
           11000101111011110000100000000000 |
-          1001111000101010011001           | 1
  ----------------------------------------- |
            1011011110001010110110000000000 |
-           1001111000101010011001          | 1
  ----------------------------------------- |
              10100110100000101111000000000 |
-            0000000000000000000000         | 0
-             1001111000101010011001        | 1
  ----------------------------------------- |
                111000101010001001010000000 |
-              0000000000000000000000       | 0
-               1001111000101010011001      | 1
  ----------------------------------------- |
                 11111001000100000110100000 |
-                1001111000101010011001     | 1
  ----------------------------------------- |
                  1100111001110100000110000 |
-                 1001111000101010011001    | 1
  ----------------------------------------- |
                   101000001011110011111000 |
-                  1001111000101010011001   | 1
  ----------------------------------------- |
                     1111101001011010011100 |
-                   0000000000000000000000  | 0
-                    1001111000101010011001 | 1
  ----------------------------------------- |
                      110010001110000000101 |

cquotient = b0000000000000000000000000000000000000000000010011100111010111101
cquotient = 0x000000000009cebd
cquotient = x19 + x16 + x15 + x14 + x11 + x10 + x9 + x7 + x5 + x4 + x3 + x2 + 1

cremainder = b0000000000000000000000000000000000000000000110010001110000000101
cremainder = 0x0000000000191c05
cremainder = x20 + x19 + x16 + x12 + x11 + x10 + x2 + 1