The ring of integers of a KK is

OK={αK:α is an algebraic integer}.\mathcal O_K=\{\alpha\in K:\alpha\text{ is an algebraic integer}\}.

Equivalently, it is the of Z\mathbb Z in KK. Addition and multiplication preserve , so this subset is a subring with identity.

Size and coordinates

As an additive group it is free of rank [K:Q][K:\mathbb Q]. A choice of its integer coordinates is an . This does not assert that it has a basis of powers of one element.

Examples

One has OQ=Z\mathcal O_{\mathbb Q}=\mathbb Z and OQ(i)=Z[i]\mathcal O_{\mathbb Q(i)}=\mathbb Z[i]. For Q(3)\mathbb Q(\sqrt{-3}), the element (1+3)/2(1+\sqrt{-3})/2 is also integral, so merely adjoining the square root misses part of the ring.

References
  1. J. S. Milne, Algebraic Number Theory, v3.08. Author’s text, §2, Proposition 2.29 and Corollary 2.30.