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

A031674
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 86.
0
1850, 16909, 46681, 91253, 151402, 224797, 226697, 313769, 316013, 417541, 425329, 537578, 540514, 676045, 682637, 984593, 990554, 994538, 1158401, 1162709, 1171349, 1180021, 1182194, 1364953, 1374313, 1563341, 1568345, 1573357, 1780517, 1783186, 1785857
OFFSET
1,1
MATHEMATICA
cfo86Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {0, 0}, ContinuedFraction[ s][[2]]]; len=Length[cf]; OddQ[len]&&cf[[(len+1)/2]] == 86]; Select[Range[1800000], cfo86Q] (* Harvey P. Dale, Jul 31 2013 *)
CROSSREFS
Sequence in context: A379455 A206468 A031764 * A031541 A031721 A224567
KEYWORD
nonn
EXTENSIONS
Corrected and extended by Harvey P. Dale, Jul 31 2013
STATUS
approved