Show that a number is divisible by 3 if and only if the sum of its digits in its base 10 decomposition is divisible by 3. Then, show the same result for 9.