Sum up all the digits of the number; if that sum is divisible by 3, then the number is too.