Why is $\sqrt{3}=[1;1,2,1,2,\dots]$ ?
$\displaystyle[1;1,2,1,2,\dots]=1+\frac{1}{[1;2,1,2,\dots]}=1+\frac{1}{1+\frac{1}{2+\frac{1}{[1;2,1,2,\dots]}}}$
If I set $x=[1;2,1,2,\dots]$ then;
$\frac{x+1}{x}=\frac{5x+2}{3x+1}$
with solutions $x_{1,2}=\frac{1\pm\sqrt{3}}{2}$
what did go wrong ?
But then $\sqrt{3} = 1+1/x_1$. That's because $$\frac{1}{x_1}=\frac{2}{1+\sqrt 3} = \frac{2(\sqrt{3}-1)}{2} = \sqrt{3}-1$$
The other approach is to define:
$$y = 1+ \dfrac{1}{1+\dfrac1{1+y}}$$
Then you get $y=1+\frac{y+1}{y+2}=\frac{2y+3}{y+2}$ which reduces to $y^2=3$.