1.30. For each of the following primes p and numbers a, compute a-¹ mod p in two ways: (i) Use the extended Euclidean algorithm. (ii) Use the fast power algorithm and Fermat's little theorem. (See Example 1.28.) (a) p = 47 and a = 11. (b) p= 587 and a = 345. (c) p = 104801 and a = 78467.

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
### Exercise 1.30

For each of the following primes \( p \) and numbers \( a \), compute \( a^{-1} \mod p \) in two ways:
1. **Using the extended Euclidean algorithm.**
2. **Using the fast power algorithm and Fermat’s little theorem.** (See Example 1.28.)

#### Given:
(a) \( p = 47 \) and \( a = 11 \).

(b) \( p = 587 \) and \( a = 345 \).

(c) \( p = 104801 \) and \( a = 78467 \).
Transcribed Image Text:### Exercise 1.30 For each of the following primes \( p \) and numbers \( a \), compute \( a^{-1} \mod p \) in two ways: 1. **Using the extended Euclidean algorithm.** 2. **Using the fast power algorithm and Fermat’s little theorem.** (See Example 1.28.) #### Given: (a) \( p = 47 \) and \( a = 11 \). (b) \( p = 587 \) and \( a = 345 \). (c) \( p = 104801 \) and \( a = 78467 \).
### Example 1.28. Inverse Computation Modulo

In this example, we compute the inverse of 7814 modulo 17449 in two different methods.

#### First Method
Initially, we calculate the inverse using exponentiation:
\[ 7814^{-1} \equiv 7814^{17447} \equiv 1284 \pmod{17449}. \]

#### Second Method
Next, we use the extended Euclidean algorithm to solve:
\[ 7814u + 17449v = 1. \]

The solution is \( (u, v) = (1284, -575) \), thus:
\[ 7814^{-1} \equiv 1284 \pmod{17449}. \]

This demonstrates two approaches to finding the modular inverse of a number.
Transcribed Image Text:### Example 1.28. Inverse Computation Modulo In this example, we compute the inverse of 7814 modulo 17449 in two different methods. #### First Method Initially, we calculate the inverse using exponentiation: \[ 7814^{-1} \equiv 7814^{17447} \equiv 1284 \pmod{17449}. \] #### Second Method Next, we use the extended Euclidean algorithm to solve: \[ 7814u + 17449v = 1. \] The solution is \( (u, v) = (1284, -575) \), thus: \[ 7814^{-1} \equiv 1284 \pmod{17449}. \] This demonstrates two approaches to finding the modular inverse of a number.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,