Skip to main content
Log in

Cunningham numbers in modular arithmetic

  • Published:
Programming and Computer Software Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Knuth, D.E., The Art of Computer Programming, vol. 2.

  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.

    Google Scholar 

  3. Wagstaff, S., The Cunningham Project, http://www.cerias.purdue.edu/homes/ssw/cun/index.html.

  4. 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.

    Article  Google Scholar 

  5. Křížek, M., Luca, F., and Somer, L., 17 Lectures on Fermat Numbers: From Number Theory to Geometry. New York: Springer, 2001.

    Google Scholar 

  6. Solinas, J.A., Generalized Mersenne Numbers. Waterloo: Faculty of Mathematics, Univ. of Waterloo, 1999.

    Google Scholar 

  7. Bernstein, D.J., Want Fast Bit Set/Extract, Message to GMP Discussions List 〈gmp-discuss@swox.com〉. April 17, 2002.

  8. Geddes, K.O., Czapor, S.R., and Labahn, G., Algorithms for Computer Algebra (6th printing), Boston: Kluwer, 1992.

    MATH  Google Scholar 

  9. GNU MP 4.1, http://www.swox.com/gmp/manual/.

  10. Stewart, A. and Zima, E., Base-2 Cunningham Numbers in Modular Arithmetic, Technical Report, Wilfrid Laurier Univ., January 2006.

  11. Szabo, N.S. and Tanaka, R.I., Residue Arithmetic and Its Applications to Computer Technology, McGraw-Hill, 1967.

  12. Montgomery, P.L., Modular Multiplication Without Trial Division, Math. Computation, 1985, vol. 44, no. 170, pp. 519–521.

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Original Russian Text © E.V. Zima, A.M. Stewart, 2007, published in Programmirovanie, 2007, Vol. 33, No. 2.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1134/S0361768807020053

Keywords

Navigation