How can I determine that a positive integer has exactly one zero in its binary representation?
How can I create a serial device that takes in a binary number and outputs (serially) the same number with every third ‘1’ converted to a ‘0’?