Properties of Integers
Well Ordering Principle
Every nonempty set of positive integers contains a smallest member
Division Algorithm
Let a a a and b b b be integers with b > 0 b>0 b>0. Then there exist unique integers q q q and r r r with property that a = b q + r a = bq + r a=bq+r, where 0 ≤ r < b 0 \leq r < b 0≤r<b.
GCD Is a Linear Combination
Definition Greatest Common Divisor, Relatively Prime Integers
The greatest common divisor of two nonzero integers a and b is the largest of all common divisions of a and b. We denote this integer by g c d ( a , b ) gcd(a, b) gcd(a,b). When g c d ( a , b ) = 1 gcd(a,b) = 1 gcd(a,b)=1, we say a a a and b b b are relatively prime.
Theory
For any nonzero integers a a a and b b b, there exist integers s s s and t t t such that g c d ( a , b ) = a s + b t gcd(a,b) = as + bt gcd(a,b)=as+bt. Moreover, g c d ( a , b ) gcd(a,b) gcd(a,b) is the smallest positive integer of the form a s + b t as + bt as+bt.
Corollary
If a a a and b b b are relatively prime, then exist integers s s s and t t t such that a s + b t = 1 as + bt = 1 as+bt=1.
Euclid’s Lemma p ∣ a b p|ab p∣ab implies p ∣ a p|a p∣a or p ∣ b p|b p∣b
If p p p is a prime that divides a b ab ab, then p p p divides a a a or p p p divides b b b.
Fundamental Theory of Arithmetic
Every integer greater than 1 1 1 is a prime or a product of primes. This product is unique, except for the order in which the factors appear. That is, if n = p 1 p 1 ⋅ ⋅ ⋅ p r n = p_1p_1\cdot\cdot\cdot p_r n=p1p1⋅⋅⋅pr and n = q 1 q 2 ⋅ ⋅ ⋅ q s n = q_1q_2\cdot\cdot\cdot q_s n=q1q2⋅⋅⋅qs, where the p ′ s p's p′s and the q ′ s q's q′s are primes, then r = s r = s r=s and, after renumbering the q ′ s q's q′s, we have p i = q i p_i = q_i pi=qi for all i i i.