Unlike the binary system with its two digits 0 and 1, the "trinary" system uses three digits: 0, 1, and 2, this makes it especially easy to represent trinary (three-valued) information:
0 = stop
1 = slow
2 = go
0 = low
1 = medium
2 = high
Given sensitive enough electronics, we could represent our trinary digits inside the computer using three voltage levels:
0 = 0 – 1 volts
1 = 2 – 3 volts
2 = 4 – 5 volts
1. What are the trinary representations of the following unsigned integers:
27 =
19 =
11 =
7 =
4 =
3 =
2 =
2. What unsigned integers are represented by the following trinary numbers:
222 =
210 =
100 =
011 =
111 =
012 =
3. Compute the following trinary sums. Also specify the carry out:
111
+ 111
022
+ 101
221
+ 002
001
+ 002
4. A trinary byte is a string of eight trinary digits. What range of unsigned integers can be represented using trinary bytes?
5. Computer scientists often use hexadecimal digits for representing unsigned integers. The hex digits are 0 – 9 and a – f. What unsigned integer is represented by the hex number 2a?