Chapter 12: Number Systems, Binary Conversions, and Base Changes Study Guide

Overview of Number Systems and Base 10

  • The study of number systems begins with our standard base 10 system, which has been utilized throughout the course.

  • Our system is a place value system, which includes the following positions:

    • Ones place

    • Tens place

    • Hundredths place (likely intended as hundreds place in the context of whole numbers)

    • Thousands place, etc.

  • In base 10, we utilize the digits 00 through 99.

  • Once you reach 1010 objects, you must move into the next place value. For example, once you count ten individual items, you move into the tens place and are left with a zero in the ones place.

Historical Context of Different Bases

  • Different civilizations have utilized alternative bases throughout history:

    • Babylonians: Utilized a base 60 system. Once you reached the number 5959, you had to move to the next value, which was the 60160^1 column.

    • Mayans: Utilized a positional system based on 2020. Once you reached 2020, you moved into position two.

Binary Numbers (Base 2)

  • Binary numbers operate in base 2.

  • They exclusively use the digits 00 and 11.

  • The Conversion Algorithm: To convert from base 10 to a different base (such as binary), follow these steps:

    1. Divide the base 10 number by the target base (in this case, 22).

    2. Perform long division and record the remainder.

    3. Continue dividing the resulting quotient by the base.

    4. Repeat this process until the remaining number is smaller than the base (i.e., you cannot divide by the base anymore).

    5. The remainders obtained form the new number. The first remainder found corresponds to the ones place, the second remainder to the next position, and so on. The final quotient (the last number that could not be divided) becomes the leading digit.

Examples of Base 10 to Binary Conversion

  • Converting 431043_{10} to Binary (Base 2Base\,2):

    • 43÷2=2143 \div 2 = 21 remainder 11 (This 11 goes in the ones place: 202^0)

    • 21÷2=1021 \div 2 = 10 remainder 11 (Next position: 212^1)

    • 10÷2=510 \div 2 = 5 remainder 00 (Next position: 222^2 - Note: The zero is vital and cannot be omitted)

    • 5÷2=25 \div 2 = 2 remainder 11 (Next position: 232^3)

    • 2÷2=12 \div 2 = 1 remainder 00 (Next position: 242^4)

    • Final quotient is 11, which cannot be divided by 22 further. This goes into the final slot (252^5).

    • Result: 1010112101011_2

  • Checking the Answer for 431043_{10}:

    • To check, expand the binary result using powers of 22:

    • 1×25+0×24+1×23+0×22+1×21+1×20=431 \times 2^5 + 0 \times 2^4 + 1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 = 43

  • Converting 131013_{10} to Binary (Base 2Base\,2):

    • 13÷2=613 \div 2 = 6 remainder 11

    • 6÷2=36 \div 2 = 3 remainder 00

    • 3÷2=13 \div 2 = 1 remainder 11

    • The final 11 cannot be divided further and moves to the leading position.

    • Result: 110121101_2

  • Checking the Answer for 131013_{10}:

    • 1×23+1×22+0×21+1×20=8+4+0+1=131 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 1 \times 2^0 = 8 + 4 + 0 + 1 = 13

Binary Arithmetic (Addition)

  • When adding in base 2, recuerd the rule: 2102_{10} is equal to 10210_2. You can only use digits 00 and 11. If a sum reaches 22, you must carry over to the next place value.

  • Example 1: 1012+102101_2 + 10_2

    • Ones column: 1+0=11 + 0 = 1

    • Tens column: 0+1=10 + 1 = 1

    • Hundreds column: 11

    • Result: 1112111_2

  • Example 2: Adding where carrying is required

    • Sum of 0+1=10 + 1 = 1

    • Sum of 0+1=10 + 1 = 1

    • Sum of 1+1=21 + 1 = 2. Since the digit 22 does not exist in base 2, write 00 and carry the 11 to the next column.

    • The next calculation involves adding the carried 11 to the existing digits. If you have 1+11 + 1, the result is again 1010.

    • Resulting values discussed in the example: 10011210011_2.

  • Example 3: 1112+1112111_2 + 111_2 (conceptualized)

    • 1+1=01 + 1 = 0, carry 11

    • 1+1+1=111 + 1 + 1 = 11 (which is 3103_{10}), write 11, carry 11

    • Final result discussed in sequence: 101021010_2.

Converting to Other Bases

  • The same division algorithm applies regardless of the base.

  • Base 4 Conversion (Digits: 00 through 33):

    • Example: Convert 101010_{10} to Base 4

      • 10÷4=210 \div 4 = 2 remainder 22

      • The quotient 22 cannot be divided by 44 further.

      • Result: 22422_4

      • Check: 2×41+2×40=8+2=102 \times 4^1 + 2 \times 4^0 = 8 + 2 = 10

    • Example: Convert 861086_{10} to Base 4

      • 86÷4=2186 \div 4 = 21 remainder 22

      • 21÷4=521 \div 4 = 5 remainder 11

      • 5÷4=15 \div 4 = 1 remainder 11

      • The final 11 moves to the front.

      • Result: 111241112_4

  • Base 8 Conversion (Digits: 00 through 77):

    • Example: Convert 48910489_{10} to Base 8

      • 489÷8=61489 \div 8 = 61 remainder 11

      • 61÷8=761 \div 8 = 7 remainder 55

      • The final 77 moves to the front.

      • Result: 7518751_8

Converting Back to Base 10

  • To convert any base back to base 10, use the place value expansion method (the check step).

  • Example 1: Convert 101021010_2 to Base 10

    • 1×23+0×22+1×21+0×20=8+0+2+0=10101 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 0 \times 2^0 = 8 + 0 + 2 + 0 = 10_{10}

  • Example 2: Convert 1435143_5 to Base 10

    • Note: The transcript corrects an error where a digit "5" was used in base 5; digits in base 5 must be 00 through 44.

    • 1×52+4×51+3×501 \times 5^2 + 4 \times 5^1 + 3 \times 5^0

    • 25+20+3=481025 + 20 + 3 = 48_{10}

  • Example 3: Convert 525465254_6 to Base 10

    • 5×63+2×62+5×61+4×605 \times 6^3 + 2 \times 6^2 + 5 \times 6^1 + 4 \times 6^0

    • 5×216+2×36+5×6+4×15 \times 216 + 2 \times 36 + 5 \times 6 + 4 \times 1

    • 1080+72+30+4=1186101080 + 72 + 30 + 4 = 1186_{10}