Captured local Linux execution; environment-dependent values may differ.

{
  "result": {
    "sum": 30,
    "product": 3,
    "inverse": 16,
    "division": 23
  },
  "trace": [
    {
      "step": "Operands",
      "A": "x^4+x^2+1",
      "B": "x^3+x+1",
      "modulus": "x^5+x^2+1"
    },
    {
      "step": "Addition",
      "hex": "1E",
      "polynomial": "x^4+x^3+x^2+x"
    },
    {
      "step": "Multiply term",
      "term": "x^4+x^2+1",
      "accumulator": "x^4+x^2+1",
      "hex": "15"
    },
    {
      "step": "Multiply term",
      "term": "x^5+x^3+x",
      "accumulator": "x^5+x^4+x^3+x^2+x+1",
      "hex": "3F"
    },
    {
      "step": "Multiply term",
      "term": "x^7+x^5+x^3",
      "accumulator": "x^7+x^4+x^2+x+1",
      "hex": "97"
    },
    {
      "step": "Long division",
      "before": "x^7+x^4+x^2+x+1",
      "cancel": "x^7+x^4+x^2",
      "remainder": "x+1",
      "hex": "03"
    },
    {
      "step": "Extended Euclid",
      "r": "x^5+x^2+1",
      "s": "x^3+x+1",
      "quotient": "x^2+1",
      "remainder": "x",
      "coefficient": "x^2+1"
    },
    {
      "step": "Extended Euclid",
      "r": "x^3+x+1",
      "s": "x",
      "quotient": "x^2+1",
      "remainder": "1",
      "coefficient": "x^4"
    },
    {
      "step": "Extended Euclid",
      "r": "x",
      "s": "1",
      "quotient": "x",
      "remainder": "0",
      "coefficient": "x^5+x^2+1"
    },
    {
      "step": "Result",
      "raw": "97",
      "quotient": "04",
      "remainder": "03",
      "inverse": "10",
      "division": "17",
      "times02": "0F",
      "times03": "1A"
    }
  ]
}

Test script output:
PASS
