OFFSET
1,1
MATHEMATICA
cf40Q[n_]:=Module[{s=Sqrt[n]}, !IntegerQ[s]&&Count[ContinuedFraction[s][[2]], 1]==40]; Select[Range[8000], cf40Q] (* Harvey P. Dale, Aug 19 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved