Let a and b be two integers such that a=0. We say that adividesb if there exists an integer c such that b=ac If adividesb, we say that a is a factor or a divisor of b. We can say also that b is a multiple of a.
Notation: a∣b means a divides b. a∤b means a does not divide b
Theorem 1
Let a,b,c∈Z with a=0.
If a∣b and a∣c then a∣(b+c)
If a∣b, then a∣bc for every integer c
If a∣b, and b∣c, then a∣c.
Proof
Prove if a∣b and a∣c then a∣(b+c):
Let a,b,c∈Z with a=0. Assume that a∣b and a∣c. Then we have:
b=as for some integer s, c=at for some integer t
Thus we have: b+c=as+at=a(s+t),
in other words a∣(b+c).
Corollary
Let a,b,c∈Z with a=0. If a∣b and a∣c then a∣(mb+nc) for all integers m and n.
Theorem 2 - Division Algorithm
Let a,d∈Z with d>0. There exists unique integers q and r such that:
0≤a<d
and a=dq+r
We write:
q=adivd
r=amodd
Definition - Modulus
Let a,b,m∈Z with m≥2. We say that ais congruent tobmodulom is m∣(a−b). We write a≡b(modm).
Theorem 3
Let a,b,c,d,m∈Z with m≥2. If a≡b(modm) and c≡d(modm), then
a+c≡b+d(modm)
ac≡bd(modm)
Arithmetic Modulo
Let m≥2 be an integer and Zm=0,1,2,...,m−1.
We define
a+mb=(a+b)(modm)
a⋅mb=(a⋅b)(modm)
This structure satisfies several properties: Closure, Associativity, Commutativity, Identity elements, Additive & Multiplicative inverses, Distributivity