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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Power exponent (default 1). | |
| n | Yes | Positive integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |