Suppose I have $a \equiv x \cdot b$ (mod $m$) and I know the value of $a, b, m$.
The value of $m$ is of the form $2^n$ (I don't know if that even helps)...
I want to know if there exist a unique value of $x$ in $[0, m -1)$ that satisfies the equation. And if so, then how do I obtain it?
This is what I've done so far:
First I considered $a$ and $b$ to be between $0$ and $m-1$
$a \equiv x \cdot b$ (mod $m$)
$$m | (bx - a)$$
$$bx - a = km$$
$$x = \frac{km + a}{b}$$
Since $x$ ranges from $0$ to $m-1$, $k$ must be from $0$ to $b-1$
I'm confused how to proceed from here...