Computing multiplicative inverses in

Author:
George E. Collins

Journal:
Math. Comp. **23** (1969), 197-200

MSC:
Primary 65.10

DOI:
https://doi.org/10.1090/S0025-5718-1969-0242345-5

MathSciNet review:
0242345

Full-text PDF

Abstract | References | Similar Articles | Additional Information

Abstract: Two familiar algorithms, the extended Euclidean algorithm and the Fermat algorithm (based on Fermat's theorem ), are analyzed and compared as methods for computing multiplicative inverses in . Using Knuth's results on the average number of divisions in the Euclidean algorithm, it is shown that the average number of arithmetic operations required by the Fermat algorithm is nearly twice as large as the average number for the extended Euclidean algorithm. For each of the two algorithms, forward and backward versions are distinguished. It is shown that all numbers computed in the forward extended Euclidean algorithm are bounded by the larger of the two inputs, a property which was previously established by Kelisky for the backward version.

**[1]**I. Borosh & A. S. Fraenkel, ``Exact solutions of linear equations with rational coefficients by congruence techniques,''*Math. Comp.*, v. 20, 1966, pp. 107-112. MR**32**#4831. MR**0187379 (32:4831)****[2]**G. E. Collins, ``Subresultants and reduced polynomial remainder sequences,''*J. Assoc. Comput. Mach.*, v. 14, 1967, pp. 128-142. MR**35**#6352. MR**0215512 (35:6352)****[3]**R. P. Kelisky, ``Concerning the Euclidean algorithm,''*Fibonacci Quart.*, v. 3, 1965, pp. 219-223. MR**32**#5579. MR**0188139 (32:5579)****[4]**D. E. Knuth,*The Art of Computer Programming.*Vol. 1: Fundamental Algorithms, AddisonWesley, Reading, Mass., 1968. MR**0378456 (51:14624)****[5]**H. Takahasi & Y. Ishibashi, ``A new method for 'exact calculation' by a digital computer,''*Information Processing in Japan*, v. 1, 1961, pp. 28-42.**[6]**J. V. Uspenshy & M. A. Heaslet,*Elementary Number Theory*, McGraw-Hill, New York, 1939. MR**1**, 38.

Retrieve articles in *Mathematics of Computation*
with MSC:
65.10

Retrieve articles in all journals with MSC: 65.10

Additional Information

DOI:
https://doi.org/10.1090/S0025-5718-1969-0242345-5

Article copyright:
© Copyright 1969
American Mathematical Society