An αQ\alpha\in\overline{\mathbb Q} is an algebraic integer if it is over Z\mathbb Z: there are n1n\ge1 and a0,,an1Za_0,\ldots,a_{n-1}\in\mathbb Z with

αn+an1αn1++a0=0.\alpha^n+a_{n-1}\alpha^{n-1}+\cdots+a_0=0.

The leading coefficient must be one.

Examples

Both ii and 2\sqrt2 are algebraic integers, using T2+1T^2+1 and T22T^2-2. The rational number 1/21/2 is algebraic but not integral: clearing a monic equation of degree nn would make an odd integer equal to an even integer.

Rational special case

More generally, if a/ba/b is in lowest terms with b>0b>0, a monic integral equation forces banb\mid a^n, hence b=1b=1. Thus the rational algebraic integers are exactly Z\mathbb Z.

References
  1. J. S. Milne, Algebraic Number Theory, v3.08. Author’s text, §2, “Integral elements,” especially Proposition 2.11.