login
A031411
Numbers k such that the continued fraction for sqrt(k) has even period 2*m and the m-th term of the periodic part is 8.
1
66, 86, 94, 98, 147, 177, 183, 201, 213, 222, 260, 268, 284, 292, 300, 316, 332, 340, 348, 356, 364, 388, 396, 405, 430, 470, 505, 545, 582, 605, 606, 618, 620, 750, 762, 791, 826, 847, 889, 894, 917, 938, 973, 994, 1032, 1043, 1057, 1106, 1113, 1141, 1162
OFFSET
1,1
MATHEMATICA
n = 1; t = {}; While[Length[t] < 50, n++; If[! IntegerQ[Sqrt[n]], c = ContinuedFraction[Sqrt[n]]; len = Length[c[[2]]]; If[EvenQ[len] && c[[2, len/2]] == 8, AppendTo[t, n]]]]; t (* T. D. Noe, Apr 04 2014 *)
CROSSREFS
KEYWORD
nonn
STATUS
approved