Cabudol, Angel B. Bsed Ii - Math: Rules in Solving Euler Phi Function or Totient Function
Cabudol, Angel B. Bsed Ii - Math: Rules in Solving Euler Phi Function or Totient Function
BSED II - MATH
EULER’S THEOREM
The general formula to compute φ(n) is the following: If the prime factorization of n is
given by n = p1e1*...*pnen, then,
φ(n) = n *(1 - 1/p1)* ... (1 - 1/pn).
Example:
CABUDOL, ANGEL B.
BSED II - MATH
Euler’s Theorem.
Euler’s theorem generalizes Fermat’s theorem to the case where the modulus is
not prime. This theorem states that if two numbers a and n are relatively prime (if they
share no common factors apart from 1) then,
aφ(n) ≡ 1 (mod n),
where φ(n) is Euler's totient function, which is being discussed above.
For instance, putting n = 30 and a = 11, we have
11φ(30) ≡ 118 ≡ (11²)⁴ ≡ (121)⁴ ≡ 1⁴ ≡ 1 (mod 30)
Then we have,
1⁴ ≡ 1 (mod 10)
3⁴ ≡ 84 ≡ 1 (mod 10)
7⁴ ≡ 2401 ≡ 1 (mod 10)
9⁴ ≡ 6561 ≡ 1 (mod 10)
2. Using Euler's theorem calculate 7133 modulo 26.
Solution:
φ(26) = (2 – 1) (13 – 1) = 12
So 712 = 1 (mod 26)
Thus,
7133 ≡ 7¹³² × 7¹
≡ (7¹²)¹¹ × 7
≡ 1¹¹ × 7
≡1×7
≡ 7 (mod 26)
3. Let p and q be distinct primes.
Let a be any positive integer less than both p and q.
Let k be any positive integer.
Prove that:
ak(p – 1)(q – 1)+1 ≡ a (mod pq)
End!!!