A New Modular Division Algorithm and Applications

Abstract

The present paper proposes a new parallel algorithm for the modular division u/v βs, where u,\; v,\; β and s are positive integers (β 2). The algorithm combines the classical add-and-shift multiplication scheme with a new propagation carry technique. This "Pen and Paper Inverse" ( PPI) algorithm, is better suited for systolic parallelization in a "least-significant digit first" pipelined manner. Although it is equivalent to Jebelean's modular division algorithm~jeb2 in terms of performance (time complexity, work, efficiency), the linear parallelization of the PPI algorithm improves on the latter when the input size is large. The parallelized versions of the PPI algorithm leads to various applications, such as the exact division and the digit modulus operation (dmod) of two long integers. It is also applied to the determination of the periods of rational numbers as well as their p-adic expansion in any radix β 2.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…