Solving Modulus Math Problems with Negative Numbers | Step-by-Step Guide

  • Thread starter Thread starter Fairy111
  • Start date Start date
  • Tags Tags
    Modulus
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
Fairy111
Messages
72
Reaction score
0

Homework Statement



Im confused as to how you obtain that,

77 is congruent to -1 mod 26
-77 is congruent to 1 mod 26
-11 is congruent to 15 mod 26

Homework Equations





The Attempt at a Solution



Some help would be great thanks
 
Physics news on Phys.org


haven't worked a heap with mod, but i think the trick is that the remainder is positive, so for the first
77 = 2x26 + 25, so 77mod26 = 25

simlarly
-1 = (-1)*26 + 25, then (-1)mod26 = 25
 
Last edited:


to clrify, i think mod is defined by the fact that if
a mob n = b
then (b-a) is a multiple of n

so take a poitive number c, such that c<n, clearly
c mod n = c
now consider the negative case, say
(-c) mod n = b
then as c<n, and b>0, we must have
(-c)-b = (-1)n
so
b = n -c