sigma
Compute the sum of k-th powers of divisors for a positive integer n. Customize the sum by specifying the power exponent k.
Instructions
Compute the sum of k-th powers of divisors of n.
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": "sigma"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Power exponent (default 1). | |
| n | Yes | Positive integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |