"

10 Supplementary Topics

You will need: A Calculator

Extending Place Values Past the Ones Place

So far, with all of our number bases we’ve studied whole numbers. It’s also possible to work with a numeral that has a decimal point in another base. Look again at the chart for how the place value system worked for a number in Base n. The pattern continues to the left forever.

[latex]\cdot\cdot\cdot\quad  n^{9}\quad n^{8}\quad n^{7}\quad n^{6}\quad n^{5}\quad n^{4}\quad n^{3}\quad n^{2}\quad n^{1}\quad n^{0}[/latex]

The model above is sufficient for a whole number. If you are looking at a number that does not have a decimal point, it is implied that the decimal point is to the right of the rightmost digit, the ones place. We can stretch this model to include a number with decimal points. This is analogous to working with fractions. Following the pattern established above, the place values to the right of the decimal point, in order, are [latex]n^{-1}, n^{-2}, n^{-3}, n^{-4},[/latex]…

So, a way to view the various place values in base b is:

[latex]\cdot\cdot\cdot\quad b^{4}\quad b^{3}\quad b^{2}\quad b^{1}\quad b^{0}\quad_{\bullet}\quad b^{-1}\quad b^{-2}\quad b^{-3}\quad b^{-4}\quad\cdot\cdot\cdot[/latex]

That big dot in the middle is the decimal point. The place values still go infinitely to the left and also to the right. The above model only shows five places to the left of the decimal point and four places to the right of the decimal point.

Now, you may not recall from algebra what a negative exponent means. In case you’ve forgotten, here is the definition of a negative integer exponent and what it means to have an exponent of zero.

If [latex]b\not= 0[/latex], [latex]b^{-n}=\frac{1}{b^n}[/latex]. For example, [latex]\displaystyle 6^{-2} = \frac{1}{6^{2}} = \frac{1}{36}[/latex].

If [latex]b\not= 0[/latex], [latex]b^{0}=1[/latex]. For example, [latex]8^{0} = 1[/latex].

Concept Check: Why do we specify [latex]b\not= 0[/latex]?

Solution

If we allowed [latex]b\not= 0[/latex] we would have zero in the denominator of a fraction, which is not allowed. You cannot divide by zero.

 

Exercise 1

Simplify by first rewriting each problem so that there are no negative exponents. Simplify each fraction.

a. [latex]4^{-1}[/latex]

Solution

[latex]\displaystyle\frac{1}{4}[/latex]

 

b. [latex]4^{-2}[/latex]

Solution

[latex]\displaystyle\frac{1}{16}[/latex]

 

c. [latex]4^{-3}[/latex]

Solution

[latex]\displaystyle\frac{1}{64}[/latex]

 

d. [latex]3^{-1}[/latex]

Solution

[latex]\displaystyle\frac{1}{3}[/latex]

 

e. [latex]5^{-2}[/latex]

Solution

[latex]\displaystyle\frac{1}{25}[/latex]

 

f. [latex]2^{-3}[/latex]

Solution

[latex]\displaystyle\frac{1}{8}[/latex]

 

If you are having a hard time picturing how place values to the right of the decimal are working, think of it this way. Consider

[latex]\cdot\cdot\cdot\quad 10^{4}\quad 10^{3}\quad 10^{2}\quad 10^{1}\quad 10^{0}\quad.\quad 10^{-1}\quad 10^{-2}\quad 10^{-3}\quad 10^{-4}\quad\cdot\cdot\cdot[/latex]

This is the same as

[latex]\displaystyle\cdot\cdot\cdot\quad 10^{4}\quad 10^{3}\quad 10^{2}\quad 10^{1}\quad 10^{0}\quad.\quad \frac{1}{10}\quad \frac{1}{100}\quad \frac{1}{1000}\quad \frac{1}{10000}\quad\cdot\cdot\cdot[/latex]

Notice that if you start at the left most place value and want to move to the right, you divide by your base (in this case, ten) to move down the line. Each time you divide by 10, you have another (smaller) place value. This works in all of our number bases. For example, in base 4 we have,

[latex]\displaystyle\cdot\cdot\cdot\quad 4^{4}\quad 4^{3}\quad 4^{2}\quad 4^{1}\quad 4^{0}\quad.\quad \frac{1}{4}\quad \frac{1}{4^2}\quad \frac{1}{4^3}\quad \frac{1}{4^4}\quad\cdot\cdot\cdot[/latex]

Example

Write the numeral 3846.23 in expanded form.

Solution: Expanded form doesn’t change just because we have fractional place values. It is the exact same format.

[latex](3\times 10^3)+(8\times 10^2)+(4\times 10^1)+(6\times 10^0)+(2\times 10^{-1})+(3\times 10^{-2})[/latex]

[latex]\displaystyle(3\times 1000)+(8\times 100)+(4\times 10)+(6\times 1)+\left(2\times \frac{1}{10}\right)+\left(3\times \frac{1}{100}\right)[/latex]

 

As we saw in the previous section, when we’re looking at a different number base, writing it in expanded form naturally gets us to base ten. That is still true for these fractional place values!

Example

Convert the base five numeral [latex]142.3_{\text{five}}[/latex] to base ten. Leave your answer as a mixed number.

Solution: The expanded form of [latex]142.3_{\text{five}}[/latex] gives

[latex]\begin{align*}142.3_{\text{five}} &= (1 \times 5^{2}) + (4 \times 5^{1}) + (2 \times 5^{0}) + (3 \times 5^{-1}) \\ &= (1 \times 25) + (4 \times 5) + (2\times 1) + \left(3 \times \frac{1}{5^{1}}\right) \\ &= 25 + 20 + 2 + \frac{3}{5} \\ &= 47\frac{3}{5} \end{align*}[/latex]

 

When converting from a different number base to base ten, go through the following steps:

Step 1: Write the numeral in expanded notation.

Step 2: Rewrite each number that has a negative exponent as a number with a positive exponent in the denominator.

Step 3: Simplify each term. (Terms are separated by addition signs.)

Step 4: Add the terms together. Simplify any fractions if necessary.

Exercise 2

Convert each numeral to Base Ten. Leave your answer as a mixed number.

a. [latex]43.2_{\text{eight}}[/latex]

Solution

[latex]\begin{align*}&=(4\times 8)+(3\times 1)+\left(2\times 8^{-1}\right)\\&=(4\times 8)+(3\times 1)+\left(2\times\frac{1}{8}\right)\\&=35\;\frac{1}{4}\end{align*}[/latex]

 

b. [latex]143.7_{\text{eleven}}[/latex]

Solution

[latex]\begin{align*}&=(1\times 121)+(4\times 11)+(3\times 1)+\left(7\times 11^{-1}\right)\\&=(1\times 121)+(4\times 11)+(3\times 1)+\left(7\times\frac{1}{11}\right)\\&=168\;\frac{7}{11}\end{align*}[/latex]

 

c. [latex]1111.1_{\text{two}}[/latex]

Solution

[latex]\begin{align*}&=(1\times 8)+ (1\times 4)+(1\times 2)+(1\times 1)+\left(1\times 2^{-1}\right)\\&=(1\times 8)+ (1\times 4)+(1\times 2)+(1\times 1)+\left(1\times\frac{1}{2}\right)\\&=15\;\frac{1}{2}\end{align*}[/latex]

 

d. [latex]123.2_{\text{four}}[/latex]

Solution

[latex]\begin{align*}&=(1\times 16)+(2\times 4)+(3\times 1)+\left(2\times 4^{-1}\right)\\&=(1\times 16)+(2\times 4)+(3\times 1)+\left(2\times\frac{1}{4}\right)\\&=27\;\frac{1}{2}\end{align*}[/latex]

 

Here is an example of converting to base ten when the numeral has more than one place after the decimal point.

Example

Convert the base five numeral [latex]24.31_{\text{five}}[/latex] to base ten. Leave your answer as a mixed number.

Solution: We will proceed just like we did before, by using the expanded form.

[latex]\begin{align*} 24.31_{\text{five}} &= (2 \times 5^{1}) + (4 \times 5^{0}) + (3 \times 5^{-1}) + (1 \times 5^{-2}) \\ &= (2 \times 5) + (4 \times 1) + \left(3 \times \frac{1}{5^{1}}\right) + \left(1 \times \frac{1}{5^{2}}\right) \\ &= 10 + 4 + \frac{3}{5} + \frac{1}{25} \end{align*}[/latex]

To add fractions, you need a common denominator, which is fairly easy in bases since the denominator will be a power of the original base.

[latex]\begin{align*} &= 14 + \frac{15}{25} + \frac{1}{25} \\ &= 14\frac{16}{25} \end{align*}[/latex]

 

When having to add multiple fractions we have to modify the end of our process to include combining fractions.

Step 1: Write the numeral in expanded notation

Step 2: Rewrite each number that has a negative exponent as a number with a positive exponent in the denominator.

Step 3: Simplify each term. (Terms are separated by addition signs.)

Step 4: Add like terms together; to add fractions, get a common demominator. (It will be a power of the original base.)

Step 5: Simplify further if necessary. Reduce any fractions if necessary.

Exercise 3

Convert each numeral to Base Ten. Leave your answer as a mixed number.

a. [latex]43.21_{\text{six}}[/latex]

Solution

[latex]\begin{align*}&= (4 \times 6^{1}) + (3 \times 1) + (2 \times 6^{-1}) + (1 \times 6^{-2}) \\ &= (4 \times 6) + (3 \times 1) + \left(2 \times \frac{1}{6^{1}}\right) + \left(1 \times \frac{1}{6^{2}}\right) \\ &= 24 + 3 + \frac{2}{6} + \frac{1}{36} \\&=27+\frac{12}{36} + \frac{1}{36}\\&=27\;\frac{13}{36} \end{align*}[/latex]

 

b. [latex]231.123_{\text{four}}[/latex]

Solution

[latex]\begin{align*}&=(2\times 4^2)+ (3 \times 4^{1}) + (1 \times 1) + (1 \times 4^{-1}) + (2 \times 4^{-2}) +(3\times 4^{-3})\\ &= (2 \times 16) + (3 \times 4) +(1\times 1)+ \left(1 \times \frac{1}{4^{1}}\right) + \left(2 \times \frac{1}{4^{2}}\right) + \left(3 \times \frac{1}{4^{3}}\right)\\ &= 32 + 12+1 + \frac{1}{4} +\frac{2}{16}+ \frac{3}{64} \\&=45+\frac{16}{64} + \frac{8}{64}+\frac{3}{64}\\&=45\;\frac{27}{64} \end{align*}[/latex]

 

c. [latex]156.12_{\text{seven}}[/latex]

Solution

[latex]\begin{align*}&= (1\times 7^2)+(5 \times 7^{1}) + (6 \times 1) + (1 \times 7^{-1}) + (2 \times 7^{-2}) \\ &= (1 \times 49) + (5 \times 7) +(6\times 1)+ \left(1 \times \frac{1}{7^{1}}\right) + \left(2 \times \frac{1}{7^{2}}\right) \\ &= 49+35+6+ \frac{1}{7} + \frac{2}{49} \\&=90+\frac{7}{49} + \frac{2}{49}\\&=90\;\frac{9}{49} \end{align*}[/latex]

 

d. [latex]111.101_{\text{two}}[/latex]

Solution

[latex]\begin{align*}&=(1\times 2^2)+ (1 \times 2^{1}) + (1 \times 1) + (1 \times 2^{-1}) + (0 \times 2^{-2}) +(1\times 2^{-3})\\ &= (1 \times 4) + (1 \times 2) +(1\times 1)+ \left(1 \times \frac{1}{2^{1}}\right) + \left(0 \times \frac{1}{2^{2}}\right) + \left(1 \times \frac{1}{2^{3}}\right)\\ &= 4 +2+1 + \frac{1}{2} +\frac{0}{4}+ \frac{1}{8} \\&=7+\frac{4}{8} + \frac{1}{8}\\&=7\;\frac{5}{8} \end{align*}[/latex]

 

e. [latex]222.222_{\text{three}}[/latex]

Solution

[latex]\begin{align*}&=(2\times 3^2)+ (2 \times 3^{1}) + (2\times 1) + (2 \times 3^{-1}) + (2 \times 3^{-2}) +(2\times 3^{-3})\\ &= (2 \times 9) + (2 \times 3) +(2\times 1)+ \left(2 \times \frac{1}{3^{1}}\right) + \left(2 \times \frac{1}{3^{2}}\right) + \left(2 \times \frac{1}{3^{3}}\right)\\ &= 18 +6+2 + \frac{2}{3} +\frac{2}{9}+ \frac{2}{27} \\&=26+\frac{18}{27}+\frac{6}{27} + \frac{2}{27}\\&=26\;\frac{26}{27} \end{align*}[/latex]

 

f. [latex]\text{T}2\text{E}.0\text{T}_{\text{twelve}}[/latex]

Solution

[latex]\begin{align*}&= (\text{T}\times 12^2)+(2 \times 12^{1}) + (\text{E} \times 1) + (0 \times 12^{-1}) + (\text{T} \times 12^{-2}) \\ &= (10 \times 144) + (2 \times 12) +(11\times 1)+ \left(0 \times \frac{1}{12^{1}}\right) + \left(10 \times \frac{1}{12^{2}}\right) \\ &= 1440+24+11+ \frac{10}{144} \\&=1475\;\frac{5}{72} \end{align*}[/latex]

 

The Binary System

In order to really understand computer technology, you must have the ability to express numbers in bases two and sixteen. At first, Base Two (called the Binary System) was used to express computer code. Base Two was the natural choice, since there are only two symbols, 0 and 1. At the most primitive level, electronic computers only know two things, off (0) and on (1). To get a basic feel for how some information gets read into a computer, imagine there are eight switches –switch 1, switch 2, switch 3,…, switch 8. How the computer responds depends on which of the eight switches are turned “on.” There are actually [latex]2^{8}[/latex] (which is 256) different configurations possible.

Imagine that switch 7, switch 2 and switch 1 are turned on. We will use an 8-digit code to show this. It looks like an 8-digit numeral, where the rightmost digit represents switch 1 and the leftmost digit represents switch 8. For our example, there should be a 1 in the spots for switches 1, 2 and 7 and a 0 in the spots for switches 3, 4, 5, 6 and 8. The code looks like this: 01000011. This is read: “off-on-off-off-off-off-on-on.” The code 01000011 is really in the format of a Base Two numeral and can be converted to Base Ten. When writing binary code for the computer, base two is implied, but the numeral is not written as a base two number. Code is written 01000011, whereas the base two numeral is written [latex]1000011_{\text{two}}[/latex]. Notice that we do not normally start a numeral with a zero, but a computer is always expecting groups of 8 digits, so the zero is necessary for the computer to understand what is meant.

Exercise 4

Using this system of eight switches being either turned on or off, represent the binary code if the switches indicated are turned on. Then, write the base ten numeral (also called decimal numeral) represented by each binary number.

a. Switches that are on: 1, 3, 5, 6

b. Switches that are on: 2, 4, 5, 8:

c. Switches that are on: 3, 5, 7:

d. No switches are on:

e. All eight switches are on:

 

The binary system is fairly simplistic in that all it comes down to is a sequence of on and off switches. Actually, at the present time, the two electrical states usually used in computers are low voltage and high voltage. Whether we think of positive and negative charges, on and off switches, low and high voltages, etc., the main idea is the same –there are only two states. Although binary is simple on one hand, the disadvantage of the binary system is that relatively small numbers are made up of lots of digits. For instance, the base ten numeral 50 is written as [latex]110010_{\text{two}}[/latex] which has 6 digits. The base ten (also called decimal) numeral 1025 is written as [latex]10000000001_{\text{two}}[/latex] which has eleven digits!

An intermediate system of numeration, using a larger base, was developed so that the code for the numerals could be written more compactly, with fewer digits. For convenience, a base that was a power of two (making conversion easy) and one that had a reasonable number (not too many) of primary symbols was used.

 

Hexadecimal (Hex)

In the first example where switches 1, 2 and 7 were on, the binary code was 01000011. Anything that can be typed on a keyboard actually has a special 8-digit code like this one.

A standard code called ASCII (an acronym for “American Standard Code for Information Interchange”) was established in 1968 by the American National Standards Institute. Each separate keyboard symbol (and 32 special control functions, such as the “return” key) was assigned a number from 0 to 127, giving 128 different possibilities. Since then, even more symbols have been added. When you type the uppercase letter “C” on the keyboard, the computer codes this little piece of information as 01000011. A chart with with more ASCII code is shown later in this section.

If I typed “FILÉ GUMBO” on the keyboard, the computer would code this with 10 eight-digit numerals –one 8-digit numeral for each letter and one for the space in the middle. If I wanted to print out and read the code, I would be looking at 80 digits for just two words! To make this task less cumbersome, we can have the computer convert each original 8-digit numeral (which is really just a base two numeral) to a special hexadecimal (base sixteen) numeral, which consists of only two, instead of eight, digits. Note that if I wanted to read the 8-digit numeral as a single-digit numeral, I’d need a base 256 system, which would require 256 different symbols –that would be way too complicated! Here is how the 8-digit binary code 01001011 is converted to the hexadecimal system, making it easier for me to read the code.

Each 8-digit binary code numeral is broken into two separate 4-digit numerals: 0100 1011. Each 4 digit numeral is converted from base 2 to base 16 (there are 24 , or 16 possibilities for a system with only 4 switches.) But in Base Sixteen, 16 different primary symbols are needed. WE DO NOT USE T for ten, E for eleven AND W for twelve IN BASE SIXTEEN! Instead, these are the 16 symbols used for counting in base 16:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.

In other words, A stands for ten, B for eleven, C for twelve, D for thirteen, E for fourteen and F for fifteen. The first group of four digits converts from 0100 in base two to 4 in base ten. 4 in base ten is written as 4 in base sixteen. The second group of four digits converts from 1011 in base 2 to eleven in base ten. Eleven in base ten is written as B in base sixteen. Therefore, the 8-digit numeral 01001011 is simply written as 4B in hexadecimal.

Base Eight (the octal system) is another common intermediate system used. One only needs to memorize eight symbols for this system (0, 1, 2, 3, 4, 5, 6, and 7). Base Sixteen is more compact and only requires one to memorize six more than the usual ten in base ten. Using A, B, C, D, E, and F for 10, 11, 12, 13, 14, and 15 is fairly natural for most people to learn. On the other hand, going to a base 32 (the next power of 2) system would be fairly cumbersome because you’d have to incorporate 22 new symbols. We’ll limit our discussion to hexadecimal, and not work in the octal system in this book.

Example

If switches 8, 7, 5, 4 and 2 are switched on, write the code for this configuration in binary and in hexadecimal. What decimal numeral does this represent?

Solution: In binary, the code is 11011010.

The first 4-digit sequence, 1101, is thirteen in base ten, which is D in hex.

The second 4-digit sequence, 1010, is ten in base ten, which is A in hex.

Therefore, the code in hex is DA.

Now we can either convert the binary or the hex to base ten:

Binary: [latex](1\times 128)+(1\times 64)+(0\times 32)+(1\times 16)+[/latex]
[latex]\qquad\qquad\qquad\qquad(1\times 8)+(0\times 4)+(1\times 2)+(0\times 1)=218[/latex]

Hex: [latex](13\times 16)+(10\times 1)=218[/latex]

Remember: If writing a “code” then the base is not written it is implied and the binary code is simply written as 11011010 or in hex as DA. If writing a base two numeral, write it as 11011010two or if writing as a hexadecimal numeral, write DAsixteen. Pay attention to the directions!

Exercise 5

Write the binary and hex code corresponding to these switches being turned on.

