OFFSET
1,1
COMMENTS
The "central term" is the term with an index equal to one-half of the length of the continued fraction's period. For example, the "central term" of (1,2,3,4) is 2. - Harvey P. Dale, Nov 10 2017
MATHEMATICA
ct41Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1, 1, 1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; EvenQ[len]&&cf[[len/2]] == 41]; Select[Range[16000], ct41Q] (* Harvey P. Dale, Nov 10 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved