My question is, how could I calculate the expected value of the number of digits of an octal representation of an $n$-digit decimal number?
How can this question be answered in general for two different bases? E.g., how many more digits would base-9 numbers have than base-12 numbers on average?