login
A031788
Numbers k such that the period of the continued fraction for sqrt(k) contains exactly 20 ones.
1
478, 669, 724, 751, 766, 889, 958, 1289, 1318, 1409, 1499, 1531, 1576, 1589, 1669, 1709, 1713, 1732, 1738, 1753, 1783, 1828, 1829, 1873, 1933, 1969, 2059, 2073, 2095, 2169, 2185, 2188, 2287, 2317, 2321, 2391, 2395, 2433, 2506, 2572, 2588, 2634, 2656
OFFSET
1,1
LINKS
MATHEMATICA
q[k_] := Module[{c = ContinuedFraction[Sqrt[k]]}, Length[c] == 2 && Count[c[[2]], 1] == 20]; Select[Range[3000], q] (* Amiram Eldar, Aug 10 2025 *)
CROSSREFS
Sequence in context: A261816 A352265 A020375 * A252543 A235083 A252544
KEYWORD
nonn
STATUS
approved