Assuming I've been given a number in the form of a continued fraction. Is there a general way to write the square root of that number as continued question?
For example, consider $$1+\sqrt{2} = 2+\frac1{2+\frac1{2+\frac1{2+\dots}}} = [2;2,2,2,2,2,\dots]$$ Its square root has, according to Mathematica, the form $$\sqrt{1+\sqrt{2}} = [1; 1, 1, 4, 6, 1, 2, 2, 2, 1, \dots]$$ I don't see a pattern here. Is there one?
According wise words of Alan Baker, the continued fractions algorithm establishes a bijective correspondence between irrational numbers $\theta$ and infinite sets of positive integers $n_0, n_1,n_2....$.
Hence for all sequence $\mathcal S$ of positive integers with no apparent pattern, there is a irrational $\theta$ whose expansion in continued fractions is $\mathcal S$. It could be maybe the case, I mean no apparent pattern, for $\sqrt{1+\sqrt{2}}$. How do you know whether or not there is a viewable pattern?