Definition
Modular arithmetic is a system of arithmetic restricted to the remainders. Defined as
or equivalently using Euclid’s Division Lemma
Basic Properties
Theorem
- Let
and , with and
Reduced Residue System
Prime Reduced Residue System
Let
- Since
, . - To prove that no 2 elements in
are equal assume but . - Therefore
. - Meaning you could write
.
Since
Full Definition
The full definition of a reduced residue system
The construction is the exact same as with prime modulo.
Inverses
Definition
Using the Reduced Residue System
Existence
However inverses are NOT guaranteed to exist but they are
Proof:
Let
Uniqueness
Inverses are unique meaning only one solution exists to
Theorem
Proof:
Assume that there are two inverses such that
Other Useful Properties
Theorem - Pairs of Inverses
Since
Theorem
Proof:
By definition
Fractional Behaviour
You can write inverses as a fraction like
Theorem They can be added and multiplied normally.
Proof: Addition
Proof: Multiplication
Theorem
Proof:
Congruence Equations
Equations with modular arithmetic are given in terms called congruence equations and their answers are usually given in terms of least residues.
The set of least residues
Since a solution
Congruence Equation Properties
Let
the equation has no solutions the equation has solutions in the set of least residues
Modular Contradictions
In many problems you can use the fact that certain powers of
, by Fermat’s Little Theorem , by Euler’s Theorem
Advance Properties and Results
Theorem
Proof:
By Bezout’s Identity
Theorem
Proof:
We have
Theorem
Proof:
First we will prove that
Inductive proof
Base case: it is clear that
Theorem
Proof:
By Fermat’s Little Theorem LHS
Theorem - Wolstenholme’s Theorem
For
Proof:
- Since we have a factor of
it is now sufficient to show that for the original sum to be . - Since
we can replace the denominators with and we can multiply the sum by to restore the amount of terms back to , the reason being that after the terms descend back symmetrically so term is equivalent to term as - So we get
. - Since inverses are unique we get that
so each term corresponds to a unique residue. Therefore . Since - Going back to step 4 we now get
but which by step 2 is sufficient to prove the statement.
Theorem
Proof: