§ 17. Converting a Number from Any Base to the Decimal System
To express a number written in any number system in the decimal system. Suppose, for example, that it is required to convert the number 5623, written in the octal system, to the decimal system. This can be done by calculating the sum:
However, it is simpler to proceed as follows: break down the 5 units of the 4th place into units of the 3rd place, for which we multiply 5 by 8 (because a unit of the 4th place contains 8 units of the 3rd place in the octal system); to the resulting number, we add the 6 units of the 3rd place present in the given number. Break down the units of the 3rd place into units of the 2nd place; to the resulting number, we add the 2 units of the 2nd place present in the given number. Break down the units of the 2nd place into units of the 1st place; to the resulting number, we add the 3 units of the 1st place present in the given number. We obtain 2963:
Remarks. 1) The decimal number system is used almost universally. Many see the reason for this widespread use in the fact that every person from childhood is accustomed to counting using the ten fingers of both hands. However, decimal counting is not the most convenient. For example, in some respects, a duodecimal system would be more convenient, which, without requiring a large number of digits to represent numbers, possesses the important property that its base is divisible without remainder by 2, 3, 4, and 6, whereas the base of our system is divisible only by 2 and 5; similar considerations probably served as the basis for the sexagesimal number system used in ancient Babylon. For theoretical research, the binary system proves to be the most efficient, although, for practical purposes, it is quite inconvenient, as in this system even a small number is expressed by a long string of digits (for example, the number 70 is expressed as: 1000110). 2) The digits we use and the very system of number notation were borrowed by Europeans from the Arabs (around the 12th century). That is why these digits are called Arabic. But there is reason to believe that the Arabs in turn borrowed this system from the Indians.