Part 1: Counting from 1 to 2010 in different number bases
| Binary | Octal |
Decimal | Hex |
| 1 |
1 |
1 | 1 |
| 10 |
2 |
2 |
2 |
| 11 |
3 |
3 |
3 |
| 100 |
4 |
4 |
4 |
| 101 |
5 |
5 |
5 |
| 110 |
6 |
6 |
6 |
| 111 |
7 |
7 |
7 |
| 1000 |
10 |
8 |
8 |
| 1001 |
11 |
9 |
9 |
| 1010 |
12 |
10 |
A |
| 1011 |
13 |
11 |
B |
| 1100 |
14 |
12 |
C |
| 1101 |
15 |
13 |
D |
| 1110 |
16 |
14 |
E |
| 1111 |
17 |
15 |
F |
| 10000 |
20 |
16 |
10 |
| 10001 |
21 |
17 |
11 |
| 10010 |
22 |
18 |
12 |
| 10011 |
23 |
19 |
13 |
| 10100 |
24 |
20 |
14 |
Part 2: Converting numbers between bases
Let's convert the binary numnber 100110012
to decimal. If we place each of the digits in the table below, we know
exactly how much each digit in the binary string is worth.
| 27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
| 128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
Therefore, the decimal value of this string is equal to:
1*128 + 0*64 + 1*16 + 0*8 + 1*4 + 1*2 + 1*1 = 18310
This page last updated