For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Modular arithmetic

Modular Arithmetic is a system of arithmetic for integers, which considers the remainder. In modular arithmetic, numbers "wrap around" upon reaching a given fixed quantity (this given quantity is known as the modulus) to leave a remainder. It can be though of as a clock face with the modulus amount of numbers on it. The modulus of n will be the value that you find if you wrapped around the clock values n times.

Last updated