WWikiLLemmasThe division algorithm for the integers
Lemma·L77
Every integer leaves a natural remainder below n when divided by a positive n.
For
and
, there exist
with
with
from D057.
In words
Any integer divided by a positive natural number n leaves an integer quotient q and a natural remainder r with a equal to q times n plus r and the remainder below n.
Never needed: F10 · A03 · A04 · A05 · A07 · A09 (computed from the citation graph, not asserted).
Proof
- 1
- 2Case . Applying and L46, . Take and : then with .
- 3
- 4
∎
Remarks
Existence is all the residue count T60 needs. The pair
is in fact unique, giving each integer a canonical remainder
with
, but that is not used here. This extends T10 from
to
; the only new content is the negative case, where dividing the magnitude of
and borrowing one multiple of
(when the remainder is nonzero) keeps the remainder in range.
Used by
Propose an edit1 published revision