Farey Count
farey_countHow many reduced fractions lie in the Farey sequence of order n, from 0/1 through 1/1. Order 1 has 2, order 5 has 11, and order 6 has 13. The count is one more than the totient sum. n runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/farey-count
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>"
},
"name": "farey_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |