Division Algorithm
Theorem: Division with Remainder
Modular Congruence
Definition: Modular Congruence
Let and let .
We say that and are congruent modulo if is a divisor of :
NOTATION
Modular Arithmetic
Definition: Modular Addition
Theorem: Simplifying Modular Addition
Addition modulo has the following property:
PROOF
The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes.
By definition, the left-hand side (LHS) is:
We want to prove that this is equal to the right-hand side (RHS):
We can express and in terms of their quotients and remainders when divided by .
Let:
- , where is an integer and (with ).
- , where is an integer and (with ).
Now, let’s analyze the LHS by substituting these expressions:
The term is an integer multiple of , so it does not affect the remainder when the entire sum is divided by . Therefore, the expression simplifies to:
Next, let’s analyze the RHS by substituting the definitions of and :
Since both the LHS and RHS simplify to the same expression, , they are equal.
This completes the proof.
Definition: Modular Addition
Let and let .
The multiplication of and modulo is defined as the remainder upon dividing by :
NOTATION
Theorem: Simplifying Modular Multiplication
Multiplication modulo has the following property:
PROOF
The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes.
By the definition of modular multiplication, the expression is equivalent to . Therefore, our goal is to prove that:
For any integers and (with ), there exist unique integers (quotient) and (remainder) such that and . By definition, .
Let’s apply this to integers and :
- Let . This means there exists an integer such that .
- Let . This means there exists an integer such that .
Now, let’s consider the product :
We can factor out from the first three terms:
Let . Since are all integers, must also be an integer. So we can write:
This equation shows that and have the same remainder when divided by . In the language of modular congruence, this means .
Therefore, by the definition of the modulo operator:
Now, we substitute back the definitions of and :
This completes the proof.