Why 134 mod -26 is equal 22? I found an explanation, which says: 134 = (-26 * -6

Rudy Koch

Rudy Koch

Answered question

2022-01-22

Why 134mod26 is equal 22?
I found an explanation, which says: 134=(266)22
However, 134=(265)+4, so why 134mod26 is not equal 4
if 134=(265)+4134mod26=4
All i could find, is about a situation, if i take a modulo of negative number (134mod26), but that is not what i want.

Answer & Explanation

Eliza Norris

Eliza Norris

Beginner2022-01-23Added 15 answers

The first sentence in the post is wrong. −136 in not congruent to 22 modulo −26. It is congruent to −22.
In the second sentence you had an error (now fixed). You mean −26*−5.
4 and −22 are the same answer modulo −26 since they differ by a multiple of −26.
Arithmetic modulo m is essentially the same as arithmetic modulo −m.
Sometimes you want to require an answer that lies between 0 and the positive value |m|−1, sometimes any equivalent answer will do.
If you are working with or writing a computer program to do modular arithmetic the program will make a choice - usually the representative between 0 and |m|−1.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?