§ 16. Converting a Number from the Decimal System to Another Base
To represent a number written in the decimal system in another system. For example, suppose it is required to express the number 1766 in the quinary system using the five digits: 0, 1, 2, 3, 4. To do this, we first determine how many units of the second order (i.e., fives) are contained in 1766. It turns out there are 353 of them, with 1 unit of the 1st place remaining. Now we determine how many units of the 3rd place are contained in 353 fives. Since a unit of the 3rd place contains 5 units of the 2nd place, we must divide 353 by 5. Upon division, we find that 353 fives contain 70 units of the 3rd place and 3 units of the 2nd place. We convert the 70 units of the 3rd place into units of the 4th place; these latter into units of the 5th place, and so on.
Thus, we find that 1766 contains 2 units of the 5th place, 4 units of the 4th place, 3 units of the 2nd place, and 1 unit of the 1st place; consequently, 1766 is represented in the quinary system as: 24031. Let it also be required to represent 121380 in the duodecimal system:
Denoting 10 by a and 11 by b, we find that the given number is represented as: 5a2b0.