This is not a homework question; I'm working out an algorithm for an app I'm writing and I want to calculate the number of times I must halve a base value for it to be less than or equal to a minimum. I can write the equation, but I have no idea how to start solving it.
I guess the equation looks like this:
$$ \dfrac{y}{2^x} \leq z $$
Given some large value of $y$, e.g. $10000000$, and a minimum value for $z$, e.g. $1$, how do I find $x$?
With my example values, the equation would be:
$$ \dfrac{10000000}{2^x} \leq 1 $$
Hint: $\log_2$ is monotonically increasing.