login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A031422
Numbers k such that the continued fraction for sqrt(k) has odd period and if the last term of the periodic part is deleted then there are a pair of central terms both equal to 9.
2
601, 1073, 1930, 2017, 2621, 2825, 3037, 3533, 3769, 4013, 4714, 5701, 6218, 6373, 6689, 7013, 7757, 8461, 8825, 9197, 9277, 12629, 13394, 13621, 14081, 14549, 15613, 15754, 18265, 18797, 20005, 20282, 20441, 21410, 22277, 22993, 23762, 24065, 24370, 25114
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[OddQ[len] && c[[2, (len + 1)/2]] == 9, AppendTo[t, n]]]]; t (* T. D. Noe, Apr 04 2014 *)
CROSSREFS
Subsequence of A003814.
Sequence in context: A020370 A325089 A050202 * A359638 A078966 A255024
KEYWORD
nonn
EXTENSIONS
a(1) removed by T. D. Noe, Apr 04 2014
STATUS
approved