Ring of integers

In mathematics, the ring of integers of an algebraic number field $$K$$ is the ring of all algebraic integers contained in $$K$$. An algebraic integer is a root of a monic polynomial with integer coefficients: $$x^n+c_{n-1}x^{n-1}+\cdots+c_0$$. This ring is often denoted by $$O_K$$ or $$\mathcal O_K$$. Since any integer belongs to $$K$$ and is an integral element of $$K$$, the ring $$\mathbb{Z}$$ is always a subring of $$O_K$$.

The ring of integers $$\mathbb{Z}$$ is the simplest possible ring of integers. Namely, $$\mathbb{Z}=O_{\mathbb{Q}}$$ where $$\mathbb{Q}$$ is the field of rational numbers. And indeed, in algebraic number theory the elements of $$\mathbb{Z}$$ are often called the "rational integers" because of this.

The next simplest example is the ring of Gaussian integers $$\mathbb{Z}[i]$$, consisting of complex numbers whose real and imaginary parts are integers. It is the ring of integers in the number field $$\mathbb{Q}(i)$$ of Gaussian rationals, consisting of complex numbers whose real and imaginary parts are rational numbers. Like the rational integers, $$\mathbb{Z}[i]$$ is a Euclidean domain.

The ring of integers of an algebraic number field is the unique maximal order in the field. It is always a Dedekind domain.

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 $K$ such that each element $x$ in $O_{K}$ can be uniquely represented as
 * $$x=\sum_{i=1}^na_ib_i,$$

with $a_{i} ∈ Z$. The rank $n$ of $O_{K}$ as a free $Z$-module is equal to the degree of $K$ over $Q$.

Computational tool
A useful tool for computing the integral closure of the ring of integers in an algebraic field $K/Q$ is the discriminant. If $K$ is of degree $n$ over $Q$, and $$\alpha_1,\ldots,\alpha_n \in \mathcal{O}_K$$ form a basis of $K$ over $Q$, set $$d = \Delta_{K/\mathbb{Q}}(\alpha_1,\ldots,\alpha_n)$$. Then, $$\mathcal{O}_K$$ is a submodule of the $Z$-module spanned by $$\alpha_1/d,\ldots,\alpha_n/d$$. pg. 33 In fact, if $d$ is square-free, then $$\alpha_1,\ldots,\alpha_n$$ forms an integral basis for $$\mathcal{O}_K$$. pg. 35

Cyclotomic extensions
If $p$ is a prime, $ζ$ is a $p$th root of unity and $K = Q(ζ&thinsp;)$ is the corresponding cyclotomic field, then an integral basis of $O_{K} = Z[ζ]$ is given by $(1, ζ, ζ^{&thinsp;2}, ..., ζ^{&thinsp;p−2})$.

Quadratic extensions
If $$d$$ is a square-free integer and $$K = \mathbb{Q}(\sqrt{d}\,)$$ is the corresponding quadratic field, then $$\mathcal{O}_K$$ is a ring of quadratic integers and its integral basis is given by $(1, (1 + √d)&hairsp;/2)$ if $d ≡ 1 (mod 4)$ and by $(1, √d)$ if $d ≡ 2, 3 (mod 4)$. This can be found by computing the minimal polynomial of an arbitrary element $$a + b\sqrt{d} \in \mathbf{Q}(\sqrt{d})$$ where $$a,b \in \mathbf{Q}$$.

Multiplicative structure
In a ring of integers, every element has a factorization into irreducible elements, but the ring need not have the property of unique factorization: for example, in the ring of integers $Z[\sqrt{−5}]$, the element 6 has two essentially different factorizations into irreducibles:
 * $$ 6 = 2 \cdot 3 = (1 + \sqrt{-5})(1 - \sqrt{-5}).$$

A ring of integers is always a Dedekind domain, and so has unique factorization of ideals into prime ideals.

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.

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 $≤&thinsp;1$; this is a ring because of the strong triangle inequality. 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.

For example, the $p$-adic integers $Z_{p}$ are the ring of integers of the $p$-adic numbers $Q_{p}$.