Ask a New Question

Asked by Francesca

How do I solve for negative modular arithmetic?

Here is an example: -45 mod 13 = 7, but how?

14 years ago

Answers

Answered by Steve
a mod b = (a + nb) mod b

so, -45 mod 13 = mod (-45 + 52) mod 13 = 7 mod 13 = 7

Just add a big enough multiple of the modulus so you have a positive number.
14 years ago
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions

Solve. Negative 2X +y=5. 4X minus 2Y equals -10. solve for x negative 1 /x-3 = 2 /x-4 = Solve negative 7 over 3, the whole multiplied by x minus 3 equals negative 52 Group of answer... solve for the negative value of x: I know if you solve for a positive value, the answer for x=13... how do you solve negative 1 and 1/3f= negatvie 5/9? How do you solve (2/5)negative 2 exponent? Solve for z. negative 52 equals negative 4 z (1 point) Responses z equals negative 208 Imag... Solve k over negative 1.8 is less than negative 4.9 for k. Solve b over negative 5.6 is less than or equal to negative 4.9 for b. b ≥ 27.44 b ≤ 0.7 b ≤... Solve b over negative 5.6 is less than or equal to negative 4.9 for b.
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use