how do I solve the equation $2^k = xn$ where $n$ and $k$ are known integers and $x$ is unknown integer? Is there some faster way than euclidean algorithm for division?
(In the case it is not solveable in integers, I want to maximize the length of the trail of 0s following the most significant $1$ digit of $xn$)