A number is divisible by 3 if and only if the sum of digits in its base-10 representation is divisible by 3.

A number is divisible by 9 if and only if the sum of digits in its base-10 representation is divisible by 9.

The analogous result does not hold for any other number.