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

A031792
Period of continued fraction for sqrt(n) contains exactly 24 ones.
0
604, 721, 1201, 1341, 1348, 1483, 1549, 1663, 1747, 1774, 1841, 1879, 1966, 2161, 2194, 2281, 2377, 2494, 2531, 2653, 2662, 2699, 2749, 2830, 2921, 2949, 3041, 3079, 3089, 3097, 3103, 3187, 3236, 3309, 3389, 3412, 3424, 3430, 3448, 3473, 3529, 3556
OFFSET
1,1
MATHEMATICA
cf24Q[n_]:=Module[{s=Sqrt[n]}, If[IntegerQ[s], 1, Count[ContinuedFraction[s][[2]], 1]]==24]; Select[Range[3600], cf24Q] (* Harvey P. Dale, Dec 11 2018 *)
CROSSREFS
Sequence in context: A250907 A209550 A151626 * A020383 A234109 A321269
KEYWORD
nonn
STATUS
approved