Theorem. Testing for divisibility by 3 [00EQ]

A number is divisible by 3 iff the sum of its digits in base 10 is also divisible by 3.

Note this process can be iterated: for example, 7431 is divisible by 3 if and only if 7 + 4 + 3 + 1 = 15 is; and 15 in turn is divisible by 3 if and only if 1 + 5 = 6 is.