section_path: Algebraic properties
section_name: Algebraic properties
paragraph_text: Algebraic properties
  
  Like the natural numbers, Z {\displaystyle \mathbb {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, 0), Z {\displaystyle \mathbb {Z} }, unlike the natural numbers, is also closed under subtraction.
  
  The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring Z {\displaystyle \mathbb {Z} }.
  
  Z {\displaystyle \mathbb {Z} } is not closed under division, since the quotient of two integers (e.g., 1 divided by 2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).
  
  The following table lists some of the basic properties of addition and multiplication for any integers a, b and c:
  
  The first five properties listed above for addition say that Z {\displaystyle \mathbb {Z} }, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 +... + 1 or (−1) + (−1) +... + (−1). In fact, Z {\displaystyle \mathbb {Z} } under addition is the only infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to Z {\displaystyle \mathbb {Z} }.
  
  The first four properties listed above for multiplication say that Z {\displaystyle \mathbb {Z} } under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that Z {\displaystyle \mathbb {Z} } under multiplication is not a group.
  
  All the rules from the above property table (except for the last), when taken together, say that Z {\displaystyle \mathbb {Z} } together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in Z {\displaystyle \mathbb {Z} } for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.
  
  The lack of zero divisors in the integers (last property in the table) means that the commutative ring Z {\displaystyle \mathbb {Z} } is an integral domain.
  
  The lack of multiplicative inverses, which is equivalent to the fact that Z {\displaystyle \mathbb {Z} } is not closed under division, means that Z {\displaystyle \mathbb {Z} } is not a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes Z {\displaystyle \mathbb {Z} } as its subring.
  
  Although ordinary division is not defined on Z {\displaystyle \mathbb {Z} }, the division "with remainder" is defined on them. It is called Euclidean division, and possesses the following important property: given two integers a and b with b ≠ 0, there exist unique integers q and r such that a = q × b + r and 0 ≤ r < | b |, where | b | denotes the absolute value of b. The integer q is called the quotient and r is called the remainder of the division of a by b. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.
  
  The above says that Z {\displaystyle \mathbb {Z} } is a Euclidean domain. This implies that Z {\displaystyle \mathbb {Z} } is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.