Hello World! lol =====Number Systems Conversions===== A selection of different problems for your solving pleasure. Be sure to focus on the process, not just the answer. =====Powers of 2===== ^ Exponent ^ Value | | 2e0 | 1 | | 2e1 | 2 | | 2e2 | 4 | | 2e3 | 8 | | 2e4 | 16 | | 2e5 | 32 | | 2e6 | 64 | | 2e7 | 128 | | 2e8 | 256 | | 2e9 | 512 | | 2e10 | 1024 | | 2e11 | 2048 | | 2e12 | 4096 | | 2e13 | 8192 | | 2e14 | 16384 | | 2e15 | 32768 | | 2e16 | 65536 | | 2e17 | 131072 | | 2e18 | 262144 | | 2e19 | 524288 | | 2e20 | 1048576 | =====Powers of 8===== ^ Exponent ^ Value | | 8e0 | 1 | | 8e1 | 8 | | 8e2 | 64 | | 8e3 | 512 | | 8e4 | 4096 | | 8e5 | 32768 | | 8e6 | 262144 | | 8e7 | 2097152 | | 8e8 | 16777216 | | 8e9 | 134217728 | | 8e10 | 1073741824 | | 8e11 | 8589934592 | =====Powers of 16===== ^ Exponent ^ Value | | 16e0 | 1 | | 16e1 | 16 | | 16e2 | 256 | | 16e3 | 4096 | | 16e4 | 65536 | | 16e5 | 1048576 | | 16e6 | 16777216 | | 16e7 | 268435456 | =====Conversions between Powers of 2===== ^ Binary Number ^ Octal Number ^ Hexadecimal Number | | 0101011101 | 0535 | 15D | | 000111010101100 | 07254 | 0EAC | | 11011110101011 | 33653 | 37AB | | 00110100010111111011 | 0642773 | 345FB | | 000101100101010001010 | 0545212 | 02CA8A | | 11111110110111000110010101000011 | FEDC6543 | FEDC6543 | =====Conversions involving Base 10===== ^ Binary Number ^ Octal Number ^ Decimal Number ^ Hexadecimal Number | | 11011011000 | 3330 | ? | 6D8 | | 111111111 | 777 | ? | 1FF | | 1000000000 | 1000 | ? | 002 | | 000111111111111 | 07777 | ? | 0FFF | | 000001000000000000000000 | 01000000 | ? | ? | | 000110101101011101 | 065535 | ? | ? | | ? | ? | 1000 | ? | | ? | ? | 7168 | ? | | ? | ? | 16383 | ? | | 0001000000000000 | 010000 | 4096 | 1000 | | 1111111111111111 | 177777 | ? | FFFF | | 0101101001011010 | ? | ? | 5A5A | =====Challenge===== Not required, but a good test of concepts. ^ Exponent ^ Value | | 7e0 | 1 | | 7e1 | 7 | | 7e2 | 49 | | 7e3 | 343 | | 7e4 | 2401 | | 7e5 | 16807 | ^ Binary Number ^ Septal? Number ^ Octal Number ^ Decimal Number ^ Hexadecimal Number | | ? | 1234 | ? | ? | ? | | ? | 6144 | ? | ? | ? | For anyone who was confused by the lesson on "Number Systems", here are some extra examples to help you all to understand the seemingly complex, yet very basic, logic behind it:
Base Correlation Chart
Binary Base 2 Octal Base 8 Decimal Base 10 Hexacedimal Base 16
0 0 0 0
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
10101 25 21 15
10110 26 22 16
10111 27 23 17
11000 30 24 18
11001 31 25 19
11010 32 26 1A
11011 33 27 1B
11100 34 28 1C
11101 35 29 1D
11110 36 30 1E
11111 37 31 1F
100000 40 32 20
100001 41 33 21
100010 42 34 22
100011 43 35 23
100100 44 36 24
100101 45 37 25
100110 46 38 26
Let's use the example of the Octal value 24. Why is Octal 24 equal to the number 20 in our typical "base 10" lives? Because equivalent values existing in the different bases are... well... different. There is no existant "8", or "9" digit in an Octal system, therefore we lose the ability to use those digits. "19" and "98", for example, can not exist without having access to the digits 8 and 9. This means that we need to "carry" or extend our work to the next column over when we reach this imaginary "ceiling", if you will, of the base.

Now lets try switching bases, but preserving the SAME value (we'll work in base 10 since that is what most people are most familiar with). This can be done by recognizing that a "carry" must happen once we have reached our maximum digit in any given base but still need to continue counting. With Base 10 we do this after we reach the digit 9. We increase the value of the left-most value by one to continue counting upward.

Here's an Example:

When dealing with the digit 9410 (Base 10), we can represent any values preceeding the 9 as 0's. The number 000094 is the same as just plain 94. If placed in front of something, 0 has NO value.

Understanding this, we should be able to recognize that once we reach 99, and need to continue, we will be able to roll one of the imaginary leading zeros up to our next digit and reset everything that follows.

Counting upward in Base 10:

000094
000095
000096
000097
000098
000099
000100 - We simply call this 100, and typically ignore the laws behind why it's a 1 followed by two 0's (The same
000101    goes for 10, or 1,000, 10,000, and so on...)
000102

We're going to increase the value of our column to the left by 1 factor each time we reach our maximum in the column to it's right. If we apply this concept while counting in any base then we should be able to list the numbers of any number system consecutively. Becoming familiar is simply a matter of practice.