0

How would I go about proving

$$ a \equiv b\pmod{m}$$ given

$$ a \equiv b\pmod{m^2} $$

I suspected this was false, so I tried to find a counterexample using a program, and there does not appear to be a counterexample for $m$ in (2, 16).

What I have tried so far: $$ a \equiv b\pmod{m^2} $$ $$ a = b + m^2k $$ $$ a - b = m^2k $$ $$ \sqrt{a - b} = \sqrt{m^2k} $$

Which would imply that $\sqrt{a-b} \equiv 0\pmod{m}$ assuming that $k$ is a perfect square. It feels like I'm barking up the wrong tree, however, and I'm not sure where to go from here.

Bill Dubuque
  • 272,048
bren
  • 171

2 Answers2

1

$a\equiv b\pmod{m^{2}}$ means that:

$$a-b=pm^{2}$$

For some integer $p$. However, letting $q = pm$, we see:

$$a-b=qm$$

Which is the definition of $\boxed{a\equiv b\ \ (\text{mod}\ m).}$

Note that the converse is certainly false; just let $a = 0$ and $b = m$.

Joshua Wang
  • 6,103
1

$a-b=km^2=(km)m$. This same argument can be used to show that if $a\equiv b \pmod{mn}$ then $a\equiv b \pmod m$.

Aaron
  • 24,207