How to get power by knowing the number and result.
For Example
2n = 8
how can i return the power n by knowing number 2 and result 8
or
4n = 1024
how can i return the power 'n' by knowing number 4 and result 1024
Is there any formula?