Suppose $m$ is odd. What integer between $1$ and $m−1$ equals the inverse of $2 ($mod $m)$?
What I have so far:
Let $n$ be the inverse of $2 ($mod $m)$ where $1<n<m-1$
$\Rightarrow$ $2n\equiv1($mod$m)$
$\Rightarrow$ $2n=1+mk$
since $m$ is odd then $m=2l+1$
$\Rightarrow$ $2n=1+(2l+1)k$
I don't really know how to solve for $n ($mod $m)$ as that would put it within $1<n<m-1$