Exercise · Volume 1 · 1.3.1-1
Exercise 1.3.1-1
not stated yet in Lean solution written
| Rating | 00 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.3.1 of Volume 1. Companion chapter: Description of MIX |
The task
Find the number of ternary digits that one MIX byte would hold if the machine were ternary.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
A MIX byte must hold at least 64 values and at most 100 values (Section 1.3.1).
Hint 2
Look for the power of 3 that falls in the range from 64 to 100.
Solution
Show the solution
A byte of trits has values. The rule for MIX is . Now is too small, lies in the range, and is too large. So a ternary byte has four trits.
Check
python3: [3**k for k in range(1,7)] gives [3, 9, 27, 81, 243, 729]. Only is between and .
Remarks
The same test for a binary MIX gives , so six bits per byte, which is the smallest legal byte.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.