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”).

A031619
Numbers k such that the continued fraction for sqrt(k) has odd period and if the last term of the periodic part is deleted the two central terms are both 31.
0
6109, 12149, 19681, 20530, 30397, 40973, 55921, 57346, 70514, 71578, 73189, 87977, 89165, 91565, 110665, 111997, 128693, 132298, 133754, 151169, 151946, 155861, 157441, 159029, 159826, 178813, 203341, 206957, 212441, 234250, 235217, 236186, 237157, 238130
OFFSET
1,1
MATHEMATICA
cf31Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1, 1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; OddQ[len]&&cf[[(len+1)/2]] == 31]; Select[Range[250000], cf31Q] (* Harvey P. Dale, Jun 01 2018 *)
CROSSREFS
Sequence in context: A211929 A251994 A201225 * A235764 A235547 A345186
KEYWORD
nonn
EXTENSIONS
Corrected and extended by Harvey P. Dale, Jun 01 2018
STATUS
approved