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

A031791
Period of continued fraction for sqrt(n) contains exactly 23 ones.
0
8791, 9211, 10287, 10579, 11368, 13031, 13603, 14039, 14151, 15544, 16287, 16799, 17719, 20099, 20711, 21971, 26555, 27512, 27599, 28103, 28187, 28783, 30439, 31659, 31672, 33431, 34427, 36087, 36419, 37051, 38656, 40183, 40991, 42552, 43259, 43360
OFFSET
1,1
MATHEMATICA
cf23Q[n_]:=Module[{s=Sqrt[n]}, !IntegerQ[s]&&Count[ ContinuedFraction[ s][[2]], 1]==23]; Select[Range[45000], cf23Q] (* Harvey P. Dale, Jun 19 2013 *)
CROSSREFS
Sequence in context: A254840 A156083 A249956 * A179128 A206213 A270609
KEYWORD
nonn
STATUS
approved