Multichoose
multichooseThe number of ways to choose k elements from n types with repetition, which is C(n+k-1, k). Choosing 2 from 3 types can be done in 6 ways. Choosing nothing can be done in 1 way. n and k run from 0 to 1024. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/multichoose
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": "multichoose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| n | Yes |