Understanding the Addition Theorem for Modular Operations

  • Context: Undergrad 
  • Thread starter Thread starter ajbiol
  • Start date Start date
  • Tags Tags
    Addition
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
4 replies · 2K views
ajbiol
Messages
3
Reaction score
0
Hello all,

I was wondering if someone can explain to me a step in a proof given to me by my professor in regards to a modular operation theorem.

Addition theorem: Given three integers x, y, d (d > 0), (x+y)%d = (x%d + y%d) %d

Proof:
Let x = q(1)d + r(1) and y = q(2)d + r(2).
We have (x+y)%d = (q(1)d + r(1) + q(2)d + r(2)) %d
= (r(1) + r(2)) %d
Therefore: (x+y)%d = (x%d + y%d) %d

I don't get how my professor jumped from (q(1)d + r(1) + q(2)d + r(2))%d to (r(1) + r(2))%d.

Is there a specific reason for why we just ignore the product of q(1)d and q(2)d?

Thank you in advance.
 
Physics news on Phys.org
Is there a specific reason for why we just ignore the product of q(1)d and q(2)d?
The Big Idea is that d is zero modulo d, so q(1)d is zero because you're multiplying q(1) by zero.

As for the technical detail, doesn't the equality follow directly from the definition of x%d? If you don't think so, then please state what definition you are using, and apply that definition to the two sides of that equation.
 
d has to be greater than zero in our given. so i don't believe q(1)d and q(2)d are negated because d is zero.

ajbiol said:
Addition theorem: Given three integers x, y, d (d > 0), (x+y)%d = (x%d + y%d) %d
 
oh i get it! ty ty!