An Elementary Method For Fast Modular Exponentiation With Factored Modulus
Abstract
We present a fast algorithm for modular exponentiation when the factorization of the modulus is known. Let be positive integers and suppose factors canonically as . Choose integer parameters for . Then we can compute the modular exponentiation in steps (i.e., modular operations). We go on to analyze this algorithm mathematically and programmatically, showing significant asymptotic improvement in specific cases. Specifically, for an infinite family of we achieve a complexity of steps, much faster than the Repeated Squaring Algorithm, which has complexity . Additionally, we extend our algorithm to matrices and hence general linear recurrences. The complexity is similar; with the same setup we can exponentiate matrices in in less than steps. This improves Fiduccia's algorithm and the results of Bostan and Mori in the case of . We prove analogous results for ring extensions.
Cite
@article{arxiv.2401.10497,
title = {An Elementary Method For Fast Modular Exponentiation With Factored Modulus},
author = {Anay Aggarwal and Manu Isaacs},
journal= {arXiv preprint arXiv:2401.10497},
year = {2024}
}
Comments
18 pages, 4 figures, Presented at 2023 West Coast Number Theory Conference