This is an easy question, but I can't explain it lol, how would you guys explain it?
There is a procedure for converting a decimal number to binary in the following way: repeatedly divide the number by 2, writing the quotient and remainder at each step. Stop when 0 is obtained as a quotient. The sequence of remainders, written backwards (from the way they were obtained) is the binary representation. Here is an example, finding the binary representation of 49:
|49 24 1 |
|24 12 0 |
|12 6 0 |
|6 3 0 |
|3 1 1 |
|1 0 1 |
So 49 = 110001 (base 2) - Explain why this method works.