Thinking In Bytes

Thoughts On Technology And Small Business

Proving Congruence For Fun

Background

I want to understand the math behind asymmetric cryptography.1 This field relies heavily on Modular Arithmetic.2 I bought an undergraduate math textbook for self-study. This article is a record of a proof exercise in the book. It is also a good exercise in writing math equations using LaTeX.

NOTE: I asked ChatGPT to confirm the proof. No grades are being assigned here, the point is to learn.

Problem

Let m1 be an integer.

(a) If a1a2(modm) and b1b2(modm), then

a1b1a2b2(modm)

Proof

The definition of congruence: m divides a1a2 In an equation this can be written as: a1=a2+km and b1=b2+jm

If we multiply the right and left sides of these equations: a1×b1=(a2+km)×(b2+jm)

Use the FOIL method for multiplying binomials.

a1×b1=a2×b2+a2×jm+b2×km+km×jm

We now consider each term in this equation (modm) All of the terms with that are multiples of m will drop out of the equation since for any integer x: x×m(modm) is zero. This leaves the final equation as: a1×b1=a2×b2(modm)

References


  1. Wikipedia article references Public-Key Cryptography which is directly linked from asymmetric cryptography. ↩︎

  2. Wikipedia information on Modular Arithmetic ↩︎