As an intro, I know how the numbers are represented, how to do it if I can calculate powers of the base, and then move between between base $m$ to base $10$ to base $n$. I feel that this is overly "clunky" though, and would like to do it in such a way that the following conditions are met:
- No need to calculate the powers of the base explicitly
- No need for intermediate storage (i.e. no conversion to base ten required if base ten is not one of the bases)
I am pretty sure that the only operations that I strictly need to use are modulo, division and concatenation, but I can't seem to figure it out.