is_harshad_number
Check if a number is divisible by the sum of its digits (Harshad/Niven number) to verify this mathematical property in base 10 or other bases.
Instructions
Check if a number is a Harshad (Niven) number (divisible by sum of its digits). (Domain: arithmetic, Category: digital_operations)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| base | No |