Computing multiplicative inverses in $\textrm {GF}(p)$
HTML articles powered by AMS MathViewer
- by George E. Collins PDF
- Math. Comp. 23 (1969), 197-200 Request permission
Abstract:
Two familiar algorithms, the extended Euclidean algorithm and the Fermat algorithm (based on Fermat’s theorem ${a^p}\equiv a \pmod p$), are analyzed and compared as methods for computing multiplicative inverses in ${\text {GF}}(p)$. 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.References
- I. Borosh and A. S. Fraenkel, Exact solutions of linear equations with rational coefficients by congruence techniques, Math. Comp. 20 (1966), 107–112. MR 187379, DOI 10.1090/S0025-5718-1966-0187379-1
- George E. Collins, Subresultants and reduced polynomial remainder sequences, J. Assoc. Comput. Mach. 14 (1967), 128–142. MR 215512, DOI 10.1145/321371.321381
- R. P. Kelisky, Concerning the Euclidean algorithm, Fibonacci Quart. 3 (1965), 219–223. MR 188139
- Donald E. Knuth, The art of computer programming, 2nd ed., Addison-Wesley Series in Computer Science and Information Processing, Addison-Wesley Publishing Co., Reading, Mass.-London-Amsterdam, 1975. Volume 1: Fundamental algorithms. MR 0378456 H. Takahasi & Y. Ishibashi, “A new method for ’exact calculation’ by a digital computer,” Information Processing in Japan, v. 1, 1961, pp. 28–42. J. V. Uspenshy & M. A. Heaslet, Elementary Number Theory, McGraw-Hill, New York, 1939. MR 1, 38.
Additional Information
- © Copyright 1969 American Mathematical Society
- 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