# Ring of integers

In mathematics, the **ring of integers** of an algebraic number field Template:Mvar is the ring of all integral elements contained in Template:Mvar. An integral element is a root of a monic polynomial with rational integer coefficients, *x*^{n} + *c*_{n−1}*x*^{n−1} + … + *c*_{0} . This ring is often denoted by O_{K} or . Since any rational integer number belongs to Template:Mvar and is its integral element, the ring **Z** is always a subring of O_{K}.

The ring **Z** is the simplest possible ring of integers.^{[1]} Namely, **Z** = O_{Q} where **Q** is the field of rational numbers.^{[2]} And indeed, in algebraic number theory the elements of **Z** are often called the "rational integers" because of this.

The ring of integers of a algebraic number field is the unique maximal order in the field.

## Properties

The ring of integers O_{K} is a finitely-generated **Z**-module. Indeed it is a free **Z**-module, and thus has an **integral basis**, that is a basis *b*_{1}, … ,*b*_{n} ∈ O_{K} of the **Q**-vector space Template:Mvar such that each element Template:Mvar in O_{K} can be uniquely represented as

with *a*_{i} ∈ **Z**.^{[3]} The rank Template:Mvar of O_{K} as a free **Z**-module is equal to the degree of Template:Mvar over **Q**.

The rings of integers in number ﬁelds are Dedekind domains.^{[4]}

## Examples

If Template:Mvar is a prime, ζ is a Template:Mvarth root of unity and *K* = **Q**(ζ) is the corresponding cyclotomic field, then an integral basis of O_{K} = **Z**[ζ] is given by (1, ζ, ζ^{2}, … , ζ^{p−2}).^{[5]}

If Template:Mvar is a square-free integer and *K* = **Q**(Template:Sqrt) is the corresponding quadratic field, then O_{K} is a ring of quadratic integers and its integral basis is given by (1, (1 + Template:Sqrt)/2) if *d* ≡ 1 (mod 4) and by (1, Template:Sqrt) if *d* ≡ 2, 3 (mod 4).^{[6]}

## Multiplicative structure

In a ring of integers, every element has a factorisation into irreducible elements, but the ring need not have the property of unique factorisation: for example, in the ring of integers ℤ[√-5] the element 6 has two essentially different factorisations into irreducibles:^{[7]}^{[4]}

A ring of integers is always a Dedekind domain, and so has unique factorisation of ideals into prime ideals.^{[8]}

The units of a ring of integers *O*_{K} is a finitely generated abelian group by Dirichlet's unit theorem. The torsion subgroup consists of the roots of unity of *K*. A set of torsion-free generators is called a set of *fundamental units*.^{[9]}

## Generalization

One defines the ring of integers of a non-archimedean local field F as the set of all elements of F with absolute value ≤1; this is a ring because of the strong triangle inequality.^{[10]} If F is the completion of an algebraic number field, its ring of integers is the completion of the latter's ring of integers. The ring of integers of an algebraic number field may be characterised as the elements which are integers in every non-archimedean completion.^{[2]}

For example, the Template:Mvar-adic integers **Z**_{p} are the ring of integers of the [[p-adic number|Template:Mvar-adic numbers]] **Q**_{p} .

## References

- {{#invoke:citation/CS1|citation

|CitationClass=book }}

- Template:Neukirch ANT
- {{#invoke:citation/CS1|citation

|CitationClass=book }}

## Notes

- ↑
*The ring of integers*, without specifying the field, refers to the ring**Z**of "ordinary" integers, the prototypical object for all those rings. It is a consequence of the ambiguity of the word "integer" in abstract algebra. - ↑
^{2.0}^{2.1}Cassels (1986) p.192 - ↑ Cassels (1986) p.193
- ↑
^{4.0}^{4.1}Samuel (1972) p.49 - ↑ Samuel (1972) p.43
- ↑ Samuel (1972) p.35
- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ Samuel (1972) p.50
- ↑ Samuel (1972) pp.59-62
- ↑ Cassels (1986) p.41