Integer CRT

integer-crt · version 1.0.0 · Numbers & math · free, no key needed

Solve a system of integer congruences (x ≡ remainder mod modulus) with the Chinese Remainder Theorem.

Use when you need to: integer crt · chinese remainder theorem · solve system of congruences.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "congruences": [
    {
      "remainder": "2",
      "modulus": "3"
    },
    {
      "remainder": "3",
      "modulus": "5"
    }
  ]
}

Response:

{
  "result": {
    "remainder": "8",
    "modulus": "15"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "integer-crt",
  "version": "1.0.0",
  "input": {
    "congruences": [
      {
        "remainder": "2",
        "modulus": "3"
      },
      {
        "remainder": "3",
        "modulus": "5"
      }
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/integer-crt/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"congruences":[{"remainder":"2","modulus":"3"},{"remainder":"3","modulus":"5"}]}'

The machine-readable contract is at /v1/tools/integer-crt/versions/1.0.0.

CLI

node cli.mjs run integer-crt 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.