Converting Base 16 to Base 8?
The trick in converting from hexadecimal (base 16) to octal (base 8) is using a (perhaps imaginary) binary (base 2) intermediate. To demonstrate this, let's convert from base 10000 to base 1000, where the intermediate would be decimal (base 10). Consider this number, whose digits are separated by a space:


  3 1415 9265 3589 7932 3846


The corresponding number in base 1000 is


  314 159 265 358 979 323 846


This example is not completely academic. In some situations one converts between base 1000, used in many European languages, and base 10000, used in Chinese.