Subtraction Grundy
subtraction_grundyThe Grundy value of a heap of n in the subtraction game with the given move sizes. With moves 1, 2, and 3, the value of n is n mod 4. n runs from 0 to 500, and there are 1 to 8 moves, each from 1 to 100. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/subtraction-grundy
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>",
"moves": "<moves>"
},
"name": "subtraction_grundy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| moves | Yes |