Take a number written in a non-decimal base -- say (253)7 -- and ask for it to be rewritten in another base, also non-decimal, say base 4. The problem looks harmless: the most common reaction is to convert the number to base ten first, the base one is most comfortable with, and proceed from there to the required base.
This route always works, but it raises a question worth pursuing: is it actually necessary? The number (253)7 represents a well-defined quantity, one that exists independently of how it is written. Changing base means changing the representation of that quantity, not carrying out a computation that must necessarily transit through some privileged base.
This article shows that the successive-division algorithm -- the same one used to convert a decimal number into binary -- works in exactly the same way regardless of the starting base and the target base, with no intermediate base required. Base ten plays no special algebraic role in this mechanism: it is convenient because it is the base we are used to computing in, but it is by no means necessary.
The path is as follows:
- Section 1 formalises positional notation;
- Section 2 proves that every integer admits, in every base, a positional representation, and that this representation is unique; the proof, constructive, introduces the successive-division algorithm;
- Section 3 applies this algorithm directly to the desired target base, with the article's central worked example;
- Section 4 shows why the starting base -- base ten in particular -- is irrelevant to the mechanism;
- Section 5 quantitatively compares the direct method with passing through base ten;
- Section 6 generalises everything to arbitrary bases;
- Section 7 closes with an immediate computing application: binary--hexadecimal conversion of a byte.