stern_brocot_tree
Generate a path through the Stern-Brocot tree to reach a target fraction, useful for exploring rational number sequences and approximations.
Instructions
Generate path through Stern-Brocot tree to reach target fraction. (Domain: arithmetic, Category: farey_sequences)
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": {
"target_p": "<target_p>",
"target_q": "<target_q>"
},
"name": "stern_brocot_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_p | Yes | ||
| target_q | Yes |