Meri Leeworthy

The division algorithm

One of the most common ways to reduce large numbers is through the process of division. While this basic arithmetic operation is something we should be familiar with, its application in cryptographic algorithms is of paramount importance. In this lesson, we will outline some very basic concepts pertaining to division and the division algorithm.

b|a

The b|a notation is used to imply that given a numeric integer value a and a nonzero divisor b, b is a divisor of a. Based on this logic, we can stipulate the following:

The division algorithm

$$a=qn + r ∣ 0≤r<n; q=⌊a/n⌋$$

The equation represents the division theorem, which is often referred to as the division algorithm. This theorem states that given a non-negative integer a and a non-negative division n, upon performing a division operation we would option some quotient value q and some remainder of the division r.

The equation can be diagrammatically represented as shown below for any a and any n.

Next: The Euclidean algorithm

I live and work on the land of the Wurundjeri people of the Kulin Nation. I pay respect to their elders past and present and acknowledge that sovereignty was never ceded. Always was, always will be Aboriginal land.

This site uses open source typefaces, including Sligoil by Ariel Martín Pérez, and Vercetti by Filippos Fragkogiannis