Josephus survivor position
bpj_discrete_josephusCount from the first person and eliminate every kth to obtain the one-based surviving position.
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": {
"people": "<people>",
"step": "<step>"
},
"name": "bpj_discrete_josephus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | ||
| people | Yes |