On the Inversion Modulo a Power of an Integer
By: Guangwu Xu, Yunxiao Tian, Bingxin Yang
Potential Business Impact:
Finds secret numbers faster for computers.
Recently, Koc proposed a neat and efficient algorithm for computing $x = a^{-1} \pmod {p^k}$ for a prime $p$ based on the exact solution of linear equations using $p$-adic expansions. The algorithm requires only addition and right shift per step. In this paper, we design an algorithm that computes $x = a^{-1} \pmod {n^k}$ for any integer $n>1$. The algorithm has a motivation from the schoolbook multiplication and achieves both efficiency and generality. The greater flexibility of our algorithm is explored by utilizing the build-in arithmetic of computer architecture, e.g., $n=2^{64}$, and experimental results show significant improvements. This paper also contains some results on modular inverse based on an alternative proof of correctness of Koc algorithm.
Similar Papers
Efficient Lifting of Discrete Logarithms Modulo Prime Powers
Number Theory
Solves secret codes faster for bigger numbers.
Solving Modular Linear Systems with a Constraint by parallel decomposition of the Smith form and extended Euclidean division modulo powers of primes divisors
Number Theory
Solves hard math problems with special number tricks.
On Deterministically Finding an Element of High Order Modulo a Composite
Data Structures and Algorithms
Finds hidden numbers to break secret codes.