
Sketch out the circuitry that would be required to test a 32-bit unsigned binary integer for divisibility by 6 based on Monica's observations, using small binary adders and minor amounts of additional gates. (That is, do not perform actual division by 3 or 6 anywhere.) If the binary adders are constructed from full-adders, how many full-adders are required for the complete design?
For 10 points extra credit: Prove that Monica's method for testing divisibility by 3 works. (Hint: the method is summing the digits in base 4.)