This is also known as ``the greatest integer function,''
and in old texts is denoted by (whole) brackets.
Examples:
;
.
The ``mod'' operator is defined as follows:
if .
For positive integers and ,
the remainder in integer division of by .
Examples:
;
.
The ``mod'' relation is defined as follows:
(mod if and only if mod mod
The above definitions make sense even for real numbers.
When are integers and ,
(mod if and only if is a multiple of
Examples:
(mod ;
(mod .
Let be integers. Then , read `` divides ,''
if and only if is a multiple, i.e., an integer multiple, of :
for some integer .
Examples:
; ;
but
(8 does not divide 26).
Graham, Knuth, and Patashnik's divisibility definition
(assume that and are integers):
if and only if and
The ``greatest common divisor,'' abbreviated gcd,
of a set of integers is, of course,
the largest positive integer that divides every integer in the set.
Examples:
;
.
Let be integers with .
Let
.
The number of solutions of
(mod
in the set
is 0 if and is if .