I just want to check whether I have got the fundamental unit of a certain real quadratic field, but I can't find how.
For instance, if I am working in $\mathbb{Q}(\sqrt{2})$ then $\mathcal{O}_K=\mathbb{Z}[\sqrt{2}]$ and so the fundamental unit is of the form $a+b\sqrt{2}$. I suppose the fundamental unit is $1+\sqrt{2}$, ie. $a=1, b=1$. I know this satisfies Pell's Equation: $$a^2-db^2=1^2-(2)(1^2)=1-2=-1$$ and so is a unit. How would I show this is fundamental?
Since the fundamental unit generates all the other units, I first considered trying to show that $(1+\sqrt{2})^n$ for $n \in \mathbb{N}$ must generate units, but this got messy. Surely there is a simpler way to check if this unit is fundamental? Is it simply that these are the smallest values of $a,b$ to create a unit?
NumberFieldFundamentalUnits[Sqrt[2]]
. – Robert Soupe Apr 07 '15 at 03:19