How to calculate the largest $k$ that satisfies
$$x\equiv0\quad(mod \ 2^k)$$
Let $k_*$ be the largest $k$ that satisfies $x\equiv0\ (mod \ 2^k)$, I'm trying to find the explicit expression of $k_*$ with respect to $x$.
Actually, if we enter $x$ in binary form, it is obvious that $k_*$ is the number of $0$s to the right of the number. For example, if $x=100101110000$ in binary, then $k_*=4$.
I already know that Euclid's algorithm can find the $k_*$, but what I want to know is, does an explicit expression of $k_*$ exist?
Appreciate your help!