kaprekar_constant
Calculate the Kaprekar constant for any number of digits to find the fixed point in Kaprekar's routine, where rearranging digits and subtracting yields the same result.
Instructions
Get the Kaprekar constant for a given number of digits. (Domain: arithmetic, Category: iterative_sequences)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digits | Yes |