convert from base 10 to base 2
COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION
Hence, we convert from base 10 to base 2 by repeated
divisions by 2. The remainders and the final quotient, 1, give us, in order of increas-
ing significance, the binary digits of N.