Академический Документы
Профессиональный Документы
Культура Документы
March 3, 2007
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Lemma 4.1
Lemma 4.1
Given relatively prime integers a and m, there exists an integer
b, unique modulo m, such that
a × b ≡ 1 (mod m).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Lemma 4.1
Lemma 4.1
Given relatively prime integers a and m, there exists an integer
b, unique modulo m, such that
a × b ≡ 1 (mod m).
Definition
If a × b ≡ 1 (mod m), then we say that b is the inverse of a
modulo m.
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
a × e ≡ 1 (mod m).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
e ≡ e × (a × b) (mod m)
≡ (a × e) × b (mod m)
≡ b (mod m)
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
φ(p × q) = (p − 1) × (q − 1).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
φ(p × q) = (p − 1) × (q − 1).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Theorem 4.4
Let m1 , m2 , . . . , mr be positive integers that are pairwise
relatively prime (i.e., no two share a common factor larger than
one). Let a1 , a2 , . . . , ar be arbitrary integers. Then there exists
an integer a such that
a ≡ a1 (mod m1 )
≡ a2 (mod m2 )
..
.
≡ ar (mod mr ).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Mi = (M/mi )φ(mi ) .
Mi ≡ 1 (mod mi )
Mj ≡ 0 (mod mi )
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
a = a1 × M1 + a2 × M2 + · · · + ar × Mr .
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
a = a1 × M1 + a2 × M2 + · · · + ar × Mr .
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
a = a1 × M1 + a2 × M2 + · · · + ar × Mr .
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Question
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Question
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example
Example
x ≡ 3 (mod 45)
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example
Example
x ≡ 3 (mod 45)
is equivalent to
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example
Example
x ≡ 3 (mod 45)
is equivalent to
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Procedure
Let us assume that in our system of congruences we have two
moduli say m1 and m2 that are both divisible by the same prime
p.
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Procedure
Let us assume that in our system of congruences we have two
moduli say m1 and m2 that are both divisible by the same prime
p. We split each of our congruences into two congruences as
explained above where one of the new moduli is the highest
power of p dividing m1 or m2 , respectively.
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Procedure
Let us assume that in our system of congruences we have two
moduli say m1 and m2 that are both divisible by the same prime
p. We split each of our congruences into two congruences as
explained above where one of the new moduli is the highest
power of p dividing m1 or m2 , respectively.
Example
As an example, the two congruences
x ≡ 3 (mod 45)
x ≡ 7 (mod 756)
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example - Cont.
Example - Cont.
are split into four congruences:
x ≡ 3 (mod 9)
x ≡ 7 (mod 27)
x ≡ 3 (mod 5)
x ≡ 7 (mod 28).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example - Cont.
Example - Cont.
are split into four congruences:
x ≡ 3 (mod 9)
x ≡ 7 (mod 27)
x ≡ 3 (mod 5)
x ≡ 7 (mod 28).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Two Things
Two Things
1. The congruences are contradictory and so there are no
solutions. This is the case with the example given above. If
x ≡ 3 (mod 9), then x ≡ 3, 12, or 21 (mod 27). or
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Two Things
Two Things
1. The congruences are contradictory and so there are no
solutions. This is the case with the example given above. If
x ≡ 3 (mod 9), then x ≡ 3, 12, or 21 (mod 27). or 2. Both of
the congruences for powers of p are implied by the congruence
with the higher power. This means we can get rid of one of our
equations, leaving us with three congruences with relatively
prime moduli for which we can use the Chinese Remainder
Theorem.
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example
Example
Consider the system of congruences,
x ≡ 7 (mod 200)
x ≡ 82 (mod 375).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example
Example
Consider the system of congruences,
x ≡ 7 (mod 200)
x ≡ 82 (mod 375).
x ≡ 7 (mod 25)
x ≡ 82 (mod 125)
x ≡ 7 (mod 8)
x ≡ 82 (mod 3).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example - Cont.
Example - Cont.
The congruence modulo 25 is a special case of the congruence
modulo 125, so we really have three congruences to relatively
prime moduli:
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example - Cont.
Example - Cont.
The congruence modulo 25 is a special case of the congruence
modulo 125, so we really have three congruences to relatively
prime moduli:
x ≡ 82 (mod 125)
x ≡ 7 (mod 8)
x ≡ 82 ≡ 1 (mod 3),
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Example - Cont.
Example - Cont.
The congruence modulo 25 is a special case of the congruence
modulo 125, so we really have three congruences to relatively
prime moduli:
x ≡ 82 (mod 125)
x ≡ 7 (mod 8)
x ≡ 82 ≡ 1 (mod 3),
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Lemma 4.6
Lemma 4.6
If gcd(m, n) = 1, then
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Lemma 4.6
Lemma 4.6
If gcd(m, n) = 1, then
Proof
Let a be a positive integer less than and relatively prime to
m × n. In other words, a is one of the integers counted by
φ(m × n).
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Lemma 4.6
Lemma 4.6
If gcd(m, n) = 1, then
Proof
Let a be a positive integer less than and relatively prime to
m × n. In other words, a is one of the integers counted by
φ(m × n). We consider the correspondence
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Theorem 4.7
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function
Solving Linear Congruences Chinese Remainder Theorem Moduli are not Relatively Prime Properties of Euler’s φ Functio
Theorem 4.7
Theorem 4.7
Let
n = p1a1 × p2a2 × · · · × prar
be the unique factorization of n. Then
1 1 1
φ(n) = n × 1 − × 1− × ··· × 1 − .
p1 p2 pr
Chapter 4 - Solving Linear Congruences, Chinese Remainder Theorem, and Euler’s Φ Function