I came across this specific problem today in the class that what could be the base and exponent of $8192$ I know that it can be guessed that the base is $2$ and exponent is $13$ but I need a proper solution using algorithm.
Your answers are appreciated!
You don't have to guess. Since $8\,192$ is even, you can divide it by $2$, getting $8\,192=2\times4\,096$. Then you do the same thing with $4\,096$, getting $4\,096=2\times2\,048$. And so on… After $13$ divisions by $2$ you get $1$ and therefore $8\,192=2^{13}$.