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)
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": "is_harshad_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| base | No |