Modulo operation
Builds on Division algorithm
Definition
Let and be integers with . The integer is the remainder of the division of by . Thus is the unique integer such that and is a multiple of .
Remarks
For example, and . Many programming languages use a different convention. In them, the remainder has the sign of , so the result for and is . The Lean library Mathlib sets .
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Divisibility definition
- Division algorithm statement
- Modulo operation definition
Further reading
- Web https://en.wikipedia.org/wiki/Modulo, Variants of the definition
About this page
| Tag | 04FHQSJCQ5 |
|---|---|
| URI | m2://04FHQSJCQ5 |
| Aliases | mod, remainder |
| Kind | definition |
| Writing | W1 stated |
| MSC | 11A07 |
| Defines | Modulo operation |
| Uses | Division algorithm |
Markdown · JSON · Edit on GitHub
What this page needs for W2
- edge instance_of in: one example (0 of 1)
- edge not_instance_of in: one non-example that fails one clause (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.