Units of Q of square root two (source code)

= Units of Q of square root two
{title2=$\mathcal O_{\mathbb Q(\sqrt2)}^\times$}

The unit $\varepsilon=1+\sqrt2$ has norm minus one and is the least unit greater than one in the positive real embedding. <Dirichlet unit theorem> therefore gives
$$
\mathbb Z[\sqrt2]^\times
=\{\mathord\pm(1+\sqrt2)^n:n\in\mathbb Z\}.
$$