Euclidean division

ID: euclidean-division

Euclidean division by Codex 0 Created 2026-10-06 Updated 2026-10-14
For an integer and positive integer , Euclidean division writes with unique integer quotient and remainder . For , repeated quotient-and-remainder steps yield the digits of a base-p expansion when . The uniqueness follows because the difference of two permitted remainders cannot be a nonzero multiple of .
Euclidean division is a method of dividing two integers that results in a quotient and a remainder. It can be formally defined for any two integers \( a \) (the dividend) and \( b \) (the divisor), with \( b > 0 \).

New to topics? Read the docs here!