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

A031790
Period of continued fraction for sqrt(n) contains exactly 22 ones.
0
991, 1021, 1303, 1324, 1357, 1453, 1543, 1569, 1597, 1619, 1689, 1789, 1804, 1822, 1948, 1993, 2053, 2104, 2174, 2203, 2253, 2361, 2381, 2413, 2458, 2503, 2654, 2657, 2729, 2761, 2794, 2803, 2861, 2887, 2893, 2899, 2973, 2979, 2983, 2998, 3085, 3091
OFFSET
1,1
MATHEMATICA
cf22Q[n_]:=Module[{s=Sqrt[n]}, If[IntegerQ[s], 1, Count[ContinuedFraction[s][[2]], 1]]==22]; Select[Range[3500], cf22Q] (* Harvey P. Dale, Feb 18 2015 *)
CROSSREFS
Sequence in context: A218401 A053393 A365598 * A137703 A255098 A155509
KEYWORD
nonn
STATUS
approved