Lemmas and Theories Flashcards
Lemma 1
A composite integer π > 1, has a prime factor π β€ βπ.
Theorem 1
If π|π and π|π, then for any integers π and π‘,
π | (π π + π‘π)
We call (π π + π‘π) a linear sum, or linear combination, of π and π.
Lemma 2
Let π and π be two positive integers, where π > π. Then,
gcd(π, π) = gcd(π, π πππ π).
Lemma 3
Let π1 and π2 each be a linear sum of integers (π, π), and let π3 be a linear
sum of (π1, π2). Then, π3 is a linear sum of the original integers (π, π).
Theorem 2
Let π and π be positive integers, π > π. There exist integers π and π‘ such
that
gcd(π, π) = π π + π‘π
Furthermore, gcd(π, π) is the smallest positive integer which is a linear sum of (π, π)
Lemma 4
Let π be the larger of the two inputs to GCD algorithm. The number of
iterations (thus the number of mod operations) is at most 2 log2 π.
Lemma 5
Suppose the larger input to GCD algorithm is π β€ πΉπ for some integer π. The
number of iterations of the algorithm (the number of mod operations) is at most π β 2.
Lemma 6
Let π₯, π¦, π§, and π be positive integers.
(1) (π₯ β π¦) mod π = ((π₯ mod π) β (π¦ mod π) ) mod π
(2) (π₯ β π¦ β π§) mod π = ((π₯ β π¦) mod π) β π§) mod π
Theorem 3
Let π₯ and π be two positive integers. The inverse of π₯ modulo π exists, and
is unique, if and only if gcd(π₯, π) = 1
Lemma 7
Given positive integers π₯ and π, where gcd(π₯, π) = 1. The sequence
(π₯ β π mod π | π = 1, 2, β― , π β 1)
is a permutation of (1, 2, β― , π β 1).
Theorem 4 (Fermatβs Little Theorem)
Let π be a prime integer, and let π₯ be a
positive integer with gcd(π₯, π) = 1. (Since π is prime, this condition means π₯ β ππ for
any integer π.) Then,
π₯^(πβ1) mod π = 1
Lemma 8
- Every integer π β ππβ has an inverse mod π, and the inverse is in ππβ (This is called closure under inversion.)
- For every pair of integers π and π in ππβ , their product (π β π mod π) is also in ππβ . (This property is called closure under multiplication.)
Lemma 9:
Let ππβ = {π’1, π’2, β― , π’π(π)}. Let π₯ be any integer in ππβ . The sequence
(π₯ β π’π mod π | π = 1, 2, β― , π(π))
is a permutation of (π’1, π’2, β― , π’π(π)).
Theorem 5 (Eulerβs Theorem)
Let π be a positive integer, and ππβ = {π’1, π’2, β― , π’π(π)}
be the set of elements in ππ which are prime relative to π. And let π₯ be an integer in ππβ .Then,
π₯^(π(π)) mod π = 1
Computing Inverse by Exponentiation
Eulerβs Theorem gives another way of
computing the inverse of an integer π₯ mod π, where π₯ β ππβ ,. Namely,
π₯^β1 = π₯^(π(π)β1) mod π