A. Notes:
From the extensive exercises on counting in binary, we know:
Convert from binary to decimal:
Covert decimal to binary:
Method 1:
Method 2
The remainder method: dividing the number by 2 recursively until you're left with 0, write all remainders backwards.
Write down the decimal number.
Divide the number by 2.
Write the result underneath.
Write the remainder on the right hand side. This will be 0 or 1.
Divide the result of the division by 2 and again write down the remainder.
Continue dividing and writing down remainders until the result of the division is 0.
The most significant bit (MSB) is at the bottom of the column of remainders and the least significant bit (LSB) is at the top.
Read the series of 1s and 0s on the right from the bottom up. This is the binary equivalent of the decimal number.
B. HW:
1. How many binary numbers have more 1’s than 0’s in the range of numbers from 16 to 31 in base 10 inclusive?
2.
1. 179
2. 258
3. 87
4. 154
5. 8
6. 16
7. 32
8. 64
1. 1111
2. 100110
3. 1000110111
4. 100100011111