Josephus Place
josephus_placeWhen a seat is eliminated. Place 1 is the first person out. The survivor has place n. With 5 people and every 2nd, seat 2 has place 1 and seat 3 has place 5. The seat must be from 1 to n. n runs 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-place
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>",
"seat": "<seat>"
},
"name": "josephus_place"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| n | Yes | ||
| seat | Yes |