Modulo operation
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 .
Explanations
L1 human
The value is what is left after you take away from as many copies of as you can. A clock uses this operation: hours after o'clock, a -hour clock shows .
What this node 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 node is. They do not measure its truth.
What this needs
To read this node, read these 3 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Division algorithm statement
- Modulo operation definition
Sources
- Web https://en.wikipedia.org/wiki/Modulo, Variants of the definition
What links here
No node links to this node yet.