# Microgram: combinatorics-josephus

`station__algovigilance__microgram-combinatorics-josephus` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Compute Josephus survivor position (0-indexed) for n people, every kth eliminated.

## Agent metadata

- `idempotent`: true
- `read_only`: true
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `n` *number* (required) — Input parameter n.
- `k` *number* (required) — Input parameter k.

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-combinatorics-josephus",
    "arguments": {
      "n": 0,
      "k": 0
    }
  }
}
```

## Related

- [/tools](/tools) — all 7718 tools
- [/tools/algovigilance__microgram-combinatorics-josephus](/tools/algovigilance__microgram-combinatorics-josephus) — HTML page
- [/tools/algovigilance__microgram-combinatorics-josephus/json](/tools/algovigilance__microgram-combinatorics-josephus/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
