1

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$

Sarah
  • 57
  • 1
    As an aside, we only care for $1\leq n\leq m-1$, we don't care about strict inequalities. Indeed, if $m=3$ then you'd have a problem as there aren't even any integers strictly between $1$ and $3-1$. – JMoravitz Sep 19 '19 at 02:00

3 Answers3

1

Note: Supposing that $m=2\ell+1$ then $2\times (\ell+1)=2\ell+2=m+1$

JMoravitz
  • 79,518
1

We want integer $n=\dfrac{1+mk}2$ between $1$ and $m-1$.

Since $m$ is odd, we need $k$ to be odd, in order for $1+mk$ to be divisible by $2$ so $n$ is an integer.

If $k\ge3$ then $\dfrac{1+mk}2>m-1.$ If $k\le-1$ then $\dfrac{1+mk}2<1.$

So it must be $k=1$ and $n=\dfrac{1+m}2$.

J. W. Tanner
  • 60,406
1

Hint $\bmod\, 2n\!-\!1\!:\,\ 2n\equiv 1.\ $ More generally see Inverse Reciprocity.

Bill Dubuque
  • 272,048