Note: You already wrote the binary code for these in exercise 4. To check that you write the correct hexadecimal code, convert the base sixteen numeral back to base ten and see if it matches what you wrote for base ten in exercise 4.

a. Switches that are on: 1, 3, 5, 6

(H5P)

b. Switches that are on: 2, 4, 5, 8

(H5P)

c. Switches that are on: 3, 5, 7

(H5P)

d. No switches are on

(H5P)

d. All eight switches are on

(H5P)

 

Exercise 6

Convert each hexadecimal code to binary code, and to a base ten numeral.

a. Hex: 5E

b. Hex: E5

c. Hex: 39

d. Hex: 1F

e. Hex: 98

f. Hex: 2A

g. Hex: 07

h. Hex: 40

(H5P)

 

Part of the ASCII code chart (for only 29 of the 128 possible keyboard strokes and one extra symbol) is shown below. The keyboard stroke/symbol, the decimal (base ten) numeral, the hexadecimal code, and the binary code are given for these 28 keyboard strokes.

Symbol Base Ten Hex Binary Symbol Base Ten Hex Binary
(space) 32 20 00100000 K 75 4B 01001011
! 33 21 00100001 L 76 4C 01001100
, 44 2C 00101100 M 77 4D 01001101
- 45 2D 00101101 N 78 4E 01001110
. 46 2E 00101110 O 79 4F 01001111
A 65 41 01000001 P 80 50 01010000
B 66 42 01000010 Q 81 51 01010001
C 67 43 01000011 R 82 52 01010010
D 68 44 01000100 S 83 53 01010011
E 69 45 01000101 T 84 54 01010100
F 70 46 01000110 U 85 55 01010101
G 71 47 01000111 V 86 56 01010110
H 72 48 01001000 W 87 57 01010111
I 73 49 01001001 X 88 58 01011000
J 74 4A 01001010 É 201 C9 11001001

Remember that first numeral we wrote where switches 1, 2 and 7 were on? We wrote this as 01000011, and I mentioned that this is the ASCII code for the letter “C.” Look up the code for “C” in the chart –is this starting to make a little more sense?

In any case, let’s get back to how the code for “FILÉ GUMBO” would look. We’ll do it in both hex and binary, separating the code for each space or letter by a comma. Hex is easier, so let’s do that first:

46, 49, 4C, C9, 20, 47, 55, 4D, 42, 4F.

That’s all there is to it. It’s a code. The computer stores it in binary as:

01000110, 01001001, 01001100, 11001001, 00100000, 01000111, 01010101, 01001101, 01000010, 01001111.

Note that this is only the ASCII code for some punctuation and some of the upper case letters of the alphabet. Code for a lower case letter is different from code for an upper case letter.

Exercise 7

Decode the following messages. Part a is in binary and part b is in hex.

a. 01001001, 00100000, 01001100, 01001111,
[latex]\;\;\;[/latex]01010110, 01000101, 00100000, 01001101,
[latex]\;\;\;[/latex]01000001, 01010100, 01001000, 00100001

(H5P)

b. 54, 45, 41, 43, 48, 49, 4E, 47, 20, 49, 53, 20, 41, 20, 43, 48,
[latex]\;\;\;[/latex]41, 4C, 4C, 45, 4E, 47, 49, 4E, 47, 2C, 20, 42, 55, 54, 20, 52,
[latex]\;\;\;[/latex]45, 57, 41, 52, 44, 49, 4E, 47, 20, 43, 41, 52, 45, 45, 52, 21

(H5P)

 

Exercise 8

Write each of the following in hexadecimal code and in binary code.

a. HELP!

(H5P)

b. BE HAPPY. (Note: Use your logic skills to figure out the code for “Y”)

(H5P)

c. Write your first name in Hex and Binary.

 

Exercise 9

Convert the following Base Ten numerals to binary and to hexadecimal. In this case, you aren’t being asked to write a code, so remember we need the base to the right and a little below each numeral as with converting to any other base.

a. 73

b. 122

c. 50

d. 250

e. 1000

(H5P)

 

License

Math for Elementary Teachers Copyright © by Elizabeth Kelly. All Rights Reserved.