How to Solve $-31 \bmod 11$

57 Views Asked by At

How $-31 \bmod 11$ is computing?

I usually get stuck when it comes to negative integer.

How to handle these types of questions?

1

There are 1 best solutions below

0
On BEST ANSWER

Let $x = -31 \pmod {11}$

We know $0 = 33 \pmod {11}$

Adding these we get $x = 2 \pmod {11}$

The moral is, just add multiples of your mod until you get a positive number, and you will get the right answer.