I know the answer to this question is 6... but I am wondering what the formula is to figure this out.
I will always need to solve for x in this scenario.
TIA
I know the answer to this question is 6... but I am wondering what the formula is to figure this out.
I will always need to solve for x in this scenario.
TIA
Simply what you have to do is take the logarithm (base 2) of the right hand side. Like
log2(64) = 6
I think you should read a mathematics book which has topics related to logarithms.
log(64) / log(2) = x. Or in more general terms, if y^x = z, then x = log(z) / log(y)
Divide 64 by 2 continuously till you get 1 as result. The number of times you can divide is the answer.
ie
64/2 = 32 --- 1
32/2 = 16 --- 2
16/2 = 8 --- 3
8/2 = 4 --- 4
4/2 = 2 --- 5
2/2 = 1 --- 6
It stops here since you got answer 1. Now you have done it 6 times, hence 6 is the answer
Here it is step by step, although some steps may seem not obvious if you don't understand logarithms.
2 ^ x = 64
log (2 ^ x) = log 64
x log 2 = log 64
x = log 64 / log 2
x = 6