3.2.4 Changing Between Bases: Special Case
When changing between two bases and , the standard procedure is to convert the number from base-m to base-10 then convert that into base-n. However, there are special cases when the middle conversion into base-10 is unnecessary: when is an integral power of (say , an integer) or vice versa. The procedure is relatively simple, take the digits of in groups of and convert each group into base-n. For example, if we are converting into base-4, you would take 1001001 in groups of two (since ) and converting each group into base-4. Let’s see how it would look:
Convert to base-4
- First Digit:
- Second Digit:
- Third Digit:
- Fourth Digit:
- Answer:
Let’s look at an example where the converting base is that of the original base cubed (so you would take it in groups of 3):
Convert to base-8
- First Digit:
- Second Digit:
- Third Digit:
- Answer:
Similarly, you can perform the method in reverse. So when converting from base-9 to base-3 you would take each digit in base-9 and convert it to two-digit base-3 representation. For example:
Convert to base-3
- First/Second Digits:
- Third/Fourth Digits:
- Fifth/Sixth Digits:
- Answer: