sympy_perfect_power
Determine whether a given integer n is a perfect power, meaning it can be expressed as a^b for integers a>1 and b>1. Returns a boolean result for number theory validation.
Instructions
Check if n is a perfect power.
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": "sympy_perfect_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |