If a number is represented as 1234 in base $a$ and as 1020304 in base $b$, what can you say about bases a and b?
Attempt at solution:
If we convert each of the representations of the given number to base 10 and equate the results, we obtain:
$$a^3+2a^2+3a=b^6+2b^4+3b^2$$
I am not certain where to proceed from here.