Josephus First
josephus_firstThe first person eliminated in the Josephus circle. With 5 people and every 2nd, person 2 leaves first. With every 3rd, person 3 leaves first. A circle of one person has nobody to eliminate. n runs from 2 to 10000 and k from 1 to 10000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/josephus-first
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>",
"k": "<k>"
},
"name": "josephus_first"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| n | Yes |