Find a fundamental unit in the ring of integers $\mathbb Z[\frac{1+\sqrt{141}}{2}]$ of $\mathbb Q(\sqrt{141})$
I have different corollaries for different numbers, the most appropriate for $141$ is the one below.
I used an algorithm (don't know if you know this, but
$\beta_0=\sqrt{141}+\lfloor\sqrt{141}\rfloor, \quad\beta_{n+1}=\frac{1}{\beta_n-\lfloor\beta_n\rfloor}$
$a_n=\lfloor\beta_n\rfloor$
$p_n=p_{n-1}a_n+p_{n-2}, \quad q_n=q_{n-1}a_n+q_{n-2} $) to determine the continued fraction expansion of $141$
As you see the the sequence $(\beta_n)_n$ is periodic with period $t=3$ and thus $\sqrt{141}=[11;\overline{1,6,22}]$, and $\pm4$ doesn't appear in the sequence $r_0,\dots,r_{t-2}$, so according to the corollary can I then assume that the fundamantel unit is also the fundamental solution, i.e. $95+8\sqrt{141}$ ?