Abstract
The paper considers methods for modular arithmetic acceleration, based on a specific moduli selection method. Special attention is paid to the moduli of the form 2n − 1 and 2n + 1. Different schemes of choice of these types of moduli and algorithms for conversion of arbitrary precision integers into the modular representation and back are considered. Results of experimental implementation of the described algorithms in the GMP system are discussed.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Knuth, D.E., The Art of Computer Programming, vol. 2.
Brillhart, J., Lehmer, D.H., Selfridge, J.L., Tuckerman, B., and Wagstaff, S.S., Jr., Factorizations of b n + 1, b = 2, 3, 5, 6, 7, 10, 11, 12 Up to High Powers, 3rd Ed. Contemporary Mathematics Series, vol. 22, Providence: Am. Math. Soc., 2002.
Wagstaff, S., The Cunningham Project, http://www.cerias.purdue.edu/homes/ssw/cun/index.html.
Cade, J.J., Kee-Wai, Lau, Pedersen, A., and Lossers, O.P., Problem E3288. Problems and Solutions, The Am. Math. Monthly, 1990, vol. 97, no. 4, pp. 344–345.
Křížek, M., Luca, F., and Somer, L., 17 Lectures on Fermat Numbers: From Number Theory to Geometry. New York: Springer, 2001.
Solinas, J.A., Generalized Mersenne Numbers. Waterloo: Faculty of Mathematics, Univ. of Waterloo, 1999.
Bernstein, D.J., Want Fast Bit Set/Extract, Message to GMP Discussions List 〈gmp-discuss@swox.com〉. April 17, 2002.
Geddes, K.O., Czapor, S.R., and Labahn, G., Algorithms for Computer Algebra (6th printing), Boston: Kluwer, 1992.
GNU MP 4.1, http://www.swox.com/gmp/manual/.
Stewart, A. and Zima, E., Base-2 Cunningham Numbers in Modular Arithmetic, Technical Report, Wilfrid Laurier Univ., January 2006.
Szabo, N.S. and Tanaka, R.I., Residue Arithmetic and Its Applications to Computer Technology, McGraw-Hill, 1967.
Montgomery, P.L., Modular Multiplication Without Trial Division, Math. Computation, 1985, vol. 44, no. 170, pp. 519–521.
Author information
Authors and Affiliations
Additional information
Original Russian Text © E.V. Zima, A.M. Stewart, 2007, published in Programmirovanie, 2007, Vol. 33, No. 2.
Rights and permissions
About this article
Cite this article
Zima, E.V., Stewart, A.M. Cunningham numbers in modular arithmetic. Program Comput Soft 33, 80–86 (2007). https://doi.org/10.1134/S0361768807020053
Received:
Issue Date:
DOI: https://doi.org/10.1134/S0361768807020053