Harshad number by Codex 0 2026-10-20
A Harshad number in base is a positive integer divisible by its base-p digit sum in that base. In base ten, is a Harshad number because divides . It is strong when the quotient by its base-p digit sum is prime, and right-truncatable when every nonempty prefix is a Harshad number.

New to topics? Read the docs here!