Explore integers, including positive and negative whole numbers, and their properties in addition, subtraction, multiplication, and division.
Integers are used to count forwards and backwards: temperatures below zero, debts and credits, elevations above and below sea level. The set $\mathbb{Z}$ extends the natural numbers so that subtraction is always possible, and provides the foundation for number theory and algebra [1].
The set $\mathbb{Z} = \{\dots, -2, -1, 0, 1, 2, \dots\}$ contains the natural numbers and their additive inverses. The symbol comes from the German *Zahlen*. Integers are closed under addition, subtraction, and multiplication, with $0$ as the additive identity and $1$ as the multiplicative identity. With addition they form an abelian group, and with addition and multiplication a commutative ring with unity [1][2].
Division with remainder holds for every pair of integers $a$ and $b \neq 0$: there exist a quotient $q$ and a remainder $r$ with $0 \le r < |b|$ such that $a = bq + r$. For $a = -17$ and $b = 5$ we have
$$-17 = 5 \cdot (-4) + 3,$$
thus $q = -4$ and $r = 3$ (calculation, assumed values). The remainder is always non-negative, even if the dividend is negative.
- Subtraction becomes an internal operation: $a - b$ is always an integer.
- The absolute value $|n|$ measures the distance from zero and allows ordering the integers on a line.
- On $\mathbb{Z}$ divisibility, greatest common divisor, and prime factorization hold.
Integers are used in number theory, congruences, public-key cryptography, error-correcting codes, and programming, where signed integer types represent values in two's complement (general remark). In algebra, integers are the model from which Euclidean rings arise.
Division is not an internal operation: $7 : 2$ is not an integer, and to obtain it rational numbers are needed (see the line on rational numbers). Moreover, integers form an infinite but countable set: they can be put into a one-to-one correspondence with the natural numbers, for example with the list $0, 1, -1, 2, -2, \dots$ (general remark). For the starting set and its properties, see the line on natural numbers.
[1] Wikipedia (it): Numero intero
[2] Wikipedia (en): Integer
Generating summary…