OFFSET
1,2
EXAMPLE
f(sqrt(2)) = f([1,2,2,...]) = [1,1/2,1/2,...] = (3 + sqrt(17))/4, so a(2) = 17.
MATHEMATICA
$MaxExtraPrecision = Infinity;
c[x_] := c[x] = FromContinuedFraction[1/ContinuedFraction[x]]
Table[c[Sqrt[n]], {n, 1, 30}]
f[y_] := Cases[y, x_^(1/2 | -1/2) :> x, Infinity];
t = Table[f[c[Sqrt[n]]], {n, 1, 80}]; Flatten[t /. {} -> 1]
(* Peter J. C. Moses, Oct 04 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Oct 04 2013
STATUS
approved