OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
The continued fraction of sqrt[29] is {5; 2, 1, 1, 2, 10}. The center number in the periodic part is 1.
MATHEMATICA
n = 1; t = {}; While[Length[t] < 60, n++; If[! IntegerQ[Sqrt[n]], c = ContinuedFraction[Sqrt[n]]; len = Length[c[[2]]]; If[OddQ[len] && c[[2, (len + 1)/2]] == 1, AppendTo[t, n]]]]; t (* T. D. Noe, Apr 03 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Initial 2 removed by T. D. Noe, Apr 03 2014
STATUS
approved