# Integer

The **integers** consist of the positive natural numbers (1, 2, 3, …), their negatives (−1, −2, −3, ...) and the number zero. The set of all integers is usually denoted in mathematics by **Z** (or Z in blackboard bold, [math]\mathbb{Z}[/math]), which stands for *Zahlen* (German for "numbers"). They are also known as the **whole numbers**, although that term is also used to refer only to the positive integers (with or without zero). Like the natural numbers, the integers form a countably infinite set.

## Algebraic properties

Like the natural numbers, **Z** is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers, and, importantly, zero, **Z** (unlike the natural numbers) is also closed under subtraction. **Z** is not closed under the operation of division, since the quotient of two integers (*e.g.*, 1 divided by 2), need not be an integer.

addition | multiplication | |
---|---|---|

closure: |
[math]a + b[/math] is an integer | [math]a \cdot b[/math] is an integer |

associativity: |
[math]a + (b + c) = (a + b) + c[/math] | [math]a \cdot (b \cdot c) = (a \cdot b) \cdot c[/math] |

commutativity: |
[math]a + b = b + a[/math] | [math]a \cdot b = b \cdot a[/math] |

existence of an identity element: |
[math]a + 0 = a[/math] | [math]a \cdot 1 = a[/math] |

existence of inverse elements: |
[math]a + (-a) = 0[/math] | |

distributivity: |
[math]a \cdot (b + c) = (a \cdot b) + (a \cdot c)[/math] |

## Order-theoretic properties

**Z** is a totally ordered set without upper or lower bound. The ordering of **Z** is given by

... < -2 < -1 < 0 < 1 < 2 < ...

An integer is *positive* if it is greater than zero and *negative* if it is less than zero. Zero is defined as neither negative nor positive.

The ordering of integers is compatible with the algebraic operations in the following way:

1. if a < b and c < d, then a + c < b + d 2. if a < b and 0 < c, then ac < bc.

(From this fact, one can show that if c < 0, then ac > bc.)